crustose_removal.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : Quests/FrostfangSea/crustose_removal.lua
  3. Script Purpose : the quest Crustose Removal
  4. Script Author : theFoof
  5. Script Date : 2013.5.12
  6. Zone : Frostfang Sea
  7. Quest Giver : Arrin Clelland
  8. Preceded by : None
  9. Followed by : Repelling Little Critters
  10. --]]
  11. function Init(Quest)
  12. AddQuestRewardCoin(Quest, math.random(10,50), math.random(1,3), 0, 0)
  13. AddQuestStepKill(Quest, 1, "Slay crustore defenders or sporetenders.", 4, 100, "I am to slay any of the crustose defenders or sporetenders I find on the western side of the isle in search of spore samples.", 811, 4700405, 4700003, 4700408, 4700019)
  14. AddQuestStepCompleteAction(Quest, 1, "KilledFungus")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. end
  20. function KilledFungus(Quest, QuestGiver, Player)
  21. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain crustose fungusmen I found on the western side of the isle.")
  22. AddQuestStepChat(Quest, 2, "Return to Arrin Clelland.", 1, "I am to return to Arrin Clelland in Pilgrims' Landing.", 0, 4700000)
  23. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  24. end
  25. function CompleteQuest(Quest, QuestGiver, Player)
  26. GiveQuestReward(Quest, Player)
  27. end
  28. function Reload(Quest, QuestGiver, Player, Step)
  29. if Step == 1 then
  30. KilledFungus(Quest, QuestGiver, Player)
  31. elseif Step == 2 then
  32. CompleteQuest(Quest, QuestGiver, Player)
  33. end
  34. end