Difference between revisions of "LUA:GetZoneID"
(Created page with "= LUA Functions: GetZoneID() = Gets the ID of the given zone ==== Syntax ==== var = GetZoneID(param1) ==== Parameters ==== ; Required - ''param1'' (Zone) : ''param1'' is the ...") |
(No difference)
|
Latest revision as of 19:50, 11 September 2013
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