ceriseveliumcrystalgeode.lua 549 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/ceriseveliumcrystalgeode.lua
  3. Script Purpose : for the crystal geodes in the quest "Geode Caching"
  4. Script Author : theFoof
  5. Script Date : 2013.6.15
  6. Script Notes :
  7. --]]
  8. local GeodeCaching = 69
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, GeodeCaching, 1)
  11. AddTimer(NPC, 300000, "Despawn")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function casted_on(NPC, Spawn, SpellName)
  17. if SpellName == 'gather ' then
  18. Despawn(NPC)
  19. AddStepProgress(Spawn, GeodeCaching, 1, 1)
  20. end
  21. end