9
3

RyGorrweaponrack.lua 668 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/RyGorrweaponrack.lua
  3. Script Purpose : for the ry'gorr weapon racks (unnamed spawn)
  4. Script Author : theFoof
  5. Script Date : 2013.6.10
  6. Script Notes :
  7. --]]
  8. local RoughingReinforcements = 57
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, RoughingReinforcements, 3)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function casted_on(NPC, Spawn, SpellName)
  16. if SpellName == "Destroy Ry'Gorr Weapons" then
  17. if HasQuest(Spawn, RoughingReinforcements) then
  18. if not QuestStepIsComplete(Spawn, RoughingReinforcements, 3) then
  19. AddStepProgress(Spawn, RoughingReinforcements, 3, 1)
  20. Despawn(NPC)
  21. end
  22. end
  23. end
  24. end