ians_forgetful_family__part_iii.lua 5.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : Quests/QeynosHarbor/ians_forgetful_family__part_iii.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.16 10:06:23
  5. Script Purpose :
  6. Zone : QeynosHarbor
  7. Quest Giver: Ian Cathlan
  8. Preceded by: Ian's Forgetful Family - Part II
  9. Followed by: Ian's Forgetful Family - Part IV
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Ian's cousin lost his marble collection while running from some defiled knights within Stormhold.", 12, 100, "My cousin lost his marbles (literally) while fighting defiled knights within Stormhold. If you could give him another start on his collection and see if you can find some of the missing ones that would be nice. Also, my brother lost his silverware on the same journey into Stormhold. What an undead crusader would need with silverware I'll never know but you might check them. And lastly, my aunt lost her favorite gaming dice on the same trip after her dice bag was ripped open by the spear of a defiled cavalier. If you could get those back I'll give you the next piece of armor. - Ian", 2919, 150290,150010,150227,150076)
  14. AddQuestStepKill(Quest, 2, "Ian's brother lost his favorite set of silverware after running from defiled crusaders in Stormhold.", 5, 85, "My cousin lost his marbles (literally) while fighting defiled knights within Stormhold. If you could give him another start on his collection and see if you can find some of the missing ones that would be nice. Also, my brother lost his silverware on the same journey into Stormhold. What an undead crusader would need with silverware I'll never know but you might check them. And lastly, my aunt lost her favorite gaming dice on the same trip after her dice bag was ripped open by the spear of a defiled cavalier. If you could get those back I'll give you the next piece of armor. - Ian", 364,150236,150020,150080)
  15. AddQuestStepKill(Quest, 3, "Ian's aunt lost her favorite set of gaming dice running from the defiled cavaliers in Stormhold.", 10, 100, "My cousin lost his marbles (literally) while fighting defiled knights within Stormhold. If you could give him another start on his collection and see if you can find some of the missing ones that would be nice. Also, my brother lost his silverware on the same journey into Stormhold. What an undead crusader would need with silverware I'll never know but you might check them. And lastly, my aunt lost her favorite gaming dice on the same trip after her dice bag was ripped open by the spear of a defiled cavalier. If you could get those back I'll give you the next piece of armor. - Ian", 3183,150040,150254)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  18. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  19. UpdateQuestZone(Quest,"Stormhold")
  20. end
  21. function Accepted(Quest, QuestGiver, Player)
  22. FaceTarget(QuestGiver, Player)
  23. Dialog.New(QuestGiver, Player)
  24. Dialog.AddDialog("I wrote it down for you. At least ya seem to carry things a little better than me nephew, so I trust you won't lose it. See what you can find.")
  25. Dialog.AddVoiceover("voiceover/english/optional3/ian_cathlan/qey_harbor/quests/ian_cathlan/iancathlan012.mp3", 1176133948, 2712461164)
  26. Dialog.AddOption("No problem. I'll be back when I find him or more of the things.")
  27. Dialog.Start()
  28. end
  29. function Declined(Quest, QuestGiver, Player)
  30. -- Add dialog here for when the quest is declined
  31. end
  32. function Deleted(Quest, QuestGiver, Player)
  33. -- Remove any quest specific items here when the quest is deleted
  34. end
  35. function Step1Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 1, "I have found several of the marbles for Ian's cousin.")
  37. CheckProgress(Quest, QuestGiver, Player)
  38. end
  39. function Step2Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 2, " have found the lost silverware and should return them to Ian.")
  41. CheckProgress(Quest, QuestGiver, Player)
  42. end
  43. function Step3Complete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 3, "I have found the missing dice.")
  45. CheckProgress(Quest, QuestGiver, Player)
  46. end
  47. function CheckProgress(Quest, QuestGiver, Player)
  48. if QuestStepIsComplete(Player, 5590, 1) and QuestStepIsComplete(Player, 5590, 2) and QuestStepIsComplete(Player, 5590, 3) then
  49. UpdateQuestTaskGroupDescription(Quest, 1, "I've recovered everything Ian needed, I should return to him.")
  50. UpdateQuestZone(Quest,"Qeynos Harbor")
  51. AddQuestStepChat(Quest, 4, "I should return to Ian in Qeynos Harbor.", 1, 100, "I need to speak to Ian Cathlan in the Qeynos Harbor.", 11,2210084)
  52. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  53. end
  54. end
  55. function QuestComplete(Quest, QuestGiver, Player)
  56. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  57. UpdateQuestStepDescription(Quest, 4, "I have returned to Ian in Qeynos Harbor.")
  58. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken with Ian in Qeynos Harbor.")
  59. UpdateQuestDescription(Quest, "Ian has rewarded me with armor for collecting a few of his lost family's possessions.")
  60. GiveQuestReward(Quest, Player)
  61. end
  62. function Reload(Quest, QuestGiver, Player, Step)
  63. if Step == 1 then
  64. Step1Complete(Quest, QuestGiver, Player)
  65. elseif Step == 2 then
  66. Step2Complete(Quest, QuestGiver, Player)
  67. elseif Step == 3 then
  68. Step3Complete(Quest, QuestGiver, Player)
  69. elseif Step == 4 then
  70. QuestComplete(Quest, QuestGiver, Player)
  71. end
  72. end