1.4 KiB
1.4 KiB
Function: Spawn(zone, spawn_id, x, y, z, heading)
Description: Create's a new Spawn from the spawn database table based on the spawn_id (id parameter in the database).
Parameters:
zone
(Zone) - Zone object representingzone
.spawn_id
(uint32) - Integer valuespawn_id
.x
(int32) - Integer valuex
.y
(int32) - Integer valuey
.z
(int32) - Integer valuez
.heading
(int32) - Integer valueheading
.
Returns: None.
Example:
-- From Quests/QueensColony/the_source_of_evil.lua
function step3_complete_talkedToSorcerer(Quest, QuestGiver, Player)
UpdateQuestStepDescription(Quest, 3, "I spoke with Sorcerer Oofala.")
UpdateQuestTaskGroupDescription(Quest, 3, "I spoke with Sorcerer Oofala.")
--Spawn(GetZone(Player), 2530142, false, GetX(Player), GetY(Player), GetZ(Player))
--Spawn the Dark Blademaster once you approach his location only if the player has a quest (zonescript)
--x = 154.66 y = 1.38397 z = -178.158 heading = 349.984
AddQuestStepKill(Quest, 4, "Kill the Dark Blademaster near the fog on Sapswill Hill.", 1, 100, "Oofala explained that by removing the totems, the evil has been disturbed and produced a champion to fight back. I will need to confront the Dark Blademaster. He has emerged from a tent on Sapswill Hill.", 611, 2530032)
AddQuestStepCompleteAction(Quest, 4, "step4_complete_killedBlademaster")
end