Returns the instance ID of the Lua state. Returns 0 for continent maps and the world state.
instanceId = GetStateInstanceId()
None.
number instanceId
Valid numbers: integers from 0 to 4,294,967,295.