deliveries_for_flores.lua 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : Quests/Antonica/deliveries_for_flores.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.08 09:08:16
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver: Flores(120087)
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to deliver a crate to Merchant Novak.", 1, "I must deliver a crate of Flores' merchandise to Merchant Novak by the lighthouse.", 654, 120099)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. Dialog.AddDialog("I'll pay you a cut of my earnings. You'll take the first crate of supplies to Novak over by the lighthouse. The second must go to Geddard at Gnollslayer Keep. I see you've a little book. Here, let me write down where you need to go. Make sure to bring back their delivery pouches when you're through.")
  20. Dialog.AddVoiceover("voiceover/english/merchant_flores/antonica/merchantflores002.mp3", 2413854703, 2789428713)
  21. PlayFlavor(QuestGiver, "", "", "point", 0, 0, Player)
  22. Dialog.AddOption("Hey, wait that's my journal... err, all right I suppose it's too late.")
  23. Dialog.Start()
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is declined
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. -- Remove any quest specific items here when the quest is deleted
  30. end
  31. function Step1Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I've delivered the crate to Merchant Novak.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I've delivered the crate to Novak and picked up her pouch.")
  34. AddQuestStepChat(Quest, 2, "I need to deliver a crate to Merchant Geddard.", 1, "I must deliver a crate of Flores' merchandise to Merchant Geddard in Gnollslayer Keep.", 654, 120398)
  35. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  36. end
  37. function Step2Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "I've delivered the crate to Merchant Geddard.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I've delivered the crate to Geddard and picked up his pouch.")
  40. AddQuestStepChat(Quest, 3, "I need to deliver the pouches to Merchant Flores.", 1, "I must deliver both Novak and Geddard's pouches to Flores outside of Qeynos.", 401, 120087)
  41. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  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've delivered the pouches to Merchant Flores.")
  46. UpdateQuestTaskGroupDescription(Quest, 3, "I've delivered Novak and Geddard's pouches to Flores.")
  47. UpdateQuestDescription(Quest, "I managed to deliver both crates and bring back Novak and Geddard's pouches to Flores. Those crates just about broke my back! But I suppose not many want to trudge out there with supplies, so every run has got to count.")
  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