identifying_the_lonetusk_ally.lua 5.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. --[[
  2. Script Name : Quests/Ruins/identifying_the_lonetusk_ally.lua
  3. Script Purpose : Handles the quest, \\\"Identifying the Lonetusk Ally\\\"
  4. Script Author : Scatman
  5. Script Date : 2009.08.20
  6. Zone : The Ruins
  7. Quest Giver: Captain Arellius
  8. Preceded by: Vengeance for Shoreside (vengeance_for_shoreside.lua)
  9. Followed by: File a Final Report (file_a_final_report.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I must interrogate the orc prisoner to find out the identity of the Lonetusk weapon supplier.", 1, "I must interrogate the orc prisoner to find out the identity of the Lonetusk\\\'s new benfactor.", 0, 1270104)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_SpokeWithOrc")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/lieutenant_imperidus/fprt_adv04_ruins/revamp/lieutenant_imperidus018.mp3", "", "", 1717970804, 3719629105, Player)
  19. AddConversationOption(conversation, "I'll return when I have the information you need, lieutenant.")
  20. 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?")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_KilledSentries(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "The prisoner didn't know who is supplying the weapons and armor, but told me of a hidden document that might.")
  26. 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.")
  27. AddQuestStepChat(Quest, 2, "I should tell the lieutenant that the orcs have a hidden document that may reveal the identity of their benefactor.", 1, "I must tell Lieutenant Imperidus what I found out from the prisoner.", 0, 1270070)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2_Complete_SpokeWithLieutenant")
  29. end
  30. function Step2_Complete_SpokeWithLieutenant(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I told the lieutenant that the Lonetusk have some kind of letter from their mysterious benefactor")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I have told Lieutenant Imperidus what I learned from the prisoner.")
  33. AddQuestStep(Quest, 3, "I must search for an underground bunker where the Lonetusk are hiding some kind of document.", 1, 100, "I must search underground areas in the Ruins for a secret document in the possession of the Lonetusk orcs.", 374, 5048)
  34. AddQuestStepCompleteAction(Quest, 3, "Step3_Complete_FoundNote")
  35. end
  36. function Step3_Complete_FoundNote(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 3, "I found an orcish document hidden in a chest in an underground bunker.")
  38. UpdateQuestTaskGroupDescription(Quest, 3, "I have found the hidden orcish document. I should examine it and report back to Lieutenant Imperidus.")
  39. SendMessage(Player, "You search the strongbox and find a parchment with orcish writing. You place it in your inventory.")
  40. SendPopUpMessage(Player, "You search the strongbox and find a parchment with orcish writing. You place it in your inventory.", 255, 255, 0)
  41. -- an orcish parchment
  42. if not HasItem(Player, 3393, 1) then
  43. SummonItem(Player, 3393)
  44. SendMessage(Player, "You receive [an orcish parchment].")
  45. end
  46. AddQuestStepSpell(Quest, 4, "I should report back to the lieutenant.", 1, 100, "I should report back to Lieutenant Imperidus at the second Militia outpost and give her the document I found.", 0, 1270070)
  47. AddQuestStepCompleteAction(Quest, 4, "Quest_Complete")
  48. end
  49. function Quest_Complete(Quest, QuestGiver, Player)
  50. -- an orcish parchment
  51. while HasItem(Player, 3393, 1) do
  52. RemoveItem(Player, 3393)
  53. end
  54. SendMessage(Player, "You give the parchment to Lieutenant Imperidus.")
  55. SendPopUpMessage(Player, "You give the parchment to Lieutenant Imperidus.", 255, 255, 0)
  56. UpdateQuestStepDescription(Quest, 4, "I have reported back to the lieutenant.")
  57. UpdateQuestTaskGroupDescription(Quest, 4, "I have reported back to Lieutenant Imperidus and gave her the orcish document.")
  58. 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.")
  59. GiveQuestReward(Quest, Player)
  60. end
  61. function Reload(Quest, QuestGiver, Player, Step)
  62. if Step == 1 then
  63. Step1_Complete_KilledSentries(Quest, QuestGiver, Player)
  64. elseif Step == 2 then
  65. Step2_Complete_SpokeWithLieutenant(Quest, QuestGiver, Player)
  66. elseif Step == 3 then
  67. Step3_Complete_FoundNote(Quest, QuestGiver, Player)
  68. end
  69. end