1
0
EQ2Emu/docs/lua_functions/GetSpawnLocationID.md

518 B

Function: GetSpawnLocationID(spawn)

Description: Get a spawn location id.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: UInt32 spawn location id of the Spawn.

Example:

-- From SpawnScripts/Antonica/aDarkpawyouth.lua
function spawn(NPC, Spawn)
    NPCModule(NPC, Spawn)
    if GetSpawnLocationID(NPC)==  133785089 or GetSpawnLocationID(NPC)==   133785090 then
        AddTimer(NPC,MakeRandomInt(1000,3500),"Run")
    else
        IdleBored(NPC)
    end