9
3

qwergos_plan.lua 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : Quests/TempleStreet/qwergos_plan.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.30 03:10:53
  5. Script Purpose :
  6. Zone : TempleStreet
  7. Quest Giver: Merchant Qwergo
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to speak with Plordo somewhere in Temple Street.", 1, "Plordo is the gnome who has an Ignitty Rumble-ator... or something like that.", 11, 1360008)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have spoken with Plordo.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "Plordo claims he gave his last one to a person named Chrna.")
  19. AddQuestStepChat(Quest, 2, "I need to speak with Chrna near the gates to South Freeport.", 1, "Chrna has Plordo's last Rumbleystick and is around here somewhere... I just need to find her.", 11, 1360007 )
  20. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  21. end
  22. function Step2Complete(Quest, QuestGiver, Player)
  23. UpdateQuestStepDescription(Quest, 2, "I have spoken to Chrna.")
  24. UpdateQuestTaskGroupDescription(Quest, 2, "Chrna gave me the Rumblebumbler... I should have asked her why it was ticking.")
  25. AddQuestStepChat(Quest, 3, "I need to speak with Qwergo.", 1, "Now that I have the Ignitor Rumblestick, I should bring it back to Qwergo. I should also ask him why it's ticking.", 11, 1360026 )
  26. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  27. end
  28. function Accepted(Quest, QuestGiver, Player)
  29. FaceTarget(QuestGiver, Player)
  30. Dialog.New(QuestGiver, Player)
  31. Dialog.AddDialog("Wonderful, wonderful! Go at once to my supplier, Plordo Blotterdook, who plies his trade on the other side of Temple Street. He will happily procure for you one operational igniter rumblerod ... that is, if he has not detonated them all blowing open yet another wall within his home.")
  32. Dialog.AddVoiceover("voiceover/english/merchant_qwergo_togglesmeet/fprt_hood03/quests/qwergotogglesmeet/qwergo_x1_accept.mp3", 1719061225, 3310642577)
  33. PlayFlavor(QuestGiver,"","","happy",0,0,Player)
  34. Dialog.AddOption("Assuming he didn't blow up, I'll find him.")
  35. Dialog.Start()
  36. end
  37. function Declined(Quest, QuestGiver, Player)
  38. -- Add dialog here for when the quest is declined
  39. end
  40. function Deleted(Quest, QuestGiver, Player)
  41. -- Remove any quest specific items here when the quest is deleted
  42. end
  43. function QuestComplete(Quest, QuestGiver, Player)
  44. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  45. UpdateQuestStepDescription(Quest, 3, "I gave Qwergo his thingie that he wanted.")
  46. UpdateQuestTaskGroupDescription(Quest, 3, "I gave Qwergo his thingie that he wanted.")
  47. UpdateQuestDescription(Quest, "Qwergo has paid me for picking up a Rumblestick for him. He was busy playing with the buttons and strings on it, so I'm not too sure what it is used for.")
  48. GiveQuestReward(Quest, Player)
  49. end
  50. function Reload(Quest, QuestGiver, Player, Step)
  51. if Step == 1 then
  52. Step1Complete(Quest, QuestGiver, Player)
  53. elseif Step == 2 then
  54. Step2Complete(Quest, QuestGiver, Player)
  55. elseif Step == 3 then
  56. QuestComplete(Quest, QuestGiver, Player)
  57. end
  58. end