will_work_for_war.lua 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. --[[
  2. Script Name : will_work_for_war.lua
  3. Script Purpose : Handles the quest, "Will Work for War"
  4. Script Author : Dorbin
  5. Script Date : 25.07.2022
  6. Script Notes :
  7. Zone : Scale Yard
  8. Quest Giver : Colin Stoutfist
  9. Preceded by : None
  10. Followed by : Will Fight for Fun
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to speak with Coldbrow in the Scale Yard.", 1, "I need to find and speak with this so-called Warchief.", 11, 1390036)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I have spoken with Coldbrow.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken to Dunn Coldbrow and was told to tell Colin to calm down.")
  20. AddQuestStepChat(Quest, 2, "I should let Colin know that Dunn Coldbrow doesn't have any plans right now.", 1, "Colin's not going to be too happy when I let him know that there's no work for him.", 11, 1390052)
  21. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  22. end
  23. function Step2Complete(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 2, "I have returned to Colin Stoutfist.")
  25. UpdateQuestTaskGroupDescription(Quest, 1, "Colin has now asked me to speak with Mirin here to see if there's any work for him.")
  26. AddQuestStepChat(Quest, 3, "I should speak to Mirin Zilishia.", 1, "I need to try to find this Mirin guy and let him know Colin's asking for work.", 11, 1390006)
  27. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  28. end
  29. function Step3Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 3, "I have spoken with Mirin Zilishia.")
  31. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken to Mirin Zilishia in Scale Yard.")
  32. AddQuestStepChat(Quest, 4, "I should let Colin know that Dunn Coldbrow doesn't have any plans right now.", 1, "Colin's not going to be too happy when I let him know that there's no work for him.", 11, 1390052)
  33. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  34. end
  35. function Step4Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 4, "I have spoken with Mirin Zilishia.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken to Mirin Zilishia in Scale Yard.")
  38. --Colin's not going to be too happy when I let him know that there's no work for him.
  39. AddQuestStepChat(Quest, 5, "I need to speak with Colin in the Scale Yard.", 1, "Colin's not going to be too happy when I let him know that there's no work for him.", 11, 1390052)
  40. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  41. end
  42. function QuestComplete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 5, "I have returned to Colin Stoutfist.")
  44. UpdateQuestTaskGroupDescription(Quest, 3, "Colin was quite disappointed when I told him about the lack of work.")
  45. UpdateQuestDescription(Quest, "Colin Stoutfist is quite upset with the state of things in Scale Yard. It seems he has nothing to do, and began to make an unpleasant comment about his Warchief. He had the wisdom to stop mid-sentence.")
  46. GiveQuestReward(Quest, Player)
  47. end
  48. function Accepted(Quest, QuestGiver, Player)
  49. FaceTarget(QuestGiver, Player)
  50. Dialog.New(QuestGiver, Player)
  51. Dialog.AddDialog("Warchief Dunn Coldbrow is in his palace. I tell you, when we crush the last of those filthy orcs, their citadel will be ours! Then we barbarians will toss Lucan out on his big, bony butt, and roast his annoying iksar on spits! Mmm ... I hear iksar meat tastes just like tundrafowl.")
  52. Dialog.AddVoiceover("voiceover/english/colin_stoutfist/fprt_hood06/quests/colinstoutfist/colin_x1_accept.mp3",1343954066,3596296789)
  53. PlayFlavor(QuestGiver, "","","frustrated",0,0, Player)
  54. Dialog.AddOption("I'll return once I've spoken with him.")
  55. Dialog.Start()
  56. end
  57. function Declined(Quest, QuestGiver, Player)
  58. -- Add dialog here for when the quest is declined
  59. end
  60. function Deleted(Quest, QuestGiver, Player)
  61. -- Remove any quest specific items here when the quest is deleted
  62. end
  63. function Reload(Quest, QuestGiver, Player, Step)
  64. if Step == 1 then
  65. Step1Complete(Quest, QuestGiver, Player)
  66. elseif Step == 2 then
  67. Step2Complete(Quest, QuestGiver, Player)
  68. elseif Step == 3 then
  69. Step3Complete(Quest, QuestGiver, Player)
  70. elseif Step == 4 then
  71. Step4Complete(Quest, QuestGiver, Player)
  72. elseif Step == 5 then
  73. QuestComplete(Quest, QuestGiver, Player)
  74. end
  75. end