remainsthexiandragoongeneral.lua 691 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/Darklight/remainsthexiandragoongeneral.lua
  3. Script Purpose : For the quest, "No Undead Goes Unturned"
  4. Script Author : Cynnar
  5. Script Date : 2015.08.18
  6. Script Notes :
  7. --]]
  8. local NoUndeadGoesUnturned = 134
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, NoUndeadGoesUnturned, 1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function casted_on(NPC, Spawn, SpellName)
  16. if SpellName == "Plunder the Tomb" then
  17. if HasQuest(Spawn, NoUndeadGoesUnturned) and not HasItem(Spawn, 14386) then
  18. SummonItem(Spawn, 14386)
  19. if GetQuestStep(Spawn, NoUndeadGoesUnturned) == 1 then
  20. SetStepComplete(Caster, NoUndeadGoesUnturned, 1)
  21. end
  22. end
  23. end
  24. end