9
3

frigid_fishing.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : Quests/FrostfangSea/frigid_fishing.lua
  3. Script Purpose : the quest "Frigid Fishing"
  4. Script Author : theFoof
  5. Script Date : 2013.5.15
  6. Zone : Frostfang Sea
  7. Quest Giver : Arrin Clelland
  8. Preceded by : Scraggly Foodstuffs
  9. Followed by :
  10. --]]
  11. function Init(Quest)
  12. AddQuestRewardCoin(Quest, math.random(30,60), math.random(2,4), 0, 0)
  13. AddQuestStepKill(Quest, 1, "Hunt Iceclad cod.", 5, 100, "I promised to hunt Iceclad cod in the waters around Pilgrims' Landing.", 2540, 4700028)
  14. AddQuestStepCompleteAction(Quest, 1, "KilledCod")
  15. end
  16. function KilledCod(Quest, QuestGiver, Player)
  17. UpdateQuestTaskGroupDescription(Quest, 1, "I have hunted Iceclad cod in the waters around Pilgrims' Landing.")
  18. AddQuestStepChat(Quest, 2, "Return the Iceclad cod to Arrin.", 1, "I am to return the Iceclad cod to Arrin Clelland in Pilgrims' Landing.", 2540, 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. KilledCod(Quest, QuestGiver, Player)
  33. elseif Step == 2 then
  34. CompleteQuest(Quest, QuestGiver, Player)
  35. end
  36. end