UnholyRelic.lua 578 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/Graveyard/UnholyRelic.lua
  3. Script Purpose : Unholy Relic
  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, 3)
  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) == 3 then
  19. SetStepComplete(Spawn, ZADDAR_QUEST_4, 3)
  20. SendMessage(Caster, "You retrieve the unholy relic.")
  21. Despawn(Target)
  22. end
  23. end