9
3

half_pint_help.lua 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. --[[
  2. Script Name : Quests/RuinsofVarsoon/half_pint_help.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.22 04:01:56
  5. Script Purpose :
  6. Zone : RuinsofVarsoon
  7. Quest Giver: Dibble Rootweaver
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "Find Dibble's satchel.", 1, 40, "I need to recover the key material components that Dibble had taken from him when he was imprisoned. The stuff has to be around here some where, or some of these creatures down here have it.", 402, 2560011)
  13. AddQuestStepKill(Quest, 2, "Find the dull metal fragment samples.", 1, 40, "I need to recover the key material components that Dibble had taken from him when he was imprisoned. The stuff has to be around here some where, or some of these creatures down here have it.", 1085, 2560016)
  14. AddQuestStepKill(Quest, 3, "Find a bar of indescribable metal.", 1, 40, "I need to recover the key material components that Dibble had taken from him when he was imprisoned. The stuff has to be around here some where, or some of these creatures down here have it.", 730, 2560000)
  15. AddQuestStepKill(Quest, 4, "Find the traveling alchemy kit.", 1, 40, "I need to recover the key material components that Dibble had taken from him when he was imprisoned. The stuff has to be around here some where, or some of these creatures down here have it.", 31, 2560060)
  16. AddQuestStepKill(Quest, 5, "Find a jar of blue fluid.", 1, 40, "I need to recover the key material components that Dibble had taken from him when he was imprisoned. The stuff has to be around here some where, or some of these creatures down here have it.", 359, 2560027)
  17. AddQuestStepKill(Quest, 6, "Find the research manual.", 1, 40, "I need to recover the key material components that Dibble had taken from him when he was imprisoned. The stuff has to be around here some where, or some of these creatures down here have it.", 720, 2560029)
  18. AddQuestStepCompleteAction(Quest, 1, "step1_complete_Bag")
  19. AddQuestStepCompleteAction(Quest, 2, "step2_complete_Metal")
  20. AddQuestStepCompleteAction(Quest, 3, "step3_complete_Bar")
  21. AddQuestStepCompleteAction(Quest, 4, "step4_complete_Flask")
  22. AddQuestStepCompleteAction(Quest, 5, "step5_complete_Jar")
  23. AddQuestStepCompleteAction(Quest, 6, "step6_complete_Tome")
  24. end
  25. function step1_complete_Bag(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I've found Dibble's satchel.")
  27. if QuestIsComplete(Player, 5448) then
  28. Multiple_Steps_Complete(Quest, QuestGiver, Player)
  29. end
  30. end
  31. function step2_complete_Metal(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I've found the dull metal fragment samples.")
  33. if QuestIsComplete(Player, 5448) then
  34. Multiple_Steps_Complete(Quest, QuestGiver, Player)
  35. end
  36. end
  37. function step3_complete_Bar(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 3, "I've found a bar of indescribable metal.")
  39. if QuestIsComplete(Player, 5448) then
  40. Multiple_Steps_Complete(Quest, QuestGiver, Player)
  41. end
  42. end
  43. function step4_complete_Flask(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 4, "I've found the traveling alchemy kit.")
  45. if QuestIsComplete(Player, 5448) then
  46. Multiple_Steps_Complete(Quest, QuestGiver, Player)
  47. end
  48. end
  49. function step5_complete_Jar(Quest, QuestGiver, Player)
  50. UpdateQuestStepDescription(Quest, 5, "I've found a jar of blue fluid.")
  51. if QuestIsComplete(Player, 5448) then
  52. Multiple_Steps_Complete(Quest, QuestGiver, Player)
  53. end
  54. end
  55. function step6_complete_Tome(Quest, QuestGiver, Player)
  56. UpdateQuestStepDescription(Quest, 6, "I've found the research manual.")
  57. if QuestIsComplete(Player, 5448) then
  58. Multiple_Steps_Complete(Quest, QuestGiver, Player)
  59. end
  60. end
  61. function Multiple_Steps_Complete(Quest, QuestGiver, Player)
  62. UpdateQuestTaskGroupDescription(Quest, 1, "I found all of Dibble's components now I'll I have to do is deliver it to his master.")
  63. UpdateQuestZone(Player, "Baubbleshire")
  64. AddQuestStepChat(Quest, 7, "I need to get this stuff to Tailor Peona.", 1, "Now that I've found all of this stuff I need to take it to his master; Tailor Peona in the Baubbleshire village, in Qeynos.", 0, 2380006)
  65. AddQuestStepCompleteAction(Quest, 7, "QuestComplete")
  66. end
  67. function Accepted(Quest, QuestGiver, Player)
  68. end
  69. function Declined(Quest, QuestGiver, Player)
  70. end
  71. function QuestComplete(Quest, QuestGiver, Player)
  72. UpdateQuestStepDescription(Quest, 7, " I given the items to Tailor Peona.")
  73. UpdateQuestTaskGroupDescription(Quest, 2, "I've delivered all of the components to Dibbles master.")
  74. UpdateQuestDescription(Quest, "I was able to gather all of the components that the halfling had lost down in the Ruins of Varsoon, and deliver them to his master. What a peculiar little halfling. I wonder how he is doing, and if he's made his way out of that cell yet?")
  75. GiveQuestReward(Quest, Player)
  76. end
  77. function Reload(Quest, QuestGiver, Player, Step)
  78. if Step == 1 then
  79. step1_complete_Bag(Quest, QuestGiver, Player)
  80. elseif Step == 2 then
  81. step2_complete_Metal(Quest, QuestGiver, Player)
  82. elseif Step == 3 then
  83. step3_complete_Bar(Quest, QuestGiver, Player)
  84. elseif Step == 4 then
  85. step4_complete_Flask(Quest, QuestGiver, Player)
  86. elseif Step == 5 then
  87. step5_complete_Jar(Quest, QuestGiver, Player)
  88. elseif Step == 6 then
  89. step6_complete_Tome(Quest, QuestGiver, Player)
  90. elseif Step == 7 then
  91. Multiple_Steps_Complete(Quest, QuestGiver, Player)
  92. end
  93. end