9
3

GravestoneofSirHaligan.lua 718 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/Graveyard/GravestoneofSirHaligan.lua
  3. Script Purpose : Gravestone of Sir Haligan
  4. Script Author : Scatman
  5. Script Date : 2009.07.09
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. SetRequiredQuest(NPC, 231, 3)
  10. end
  11. function hailed(NPC, Spawn)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function casted_on(Target, Caster)
  17. if HasQuest(Caster, 231) and not QuestStepIsComplete(Caster, 231, 3) then
  18. --TODO: Display popup. move the spawn to the popup and only spawn him if the specific option is clicked. (Peer into the opening)
  19. Haligan = GetSpawn(Caster, 1250054)
  20. if Hailigan == nil then
  21. SpawnMob(GetZone(Caster), 1250054, false, -76.3563, -15.5289, 20.1095, 299.984)
  22. end
  23. end
  24. end