aniceshroom.lua 534 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/aniceshroom.lua
  3. Script Purpose : ice shrooms
  4. Script Author : theFoof
  5. Script Date : 2013.9.3
  6. Script Notes :
  7. --]]
  8. local KestrelPie = 90
  9. function spawn(NPC)
  10. SpawnSet(NPC, "action_state", "1494")
  11. SetRequiredQuest(NPC, KestrelPie, 1, 1)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function casted_on(NPC, Spawn, SpellName)
  17. if SpellName == 'an ice shroom' then
  18. if GetQuestStep(Spawn, KestrelPie) == 1 then
  19. Despawn(NPC)
  20. AddStepProgress(Spawn, KestrelPie, 1, 1)
  21. end
  22. end
  23. end