mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
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