qst_haligan_tomb.lua 615 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Script: SpawnScripts/Graveyard/qst_haligan_tomb.lua
  3. Script Purpose : qst_haligan_tomb
  4. Script Author : Scatman
  5. Script Date : 2009.07.22
  6. Script Notes :
  7. --]]
  8. local QUEST_7_FROM_CUSTODIAN = 238
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, QUEST_7_FROM_CUSTODIAN, 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(Caster, QUEST_7_FROM_CUSTODIAN) and GetQuestStep(Caster, QUEST_7_FROM_CUSTODIAN) == 2 then
  19. -- TODO: Display popup
  20. SetStepComplete(Caster, QUEST_7_FROM_CUSTODIAN, 2)
  21. end
  22. end