TheLovebirdsRoost.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : Quests/Commonlands/TheLovebirdsRoost.lua
  3. Script Purpose : Handles the quest, "The Lovebirds' Roost"
  4. Script Author : premierio015
  5. Script Date : 21.05.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : Ferink
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Speak to Jojo", 1, "I need to find Jojo in the Seafarer's Roost in the City of Freeport and speak with him about Ferink's love troubles.", 11, 5590401)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. AddConversationOption(conversation, "I'll find your friend.")
  20. StartConversation(conversation, QuestGiver, Player, "You'll do that for me? Oh thank you; you are a good friend. I will be grateful to you always! Her fur is so soft... ")
  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 spoke with Jojo.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I spoke to Jojo.")
  31. AddQuestStepChat(Quest, 2, "Take the necklace to Riki", 1, "I should take the necklace to Riki in the Commonlands.", 579, 330045)
  32. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  33. end
  34. function Step2Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I took the necklace to Riki.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken with Riki.")
  37. AddQuestStepChat(Quest, 3, "Speak to Ferink", 1, "I should tell Ferink the good news.", 11, 330046)
  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 spoke to Ferink.")
  43. UpdateQuestTaskGroupDescription(Quest, 3, "I have returned to Ferink in the Commonlands.")
  44. UpdateQuestDescription(Quest, "I returned to Ferink after giving the necklace to Riki.")
  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