ians_forgetful_family__part_v.lua 7.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. --[[
  2. Script Name : Quests/QeynosHarbor/ians_forgetful_family__part_v.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.16 10:06:54
  5. Script Purpose :
  6. Zone : QeynosHarbor
  7. Quest Giver: Ian Cathlan
  8. Preceded by: Ian's Forgetful Family - Part III
  9. Followed by: Ian's Forgetful Family - Part V
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Ian thinks his gnomish friend Torzig lost his poker chips the last time they ventured into the Thundering Steppes. Some of the unearthed settlers must have picked them up.", 5, 80, "To continue the list of things lost by my family. My cousin Terra lost her lucky coin collection when we were fighting some Sabertooth looters if you could look around them in the Thundering Steppes that would be nice of you. My old gnomish friend Torzig dropped his poker chips when we were running for our lives from a huge mob undead villagers, all kinds were in that heap so I'm sure several of them must have picked up a chip or two. I lost my set of keys when fighting corpse feeders. If you could look on them while you're in the Steppes I'd be grateful. I still can't open my sealed strongbox, made it too good I guess. Oh, and during a titanic battle in the dry riverbed with a horde of undead a friend lost his favorite sword Bonechipper. It's got the name on the blade so you can identify it. - Ian", 2302, 2490150)
  14. AddQuestStepKill(Quest, 2, "Ian lost his keyring after hunting corpse feeders they may still hold his keys.", 10, 100, "To continue the list of things lost by my family. My cousin Terra lost her lucky coin collection when we were fighting some Sabertooth looters if you could look around them in the Thundering Steppes that would be nice of you. My old gnomish friend Torzig dropped his poker chips when we were running for our lives from a huge mob undead villagers, all kinds were in that heap so I'm sure several of them must have picked up a chip or two. I lost my set of keys when fighting corpse feeders. If you could look on them while you're in the Steppes I'd be grateful. I still can't open my sealed strongbox, made it too good I guess. Oh, and during a titanic battle in the dry riverbed with a horde of undead a friend lost his favorite sword Bonechipper. It's got the name on the blade so you can identify it. - Ian", 2170, 2490128)
  15. AddQuestStepKill(Quest, 3, "Ian's cousin Terra lost her lucky coin collection when fighting Sabertooth looters in the Thundering Steppes.", 12, 100, "To continue the list of things lost by my family. My cousin Terra lost her lucky coin collection when we were fighting some Sabertooth looters if you could look around them in the Thundering Steppes that would be nice of you. My old gnomish friend Torzig dropped his poker chips when we were running for our lives from a huge mob undead villagers, all kinds were in that heap so I'm sure several of them must have picked up a chip or two. I lost my set of keys when fighting corpse feeders. If you could look on them while you're in the Steppes I'd be grateful. I still can't open my sealed strongbox, made it too good I guess. Oh, and during a titanic battle in the dry riverbed with a horde of undead a friend lost his favorite sword Bonechipper. It's got the name on the blade so you can identify it. - Ian", 2165, 2490313,2490311)
  16. AddQuestStepKill(Quest, 4, "An old friend of Ian's lost his sword "Bonechipper" in a large battle near the dry riverbed in the Thundering Steppes.", 1, 20, "To continue the list of things lost by my family. My cousin Terra lost her lucky coin collection when we were fighting some Sabertooth looters if you could look around them in the Thundering Steppes that would be nice of you. My old gnomish friend Torzig dropped his poker chips when we were running for our lives from a huge mob undead villagers, all kinds were in that heap so I'm sure several of them must have picked up a chip or two. I lost my set of keys when fighting corpse feeders. If you could look on them while you're in the Steppes I'd be grateful. I still can't open my sealed strongbox, made it too good I guess. Oh, and during a titanic battle in the dry riverbed with a horde of undead a friend lost his favorite sword Bonechipper. It's got the name on the blade so you can identify it. - Ian", 617, 2490119,2490102,2490098,2490095,2490121,2490120,2490123)
  17. UpdateQuestZone(Quest,"Thundering Steppes")
  18. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  19. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  20. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  21. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  22. end
  23. function Accepted(Quest, QuestGiver, Player)
  24. FaceTarget(QuestGiver, Player)
  25. Dialog.New(QuestGiver, Player)
  26. Dialog.AddDialog("It takes a keen mind, a little insanity, and lots of practice. Let me write down where you can pick up everything else that was lost. I have high hopes that we'll find everything!")
  27. Dialog.AddVoiceover("voiceover/english/optional3/ian_cathlan/qey_harbor/quests/ian_cathlan/iancathlan014.mp3", 1824092303, 3032162990)
  28. Dialog.AddOption("I'll be back after seeing what else I can find.")
  29. Dialog.Start()
  30. end
  31. function Declined(Quest, QuestGiver, Player)
  32. -- Add dialog here for when the quest is declined
  33. end
  34. function Deleted(Quest, QuestGiver, Player)
  35. -- Remove any quest specific items here when the quest is deleted
  36. end
  37. function Step1Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 1, "I have found the missing poker chips.")
  39. CheckProgress(Quest, QuestGiver, Player)
  40. end
  41. function Step2Complete(Quest, QuestGiver, Player)
  42. UpdateQuestStepDescription(Quest, 2, "I have found Ian's lost keys")
  43. CheckProgress(Quest, QuestGiver, Player)
  44. end
  45. function Step3Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 3, "I have found what looks to be Terra's lost lucky coin collection.")
  47. CheckProgress(Quest, QuestGiver, Player)
  48. end
  49. function Step4Complete(Quest, QuestGiver, Player)
  50. UpdateQuestStepDescription(Quest, 4, "I have found Bonechipper.")
  51. CheckProgress(Quest, QuestGiver, Player)
  52. end
  53. function CheckProgress(Quest, QuestGiver, Player)
  54. if QuestStepIsComplete(Player, 5592, 1) and QuestStepIsComplete(Player, 5592, 2) and QuestStepIsComplete(Player, 5592, 3) and QuestStepIsComplete(Player, 5592, 4) then
  55. UpdateQuestTaskGroupDescription(Quest, 1, "I've recovered everything Ian needed, I should return to him.")
  56. UpdateQuestZone(Quest,"Qeynos Harbor")
  57. 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)
  58. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  59. end
  60. end
  61. function QuestComplete(Quest, QuestGiver, Player)
  62. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  63. UpdateQuestStepDescription(Quest, 4, "I have returned to Ian in Qeynos Harbor.")
  64. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken with Ian in Qeynos Harbor.")
  65. UpdateQuestDescription(Quest, "Ian has rewarded me with armor for collecting a few of his lost family's possessions.")
  66. GiveQuestReward(Quest, Player)
  67. end
  68. function Reload(Quest, QuestGiver, Player, Step)
  69. if Step == 1 then
  70. Step1Complete(Quest, QuestGiver, Player)
  71. elseif Step == 2 then
  72. Step2Complete(Quest, QuestGiver, Player)
  73. elseif Step == 3 then
  74. Step3Complete(Quest, QuestGiver, Player)
  75. elseif Step == 4 then
  76. Step4Complete(Quest, QuestGiver, Player)
  77. elseif Step == 5 then
  78. QuestComplete(Quest, QuestGiver, Player)
  79. end
  80. end