590 B
590 B
Function: SpawnGroupByID(zone, group_id, custom_level)
Description: Spawn by group_id in the current zone, custom_level can be provided to hard set all spawns to the same level.
Parameters:
zone
(Zone) - Zone object representingzone
.group_id
(uint32) - Integer valuegroup_id
.custom_level
(uint32) - Integer valuecustom_level
.
Returns: None.
Example:
-- From SpawnScripts/IsleRefuge1/GoblinSaboteurFirepit.lua
function InRange(NPC,Spawn)
if GetQuestStep(Spawn,saboteur)==1 then
SetStepComplete(Spawn,saboteur,1)
end