knock_the_fight_out_of_em.lua 5.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. --[[
  2. Script Name : Quests/Ruins/knock_the_fight_out_of_em.lua
  3. Script Purpose : Handles the quest, "Knock the Fight Out of 'Em"
  4. Script Author : Scatman
  5. Script Date : 2009.08.18
  6. Zone : The Ruins
  7. Quest Giver: Captain Arellius
  8. Preceded by: Stepping Up the Offense (stepping_up_the_offense.lua)
  9. Followed by: Vengeance for Shoreside (vengeance_for_shoreside.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepSpell(Quest, 1, "I should throw some dirt in the orcs' dinner pot.", 1, 100, "I must seek out the symbols that the orcs use to inspire themselves. Then I will defile these objects to crush their spirits.", 943, 5044)
  13. AddQuestStepSpell(Quest, 2, "I must find and deface the statue of an orc knight.", 1, 100, "I must seek out the symbols that the orcs use to inspire themselves. Then I will defile these objects to crush their spirits.", 1214, 5045)
  14. AddQuestStepSpell(Quest, 3, "I must find and deface one of the Lonetusk worship idols.", 1, 100, "I must seek out the symbols that the orcs use to inspire themselves. Then I will defile these objects to crush their spirits.", 1058, 5046)
  15. AddQuestStepSpell(Quest, 4, "I should poke a hole in the orcs' wine cask.", 1, 100, "I must seek out the symbols that the orcs use to inspire themselves. Then I will defile these objects to crush their spirits.", 2284, 5047)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_ThrewDirt")
  17. AddQuestStepCompleteAction(Quest, 2, "Step2_Complete_DefacedStatue")
  18. AddQuestStepCompleteAction(Quest, 3, "Step3_Complete_DefacedIdols")
  19. AddQuestStepCompleteAction(Quest, 4, "Step4_Complete_PokedHole")
  20. end
  21. function Accepted(Quest, QuestGiver, Player)
  22. FaceTarget(QuestGiver, Player)
  23. conversation = CreateConversation()
  24. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/lieutenant_imperidus/fprt_adv04_ruins/revamp/lieutenant_imperidus009.mp3", "", "", 3046376303, 2999823619, Player)
  25. AddConversationOption(conversation, "Do you really think wrecking statues and ruining food is going to ensure victory?", "dlg_3_8")
  26. AddConversationOption(conversation, "I'll get to it.")
  27. StartConversation(conversation, QuestGiver, Player, "Our surest path to victory is to take the fight out of them. Go out there and face the Lonetusk, and deface any statues you see. Seek out their supplies of food and drink and spoil them. Without symbols of victory to inspire them and food in their bellies, their spirits will crumble and they will become easy pickings for us.")
  28. end
  29. function Declined(Quest, QuestGiver, Player)
  30. end
  31. function Step1_Complete_ThrewDirt(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I threw dirt in the orcs' dinner pot. Take that, orcs!")
  33. SendMessage(Player, "You throw some dirt in the orc cooking pot.")
  34. if QuestIsComplete(Player, 286) then
  35. Multiple_Steps_Complete(Player, QuestGiver, Player)
  36. end
  37. end
  38. function Step2_Complete_DefacedStatue(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 2, "I have defaced the statue of an orc knight.")
  40. SendMessage(Player, "You draw a mustace on the face of the orc statue.")
  41. if QuestIsComplete(Player, 286) then
  42. Multiple_Steps_Complete(Player, QuestGiver, Player)
  43. end
  44. end
  45. function Step3_Complete_DefacedIdols(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 3, "I have defaced an idol that the Lonetusk seem to worship.")
  47. SendMessage(Player, "You draw crazy eyes and a beard on the orc idol.")
  48. if QuestIsComplete(Player, 286) then
  49. Multiple_Steps_Complete(Player, QuestGiver, Player)
  50. end
  51. end
  52. function Step4_Complete_PokedHole(Quest, QuestGiver, Player)
  53. UpdateQuestStepDescription(Quest, 4, "I poked a hole in the orcs' wine cask. Now they'll be thirsty!")
  54. SendMessage(Player, "You have poked a hole in the cask and watched the wine drain out.")
  55. if QuestIsComplete(Player, 286) then
  56. Multiple_Steps_Complete(Player, QuestGiver, Player)
  57. end
  58. end
  59. function Multiple_Steps_Complete(Quest, QuestGiver, Player)
  60. UpdateQuestTaskGroupDescription(Quest, 1, "I found and defaced many objects the orcs hold dear. Hopefully this takes the fight out of them.")
  61. AddQuestStep(Quest, 5, "I should report back to Lieutenant Imperidus.", 1, "Having defaced the orc artifacts, I should return to Lieutenant Imperidus at the second outpost.", 0, 1270070)
  62. AddQuestStepCompleteAction(Quest, 5, "Quest_Complete")
  63. end
  64. function Quest_Complete(Quest, QuestGiver, Player)
  65. UpdateQuestStepDescription(Quest, 5, "I have reported back to Lieutenant Imperidus.")
  66. UpdateQuestTaskGroupDescription(Quest, 2, "I have reported back to Lieutenant Imperidus.")
  67. UpdateQuestDescription(Quest, "I followed the orders of Lieutenant Imperidus, defacing statues the Lonetusk orcs use to inspire their troops. I also threw dirt into their food and drained their supply of wine. Hopefully the lieutenant's plan will work and my actions will have takens some of the fight out of the orcs.")
  68. GiveQuestReward(Quest, Player)
  69. end
  70. function Reload(Quest, QuestGiver, Player, Step)
  71. if Step == 1 then
  72. Step1_Complete_ThrewDirt(Quest, QuestGiver, Player)
  73. elseif Step == 2 then
  74. Step2_Complete_DefacedStatue(Quest, QuestGiver, Player)
  75. elseif Step == 3 then
  76. Step3_Complete_DefacedIdols(Quest, QuestGiver, Player)
  77. elseif Step == 4 then
  78. Step4_Complete_PokedHole(Quest, QuestGiver, Player)
  79. end
  80. end