9
3

deliveries_for_flores.lua 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. function Init(Quest)
  12. 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)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/merchant_flores/antonica/merchantflores002.mp3", "", "", 2413854703, 2789428713, Player)
  19. AddConversationOption(conversation, "Hey, wait that's my journal... err, all right I suppose it's too late.")
  20. StartConversation(conversation, QuestGiver, Player, "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.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I've delivered the crate to Merchant Novak.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I've delivered the crate to Novak and picked up her pouch.")
  31. 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)
  32. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  33. end
  34. function Step2Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I've delivered the crate to Merchant Geddard.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I've delivered the crate to Geddard and picked up his pouch.")
  37. 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)
  38. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  39. end
  40. function QuestComplete(Quest, QuestGiver, Player)
  41. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  42. UpdateQuestStepDescription(Quest, 3, "I've delivered the pouches to Merchant Flores.")
  43. UpdateQuestTaskGroupDescription(Quest, 3, "I've delivered Novak and Geddard's pouches to Flores.")
  44. 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.")
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. Step1Complete(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. Step2Complete(Quest, QuestGiver, Player)
  52. elseif Step == 3 then
  53. QuestComplete(Quest, QuestGiver, Player)
  54. end
  55. end