9
3

kualdins_duet_offer.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. function Init(Quest)
  13. 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)
  14. AddQuestStepCompleteAction(Quest, 1, "TheOffer")
  15. UpdateQuestZone(Quest, "Castleview Hamlet")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. -- Add dialog here for when the quest is accepted
  19. end
  20. function Declined(Quest, QuestGiver, Player)
  21. -- Add dialog here for when the quest is declined
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. -- Remove any quest specific items here when the quest is deleted
  25. end
  26. function TheOffer(Quest, QuestGiver, Player)
  27. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  28. UpdateQuestStepDescription(Quest, 1, "I told Bupipa about Kualdin's offer.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I told Bupipa about Kualdin's offer.")
  30. AddQuestStepChat(Quest, 2, "I need to return to Kualdin Swoonsong.", 1, " Kualdin Swoonsong needs to know about Bupipa's agreement.", 0, 2370015)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. UpdateQuestZone(Quest, "Willow Wood")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I've returned to Kualdin.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to Kualdin and told him about Bupipa's agreement.")
  37. 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.")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. TheOffer(Quest, QuestGiver, Player)
  43. end
  44. if Step == 2 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end