coldblooded_relations.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : cold-blooded_relations....lua
  3. Script Purpose : Handles the quest, "Cold-blooded Relations..."
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 4/29/2023
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : World Event
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. local Oemor = 1230003
  13. local Teiluj = 1230002
  14. function Init(Quest)
  15. AddQuestStep(Quest, 1, "Gather some flowers.", 3, 100, "Teiluj asked me to gather some flowers to give to Oemor.", 1955)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. FaceTarget(QuestGiver, Player)
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "Great plan! I'll be back soon.")
  22. StartConversation(conversation, QuestGiver, Player, "I have crafted a marvelous plan, indeed! Sweet Oemor's favorite flowers art now in bloom. I implore thee to take the pain of gathering a few and giving them to my dearest. Inform her that they are from me, then perhaps she will speak again to me!")
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. -- Add dialog here for when the quest is declined
  26. end
  27. function Deleted(Quest, QuestGiver, Player)
  28. -- Remove any quest specific items here when the quest is deleted
  29. end
  30. function Step1Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "I've gathered the flowers.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered the flowers.")
  33. AddQuestStepChat(Quest, 2, "I must deliver the flowers to Oemor.", 1, "I need to deliver these flowers to Oemor and tell her how much Teiluj loves her.", 11, Oemor)
  34. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  35. end
  36. function Step2Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 2, "I delivered the flowers to Oemor.")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "I've delivered the flowers and the message.")
  39. AddQuestStepChat(Quest, 3, "Tell Teiluj the good news.", 1, "I need to go let Teiluj know that Oemor wants to see him so they can make up.", 11, Teiluj)
  40. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  41. end
  42. function QuestComplete(Quest, QuestGiver, Player)
  43. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  44. UpdateQuestStepDescription(Quest, 3, "I talked to Teiluj. He seemed quite happy.")
  45. UpdateQuestTaskGroupDescription(Quest, 3, "I spoke with Teiluj and let him know that things went well.")
  46. UpdateQuestDescription(Quest, "I picked the flowers and delivered them to Oemor. She promptly forgot why she was mad and forgave Teiluj.")
  47. GiveQuestReward(Quest, Player)
  48. end
  49. function Reload(Quest, QuestGiver, Player, Step)
  50. if Step == 1 then
  51. Step1Complete(Quest, QuestGiver, Player)
  52. elseif Step == 2 then
  53. Step2Complete(Quest, QuestGiver, Player)
  54. elseif Step == 3 then
  55. QuestComplete(Quest, QuestGiver, Player)
  56. end
  57. end