IdentifyingtheLonetuskAlly.lua 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. --[[
  2. Script Name : IdentifyingtheLonetuskAlly.lua
  3. Script Purpose : Handles the quest, "Identifying the Lonetusk Ally"
  4. Script Author : jakejp
  5. Script Date : 12/29/2018
  6. Script Notes :
  7. Zone : The Ruins
  8. Quest Giver : Lieutenant Imperidus
  9. Preceded by : Vengeance for Shoreside
  10. Followed by : File a Final Report
  11. --]]
  12. local LieutenantImperidus = 1270031
  13. local prisoner = 1270034
  14. local OrcDocumentBox = 1270060
  15. function Init(Quest)
  16. AddQuestStepChat(Quest, 1, "Interrogate the orc prisoner", 1, "I must interrogate the orc prisoner in the Ruins to find out the identity of the Lonetusk's new benfactor. I can reach the Ruins by using any of the bells in and around the City of Freeport.", 11, prisoner)
  17. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  18. end
  19. function Step1Complete(Quest, QuestGiver, Player)
  20. UpdateQuestStepDescription(Quest, 1, "The prisoner didn't know who is supplying the weapons and armor, but told me of a hidden document that might.")
  21. UpdateQuestTaskGroupDescription(Quest, 1, "I have questioned the orc prisoner and found out that the Lonetusk are hiding a document that may reveal the identity of their supplier.")
  22. AddQuestStepChat(Quest, 2, "Speak to Lieutenant Imperidus", 1, "I must tell Lieutenant Imperidus in the Ruins what I learned from the prisoner. I can reach the Ruins by using any of the bells in and around the City of Freeport.", 11, LieutenantImperidus)
  23. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  24. end
  25. function Step2Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 2, "I told the lieutenant that the Lonetusk have some kind of letter from their mysterious benefactor.")
  27. UpdateQuestTaskGroupDescription(Quest, 2, "I have told Lieutenant Imperidus what I learned from the prisoner.")
  28. AddQuestStepObtainItem(Quest, 3, "Search for an underground bunker", 1, 100, "I must search underground areas in the Ruins for a secret document in the possession of the Lonetusk orcs. I can reach the Ruins by using any of the bells in and around the City of Freeport.", 374, OrcDocumentBox)
  29. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  30. end
  31. function Step3Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 3, "I found an orcish document hidden in a chest in an underground bunker.")
  33. UpdateQuestTaskGroupDescription(Quest, 3, "I have found the hidden orcish document. I should examine it and report back to Lieutenant Imperidus.")
  34. AddQuestStepChat(Quest, 4, "Report to Lieutenant Imperidus", 1, "I should report back to Lieutenant Imperidus in the Ruins at the second Militia outpost and give her the document I found. I can reach the Ruins by using any of the bells in and around the City of Freeport.", 11, LieutenantImperidus)
  35. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 4, "I have reported back to the lieutenant.")
  40. UpdateQuestTaskGroupDescription(Quest, 4, "I have reported back to Lieutenant Imperidus and gave her the orcish document.")
  41. UpdateQuestDescription(Quest, "I interrogated the orc prisoner and learned of a document the Lonetusk were guarding. I retrieved the document and returned it to Lieutenant Imperidus of the Freeport Militia, who determined that the Lonetusk and Brokentusk are being supplied by the Rujarkian orcs, a tribe operating out of the Clefts of Rujark in the Desert of Ro. This is important information that must be given to Captain Arellius at the docks.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. Step2Complete(Quest, QuestGiver, Player)
  49. elseif Step == 3 then
  50. Step3Complete(Quest, QuestGiver, Player)
  51. elseif Step == 4 then
  52. QuestComplete(Quest, QuestGiver, Player)
  53. end
  54. end
  55. function Accepted(Quest, QuestGiver, Player)
  56. FaceTarget(QuestGiver, Player)
  57. conversation = CreateConversation()
  58. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/lieutenant_imperidus/fprt_adv04_ruins/revamp/lieutenant_imperidus018.mp3", "", "", 1717970804, 3719629105, Player)
  59. AddConversationOption(conversation, "I'll return when I have the information you need, lieutenant.", "dlg_30_4")
  60. StartConversation(conversation, QuestGiver, Player, "I knew we could rely on you! Take any measures necessary to get the beast to talk. ANY measures... got it?")
  61. end
  62. function Declined(Quest, QuestGiver, Player)
  63. -- Add dialog here for when the quest is declined
  64. end