9
3

GriffinStationsButcherblock.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : Quests/ButcherblockMountains/GriffinStationsButcherblock.lua
  3. Script Purpose : Handles the quest, "Griffin Stations: Butcherblock"
  4. Script Author : jakejp
  5. Script Date : 6/1/2018
  6. Script Notes :
  7. Zone : Butcherblock Mountains
  8. Quest Giver : a griffin tamer
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. local GriffinStationsButcherblock = 269
  13. function Init(Quest)
  14. AddQuestStepLocation(Quest, 1, "There is a griffin tower station near the Butcherblock docks.", 10, "I must find the location of the three griffin towers in the Butcherblock Mountains.", 11, 754.67, 26.00, 571.20)
  15. AddQuestStepLocation(Quest, 2, "There is a griffin tower station near the entrance to Greater Faydark.", 10, "I must find the location of the three griffin towers in the Butcherblock Mountains.", 11, -966, 116, -430)
  16. AddQuestStepLocation(Quest, 3, "There is a griffin tower station near the entrance to Lesser Faydark.", 10, "I must find the location of the three griffin towers in the Butcherblock Mountains.", 11, -622.63, 115.50, 336.26)
  17. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  18. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  19. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  20. end
  21. function CheckProgress(Quest, QuestGiver, Player)
  22. if QuestStepIsComplete(Player, GriffinStationsButcherblock, 1) and QuestStepIsComplete(Player, GriffinStationsButcherblock, 2) and QuestStepIsComplete(Player, GriffinStationsButcherblock, 3) then
  23. QuestComplete(Quest, QuestGiver, Player)
  24. end
  25. end
  26. function Step1Complete(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I have found the Docks station.")
  28. CheckProgress(Quest, QuestGiver, Player)
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have found the Greater Faydark station.")
  32. CheckProgress(Quest, QuestGiver, Player)
  33. end
  34. function Step3Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 3, "I have found the Lesser Faydark station.")
  36. CheckProgress(Quest, QuestGiver, Player)
  37. end
  38. function QuestComplete(Quest, QuestGiver, Player)
  39. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Complete(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. Step2Complete(Quest, QuestGiver, Player)
  47. elseif Step == 3 then
  48. Step3Complete(Quest, QuestGiver, Player)
  49. elseif Step == 4 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end
  53. function Accepted(Quest, QuestGiver, Player)
  54. -- Add dialog here for when the quest is accepted
  55. end
  56. function Declined(Quest, QuestGiver, Player)
  57. -- Add dialog here for when the quest is declined
  58. end