qst_veliumdelver_barrel.lua 603 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/qst_veliumdelver_barrel.lua
  3. Script Purpose : for the qst_veliumdelver_barrel spawns
  4. Script Author : theFoof
  5. Script Date : 2013.6.11
  6. Script Notes :
  7. --]]
  8. local RyGorrOperations = 60
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, RyGorrOperations, 1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function casted_on(NPC, Spawn, SpellName)
  16. if SpellName == "gather " then
  17. if GetQuestStep(Spawn, RyGorrOperations) == 1 then
  18. if not HasItem(Spawn, 47881) then
  19. SummonItem(Spawn, 47881)
  20. Despawn(NPC)
  21. end
  22. end
  23. end
  24. end