CantWeAllJustGetAlong.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : Quests/Commonlands/CantWeAllJustGetAlong.lua
  3. Script Purpose : Handles the quest, "Can't We All Just Get Along?"
  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, "I need to speak to Jaharin in the kerran camp", 1, "I need to speak to Amoora's father, Jaharin.", 11, 330062)
  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 be back.")
  20. StartConversation(conversation, QuestGiver, Player, "Thanks you, thanks you!")
  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 have spoken to Jaharin in the kerran camp.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken to Amoora's father Jaharin.")
  31. AddQuestStepChat(Quest, 2, "I need to speak to Riki in the ratonga camp", 1, "I should speak to Riki, Ferink's mother, in the ratonga camp across the river from the kerra camp.", 11, 330045)
  32. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  33. end
  34. function Step2Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I spoke to Riki in the ratonga camp.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken to Riki in the ratonga camp.")
  37. AddQuestStepChat(Quest, 3, "I should return to Ferink", 1, "I have spoken to both Jaharin and Riki and I should return to Ferink.", 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 have returned and given Ferink the bad news.")
  43. UpdateQuestTaskGroupDescription(Quest, 3, "I have returned to Ferink after speaking with Jaharin and Riki.")
  44. UpdateQuestDescription(Quest, "I spoke to both Jaharin and Riki and returned to Ferink.")
  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