GetInstanceNumber() as ID
Returns the instance number (ID) of the current area. Called at the world level, it returns 0.
For more information see: Area Server
// The below example would tell you the current area's instance ID number as ID number = GetInstanceNumber() println("Number: "+number)