9
3

ward_particle_cube.lua 612 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/Graveyard/ward_particle_cube.lua
  3. Script Purpose : ward_particle_cube
  4. Script Author : Scatman
  5. Script Date : 2009.07.12
  6. Script Notes :
  7. --]]
  8. local ZADDAR_QUEST_4 = 234
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, ZADDAR_QUEST_4, 2)
  11. end
  12. function hailed(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function casted_on(Target, Caster)
  18. if HasQuest(Spawn, ZADDAR_QUEST_4) and GetQuestStep(Spawn, ZADDAR_QUEST_4) == 2 then
  19. SetStepComplete(Spawn, ZADDAR_QUEST_4, 2)
  20. SendMessage(Caster, "You place the relic within the sphere of influence.")
  21. Despawn(Target)
  22. end
  23. end