9
3

ascragglyshrub.lua 547 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/ascragglyshrub.lua
  3. Script Purpose : scraggly shrub
  4. Script Author : theFoof
  5. Script Date : 2013.05.15
  6. Script Notes :
  7. --]]
  8. local ScragglyFoodstuffs = 9
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, ScragglyFoodstuffs, 1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function casted_on(Target, Caster, SpellName)
  16. if SpellName == "harvest " then
  17. if GetQuestStep(Caster, ScragglyFoodstuffs) == 1 then
  18. AddStepProgress(Caster, ScragglyFoodstuffs, 1, 1)
  19. Despawn(Target)
  20. end
  21. end
  22. end