1
0
EQ2Emu/docs/lua_functions/GetBoundZoneID.md

386 B

Function: GetBoundZoneID(spawn)

Description: Gets the zone id the Spawn(Player) is bound in.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: Returns UINT32 of the Zone ID.

Example:

-- From Spells/Commoner/CalltoHome.lua
function precast(Caster, Target)
    if GetBoundZoneID(Caster) == 0 then
        return false
    end