9
3

kualdins_duet_offer.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : kualdins_duet_offer.lua
  3. Script Purpose : Handles the quest, "Kualdin's Duet Offer"
  4. Script Author : Dorbin
  5. Script Date : 2/9/2022
  6. Script Notes :
  7. Zone : Willow Wood
  8. Quest Giver : Kualdin Swoonsong
  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 find Bupipa Guryup.", 1, "I should find Bupipa Guryup in Castleview and ask her about Kualdin's duet offer.", 0, 2360008)
  15. AddQuestStepCompleteAction(Quest, 1, "TheOffer")
  16. UpdateQuestZone(Quest, "Castleview Hamlet")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. FaceTarget(QuestGiver, Player)
  20. Dialog.New(QuestGiver, Player)
  21. Dialog.AddDialog("Her name is Bupipa Guryup and she resides in Castleview. I would ask her but I hate denying my fans a daily serenade. Please let me know if she accepts my offer.")
  22. Dialog.AddVoiceover("voiceover/english/kualdin_swoonsong/qey_village05/kualdinswoonsong002.mp3", 23545717, 1052293137)
  23. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player)
  24. Dialog.AddOption("I will go ask her for you.")
  25. Dialog.Start()
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. -- Add dialog here for when the quest is declined
  29. end
  30. function Deleted(Quest, QuestGiver, Player)
  31. -- Remove any quest specific items here when the quest is deleted
  32. end
  33. function TheOffer(Quest, QuestGiver, Player)
  34. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  35. UpdateQuestStepDescription(Quest, 1, "I told Bupipa about Kualdin's offer.")
  36. UpdateQuestTaskGroupDescription(Quest, 1, "I told Bupipa about Kualdin's offer.")
  37. AddQuestStepChat(Quest, 2, "I need to return to Kualdin Swoonsong.", 1, " Kualdin Swoonsong needs to know about Bupipa's agreement.", 0, 2370015)
  38. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  39. UpdateQuestZone(Quest, "Willow Wood")
  40. end
  41. function QuestComplete(Quest, QuestGiver, Player)
  42. UpdateQuestStepDescription(Quest, 2, "I've returned to Kualdin.")
  43. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to Kualdin and told him about Bupipa's agreement.")
  44. UpdateQuestDescription(Quest, "I told Kualdin that Bupipa was interested in the offer but she required at least one solo. Kualdin said he could fit her solo in somewhere between his second and fifth solo. I hope the wood elf can put on a good show.")
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. TheOffer(Quest, QuestGiver, Player)
  50. end
  51. if Step == 2 then
  52. QuestComplete(Quest, QuestGiver, Player)
  53. end
  54. end