PlainOleDisease.lua 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. --[[
  2. Script Name : Quests/Commonlands/PlainOleDisease.lua
  3. Script Purpose : Handles the quest, "Plain 'Ole Disease?"
  4. Script Author : premierio015
  5. Script Date : 20.02.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I should collect stone beetle mandibles", 2, 50, "Healer Hanif has sent me to get him some ingredients for use in making medicinal aids.", 161, 330066, 330070,330745)
  14. AddQuestStepHarvest(Quest, 2, "I should harvest mushrooms along Dog Trapper Lake's banks", 2, 100, "Healer Hanif has sent me to get him some ingredients for use in making medicinal aids.", 821, 331124)
  15. AddQuestStepKill(Quest, 3, "I should hunt scourge rats for their festering skin", 3, 50, "Healer Hanif has sent me to get him some ingredients for use in making medicinal aids.", 415, 330064, 330718)
  16. AddQuestStepChat(Quest, 4, "I should return to Hanif after collecting each of the medicinal ingredients", 1, "Healer Hanif has sent me to get him some ingredients for use in making medicinal aids.", 11, 330135)
  17. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  18. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  19. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  20. end
  21. function Accepted(Quest, QuestGiver, Player)
  22. FaceTarget(QuestGiver, Player)
  23. PlayFlavor(QuestGiver, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra003.mp3", "", "", 2440483082, 3137658382, Spawn)
  24. conversation = CreateConversation()
  25. AddConversationOption(conversation, "Sounds easy enough.")
  26. AddConversationOption(conversation, "Where should I look for them?", "mushrooms")
  27. StartConversation(conversation, QuestGiver, Player, "Great! I require mushrooms, stone beetle mandibles and the festering skin of many scourge rats.")
  28. end
  29. function mushrooms(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. AddConversationOption(conversation, "Thank you.")
  33. StartConversation(conversation, NPC, Spawn, "The mushrooms tend to grow on the banks of dog trapper lake. The stone beetles and scourge rats have been seen congregating near Wasp Hill.")
  34. end
  35. function Declined(Quest, QuestGiver, Player)
  36. -- Add dialog here for when the quest is declined
  37. end
  38. function Deleted(Quest, QuestGiver, Player)
  39. -- Remove any quest specific items here when the quest is deleted
  40. end
  41. function Step1Complete(Quest, QuestGiver, Player)
  42. UpdateQuestStepDescription(Quest, 1, "I have the mandibles of some stone beetles.")
  43. CheckProgress(Quest, QuestGiver, Player)
  44. end
  45. function Step2Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 2, "I harvested some riverbank mushrooms.")
  47. CheckProgress(Quest, QuestGiver, Player)
  48. end
  49. function Step3Complete(Quest, QuestGiver, Player)
  50. UpdateQuestStepDescription(Quest, 3, "I have the sore covered skins from some scourge rats.")
  51. CheckProgress(Quest, QuestGiver, Player)
  52. end
  53. function Step4Complete(Quest, QuestGiver, Player)
  54. UpdateQuestStepDescription(Quest, 4, "I gave the items to Healer Hanif.")
  55. UpdateQuestTaskGroupDescription(Quest, 1, "I have obtained each of the ingredients Healer Hanif requested.")
  56. AddQuestStepChat(Quest, 5, "Give the medicine to the leper, Durio Caepio", 1, "Healer Hanif has asked me to help by administering the medicinal aids to several of the victims.", 11, 330136)
  57. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  58. end
  59. function Step5Complete(Quest, QuestGiver, Player)
  60. UpdateQuestStepDescription(Quest, 5, "Durio Caepio spoke of bizarre visions.")
  61. UpdateQuestTaskGroupDescription(Quest, 2, "Durio Caepio spoke of bizarre visions.")
  62. AddQuestStepChat(Quest, 6, "Give the medicine to the leper, Galla Lentula", 1, "Healer Hanif has asked me to help by administering the medicinal aids to several of the victims.", 11, 330138)
  63. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  64. end
  65. function Step6Complete(Quest, QuestGiver, Player)
  66. UpdateQuestStepDescription(Quest, 6, "Galla Lentula was lucid enough to explain the visions that many victims have had.")
  67. UpdateQuestTaskGroupDescription(Quest, 3, "Galla Lentula was lucid enough to explain the visions that many victims have had.")
  68. AddQuestStepChat(Quest, 7, "I should tell Hanif about the victims' disturbing visions", 1, "Healer Hanif has asked me to help by administering the medicinal aids to several of the victims.", 11, 330135 )
  69. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  70. end
  71. function Step7Complete(Quest, QuestGiver, Player)
  72. UpdateQuestStepDescription(Quest, 7, "I spoke to Hanif.")
  73. UpdateQuestTaskGroupDescription(Quest, 4, "I spoke to Hanif about the disturbing visions the victims have reported.")
  74. AddQuestStepChat(Quest, 8, "I should find Lucretias studying graves", 1, "With Healer Hanif's studies now looking at magical influences for this suffering, he has asked me to get some items from Lucretias Domna.", 11, 330270)
  75. AddQuestStepCompleteAction(Quest, 8, "Step8Complete")
  76. end
  77. function Step8Complete(Quest, QuestGiver, Player)
  78. UpdateQuestStepDescription(Quest, 8, "I spoke with Lucretias Domna.")
  79. UpdateQuestTaskGroupDescription(Quest, 5, "I spoke with Lucretias Domna.")
  80. AddQuestStepKill(Quest, 9, "I am to hunt zombies for sinew", 7, 100, "With Healer Hanif's studies now looking at magical influences for this suffering, he has asked me to get some items from Lucretias Domna.", 414, 330271, 330754, 330193, 330756, 330154)
  81. AddQuestStepCompleteAction(Quest, 9, "Step9Complete")
  82. end
  83. function Step9Complete(Quest, QuestGiver, Player)
  84. UpdateQuestStepDescription(Quest, 9, "I was able to get the zombie sinew for Lucretias.")
  85. UpdateQuestTaskGroupDescription(Quest, 6, "I was able to get the zombie sinew for Lucretias.")
  86. AddQuestStepChat(Quest, 10, "Now to exchange the zombie sinew for the items Lucretias has", 1, "With Healer Hanif's studies now looking at magical influences for this suffering, he has asked me to get some items from Lucretias Domna.", 11, 330270)
  87. AddQuestStepCompleteAction(Quest, 10, "Step10Complete")
  88. end
  89. function Step10Complete(Quest, QuestGiver, Player)
  90. UpdateQuestStepDescription(Quest, 10, "I got the items from Lucretias Domna.")
  91. UpdateQuestTaskGroupDescription(Quest, 7, "I helped Lucretias Domna in exchange for the required scroll and flesh.")
  92. GiveQuestItem(Quest, Player, "I helped Lucretias Domna in exchange for the required scroll and flesh.", 14012, 11167)
  93. AddQuestStepChat(Quest, 11, "I should return to Hanif at the leper camp", 1, "The Dismal Rage contact gave me the scroll and flesh that Healer Hanif needs for his testing.", 11, 330135)
  94. AddQuestStepCompleteAction(Quest, 11, "QuestComplete")
  95. end
  96. function QuestComplete(Quest, QuestGiver, Player)
  97. UpdateQuestStepDescription(Quest, 11, "Healer Hanif gave me the rewards that he promised.")
  98. UpdateQuestTaskGroupDescription(Quest, 8, "Healer Hanif gave me the rewards that he promised in exchange for my help.")
  99. UpdateQuestDescription(Quest, "Healer Hanif rewarded me in exchange for my help in his studies concerning the particularly virulent strain of leprosy. He seemed excited that it may be one of the poxes come from the Plane of Disease, long since dormant.")
  100. GiveQuestReward(Quest, Player)
  101. end
  102. function CheckProgress(Quest, QuestGiver, Player)
  103. if QuestStepIsComplete(Player, 454, 1) and QuestStepIsComplete(Player, 454, 2) and QuestStepIsComplete(Player, 454, 3) then
  104. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  105. end
  106. end
  107. function Reload(Quest, QuestGiver, Player, Step)
  108. if Step == 1 then
  109. Step1Complete(Quest, QuestGiver, Player)
  110. elseif Step == 2 then
  111. Step2Complete(Quest, QuestGiver, Player)
  112. elseif Step == 3 then
  113. Step3Complete(Quest, QuestGiver, Player)
  114. elseif Step == 4 then
  115. Step4Complete(Quest, QuestGiver, Player)
  116. elseif Step == 5 then
  117. Step5Complete(Quest, QuestGiver, Player)
  118. elseif Step == 6 then
  119. Step6Complete(Quest, QuestGiver, Player)
  120. elseif Step == 7 then
  121. Step7Complete(Quest, QuestGiver, Player)
  122. elseif Step == 8 then
  123. Step8Complete(Quest, QuestGiver, Player)
  124. elseif Step == 9 then
  125. Step9Complete(Quest, QuestGiver, Player)
  126. elseif Step == 10 then
  127. Step10Complete(Quest, QuestGiver, Player)
  128. elseif Step == 11 then
  129. QuestComplete(Quest, QuestGiver, Player)
  130. end
  131. end