InformationAcquisition.lua 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : InformationAcquisition.lua
  3. Script Purpose : Handles the quest, "Information Acquisition"
  4. Script Author : Shatou
  5. Script Date : 1/9/2020
  6. Script Notes : **Need logs for three NPCs and information for their looks**
  7. Zone : Peat Bog
  8. Quest Giver : Rujiarmo Oolamein
  9. Preceded by : Delivering News
  10. Followed by : Reclaiming the Bog
  11. --]]
  12. local RUJIARMO_OOLAMEIN_ID = 1980024
  13. local LIEUTENANT_DAWSON_ID = 1980012
  14. function Init(Quest)
  15. AddQuestStepChat(Quest, 1, "I need to speak with Rujiarmo's contact. I can find them in the northwestern end of the area between the paths to Nettleville and Starcrest Commune.", 1, "Rujiarmo has asked that I speak with a courier on his behalf.", 11)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. end
  18. --Make "a dark figure" NPC at 703,-32,395
  19. function Step1Complete(Quest, QuestGiver, Player)
  20. UpdateQuestStepDescription(Quest, 1, "I have spoken with Rujiarmo's contact.")
  21. AddQuestStepChat(Quest, 2, "I need to speak with Liberalist Pale. I can find him in the hollowed log partially submerged in the water south of the area between Nettleville and Starcrest Commune.", 1, "Rujiarmo has asked that I speak with a courier on his behalf.", 11)
  22. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  23. end
  24. --Make "Liberalist Pale" NPC at 649,-32,472
  25. function Step2Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 2, "I have spoken with Liberalist Pale.")
  27. AddQuestStepChat(Quest, 3, "I need to speak with Veh'ra the Conserving. I can find her just southwest of the log beside the path just outside of the gate to Nettleville.", 1, "Rujiarmo has asked that I speak with a courier on his behalf.", 11)
  28. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  29. end
  30. --Make "Veh'ra the Conserving" NPC at 622, -33, 465
  31. function Step3Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 3, "I have spoken with Veh'ra the Conserving.")
  33. AddQuestStepChat(Quest, 4, "I need to bring this information to Rujiarmo.", 1, "Rujiarmo has asked that I speak with a courier on his behalf.", 1223, RUJIARMO_OOLAMEIN_ID)
  34. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  35. end
  36. function Step4Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 4, "I have spoken with Rujiarmo.")
  38. AddQuestStepChat(Quest, 5, "I need to bring this information to Lieutenant Dawson near the gates to Nettleville.", 1, "Rujiarmo has asked that I speak with a courier on his behalf.", 75, LIEUTENANT_DAWSON_ID)
  39. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  40. end
  41. function QuestComplete(Quest, QuestGiver, Player)
  42. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  43. UpdateQuestStepDescription(Quest, 5, "I have spoken with Lieutenant Dawson.")
  44. UpdateQuestTaskGroupDescription(Quest, 1, "I have gotten the information from the courier and brought it to Lieutenant Dawson.")
  45. UpdateQuestDescription(Quest, "I have spoken with Rujiarmo's contacts. Rujiarmo believes the information will best be handled by the Qeynos guard and so I have delivered it to Lieutenant Dawson.")
  46. GiveQuestReward(Quest, Player)
  47. end
  48. function Reload(Quest, QuestGiver, Player, Step)
  49. if Step == 1 then
  50. Step1Complete(Quest, QuestGiver, Player)
  51. elseif Step == 2 then
  52. Step2Complete(Quest, QuestGiver, Player)
  53. elseif Step == 3 then
  54. Step3Complete(Quest, QuestGiver, Player)
  55. elseif Step == 4 then
  56. Step4Complete(Quest, QuestGiver, Player)
  57. elseif Step == 5 then
  58. QuestComplete(Quest, QuestGiver, Player)
  59. end
  60. end
  61. function Accepted(Quest, QuestGiver, Player)
  62. -- Add dialog here for when the quest is accepted
  63. end
  64. function Declined(Quest, QuestGiver, Player)
  65. -- Add dialog here for when the quest is declined
  66. end