swordchucks_of_doom.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : sword-chucks_of_doom.lua
  3. Script Purpose : Handles the quest, "Sword-Chucks of Doom"
  4. Script Author : torsten
  5. Script Date : 23.07.2022
  6. Script Notes :
  7. Zone : Scale Yard
  8. Quest Giver : Arms Dealer Shilza
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to speak with a Barbarian named Briac Tundrafire.", 1, "Once I find Briac Tundrafire, I need to tell him his 'sword-chucks' are in.", 11, 1390053)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I have spoken with Briac Tundrafire.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I let Briac Tundrafire know his sword-chucks were in . He seemed quite happy about it.")
  20. AddQuestStepChat(Quest, 2, "I should return to Shilza.", 1, "Tundrafire said he'll be by later, so I should let Shilza know about it.", 11, 1390046)
  21. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  22. end
  23. function QuestComplete(Quest, QuestGiver, Player)
  24. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  25. UpdateQuestStepDescription(Quest, 2, "I have spoken with Shilza.")
  26. UpdateQuestTaskGroupDescription(Quest, 2, "I have told Shilza about Briac Tundrafire stopping by later.")
  27. UpdateQuestDescription(Quest, "Shilza has paid me for giving Briac the message his 'sword-chucks' are in. I'm not too sure which person Shilza was referring to when she said that weapon would sever someone's head from their shoulders.")
  28. GiveQuestReward(Quest, Player)
  29. end
  30. function Accepted(Quest, QuestGiver, Player)
  31. FaceTarget(QuestGiver, Player)
  32. Dialog.New(QuestGiver, Player)
  33. Dialog.AddDialog("He has one of those impossible barbarian names ... BurningIcelands or WastelandAflame or ... I remember! Briac Tundrafire! Yes ... Briac Tundrafire. Big, tall, built like he should be pulling a supply wagon. Ah, they all look alike to me. Just find him and tell him I have his sword-chucks in stock.")
  34. Dialog.AddVoiceover("voiceover/english/arms_dealer_shilza/fprt_hood06/quests/armsdealershilza/shilza_x1_accept.mp3",4001987290,675557143)
  35. PlayFlavor(QuestGiver, "","","confused",0,0, Player)
  36. Dialog.AddOption("I'll let him know.")
  37. Dialog.Start()
  38. end
  39. function Declined(Quest, QuestGiver, Player)
  40. -- Add dialog here for when the quest is declined
  41. end
  42. function Deleted(Quest, QuestGiver, Player)
  43. -- Remove any quest specific items here when the quest is deleted
  44. end
  45. function Reload(Quest, QuestGiver, Player, Step)
  46. if Step == 1 then
  47. Step1Complete(Quest, QuestGiver, Player)
  48. elseif Step == 2 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end