caverubbish.lua 541 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/caverubbish.lua
  3. Script Purpose : for the spawn "cave rubbish"
  4. Script Author : theFoof
  5. Script Date : 2013.05.19
  6. Script Notes :
  7. --]]
  8. local SiftingGarbage = 14
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, SiftingGarbage, 1)
  11. end
  12. function respawn(NPC)
  13. end
  14. function casted_on(NPC, Caster, SpellName)
  15. if SpellName == "search through the pile" and GetQuestStep(Caster, SiftingGarbage) == 1 then
  16. AddStepProgress(Caster, SiftingGarbage, 1, 1)
  17. Despawn(NPC)
  18. end
  19. end