pilgrim_pathfinder.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : Quests/FrostfangSea/pilgrim_pathfinder.lua
  3. Script Purpose : the quest Pilgrim Pathfinder
  4. Script Author : theFoof
  5. Script Date : 2013.5.19
  6. Zone : Frostfang Sea
  7. Quest Giver : Verien Skysigh
  8. Preceded by : Sifting Through the Grizzly Garbage
  9. Followed by : Pilgrim Scout
  10. --]]
  11. function Init(Quest)
  12. AddQuestRewardCoin(Quest, math.random(10,90), math.random(2,5), 0, 0)
  13. AddQuestStepLocation(Quest, 1, "Hike to the top of the blizzard grizzly cave.", 15, "From the top of the blizzard grizzly cave you should be able to find the best path to the city of New Halas.", 0, 166.79, 65.23, -470.68)
  14. AddQuestStepCompleteAction(Quest, 1, "HikedTop")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. end
  20. function Deleted(Quest, QuestGiver, Player)
  21. end
  22. function HikedTop(Quest, QuestGiver, Player)
  23. UpdateQuestTaskGroupDescription(Quest, 1, "There seems to be a path leading into the hills. Perhaps by taking it you can avoid the dangerous plains below?")
  24. AddQuestStepChat(Quest, 2, "Return to Verien Skysigh and tell him of the path leading into the hills above the dangerous plains.", 1, "You should return to Verien Skysigh, at the pilgrims' camp within Gwenevyn's Cove, and tell him of the path leading into the hills above the dangerous plains.", 0, 4700034)
  25. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  26. end
  27. function CompleteQuest(Quest, QuestGiver, Player)
  28. GiveQuestReward(Quest, Player)
  29. end
  30. function Reload(Quest, QuestGiver, Player, Step)
  31. if Step == 1 then
  32. HikedTop(Quest, QuestGiver, Player)
  33. elseif Step == 2 then
  34. CompleteQuest(Quest, QuestGiver, Player)
  35. end
  36. end