mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
466 B
466 B
Function: GetSpawnByGroupID(zone, group_id)
Description: Gets the first spawn by its group_id.
Parameters:
zone(Zone) - Zone object representingzone.group_id(uint32) - Integer valuegroup_id.
Returns: Spawn object reference
Example:
-- From SpawnScripts/IsleRefuge1/GoblinSaboteurFirepit.lua
function InRange(NPC,Spawn)
if GetQuestStep(Spawn,saboteur)==1 then
SetStepComplete(Spawn,saboteur,1)
end