No categories assigned

LUA:GetZoneID

Revision as of 19:50, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: GetZoneID() = Gets the ID of the given zone ==== Syntax ==== var = GetZoneID(param1) ==== Parameters ==== ; Required - ''param1'' (Zone) : ''param1'' is the ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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