scraggly_foodstuffs.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : Quests/FrostfangSea/scraggly_foodstuffs.lua
  3. Script Purpose : the quest "Scraggly Foodstuffs"
  4. Script Author : theFoof
  5. Script Date : 2013.5.15
  6. Zone : Frostfang Sea
  7. Quest Giver : Arrin Clelland
  8. Preceded by : Repelling Little Critters
  9. Followed by : Frigid Fishing
  10. --]]
  11. function Init(Quest)
  12. AddQuestRewardCoin(Quest, math.random(20,90), math.random(2,3), 0, 0)
  13. AddQuestStep(Quest, 1, "Gather some tubers from the scraggly shrubs.", 3, 100, "I must gather some scraggly tubers on the windy cliffs overlooking the sea, on the northern side of Pilgrims' Landing.", 2313)
  14. AddQuestStepCompleteAction(Quest, 1, "GatheredTubers")
  15. end
  16. function GatheredTubers(Quest, QuestGiver, Player)
  17. UpdateQuestTaskGroupDescription(Quest, 1, "I have gathered some tubers from the scraggly shrubs growing on the northeast side of Pilgrims' Landing.")
  18. AddQuestStepChat(Quest, 2, "Return the scraggly tubers to Arrin.", 1, " I am to return the tubers to Arrin Clelland, Camp Provisioner, in Pilgrims' Landing.", 2313, 4700000)
  19. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  20. end
  21. function CompleteQuest(Quest, QuestGiver, Player)
  22. GiveQuestReward(Quest, Player)
  23. end
  24. function Accepted(Quest, QuestGiver, Player)
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. end
  30. function Reload(Quest, QuestGiver, Player, Step)
  31. if Step == 1 then
  32. GatheredTubers(Quest, QuestGiver, Player)
  33. elseif Step == 2 then
  34. CompleteQuest(Quest, QuestGiver, Player)
  35. end
  36. end