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