No categories assigned
LUA:GetZoneID
- Last edited 12 years ago by I need to Update My Profile
LUA Functions: GetZoneID()
Gets the ID of the given zone
Syntax
var = GetZoneID(param1)
Parameters
- Required - param1 (Zone)
- param1 is the zone who's ID we want to get
Usage
function hailed(NPC, Spawn)
local zone = GetZone(Spawn)
Say(NPC, "You are in zone ID: " .. GetZoneID(zone))
end
The NPC will respond with the ID of the players current zone
Notes
Returns an int32