fur_lined_gloves.lua 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. --[[
  2. Script Name : Quests/Antonica/fur_lined_gloves.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.12 04:05:19
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver: Patch of Dog Fur
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I'm going to need a larger patch of fur. I should see if I can get some from the gnolls in Antonica.", 10, 80, "I need to work hard to create a nice pair of gloves.", 1094, 120013,120015,120123,120184, 120203 ,120212 ,120251 , 120252 ,120290 ,120291,120295 , 120296 ,120300 ,120304 ,120310,120340 ,120355, 120361 ,120362, 120363 , 120364 ,120376 ,120378 ,120379, 120380, 120395,120397 ,120407,120420, 120424, 120425, 120426, 120427, 120429,120430, 120437, 120441, 120804, 120416, 120419, 120858, 121488, 121833, 121845 )
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. end
  17. function Declined(Quest, QuestGiver, Player)
  18. -- Add dialog here for when the quest is declined
  19. end
  20. function Deleted(Quest, QuestGiver, Player)
  21. -- Remove any quest specific items here when the quest is deleted
  22. end
  23. function Step1Complete(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 1, "I have found a larger patch of fur.")
  25. UpdateQuestTaskGroupDescription(Quest, 1, "I have found a larger patch of fur.")
  26. AddQuestStep(Quest,2," I should check both this patch of fur and the small one together.",1, 100,"I need to work hard to create a nice pair of gloves.", 127)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  28. end
  29. function Step2Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I have compared the furs.")
  31. UpdateQuestTaskGroupDescription(Quest, 2, "I have compared the furs.")
  32. AddQuestStep(Quest, 3, "I'm going to need some down feathers to stuff the gloves with. I should check the hay bales near the griffin towers.", 1, 100,"I need to work hard to create a nice pair of gloves.", 11)
  33. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  34. end
  35. function Step3Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 3, "I have found some down griffon feathers I need for the gloves.")
  37. UpdateQuestTaskGroupDescription(Quest, 3, "I have found some down griffon feathers I need for the gloves.")
  38. AddQuestStep(Quest,4,"I should stuff the gloves with feathers.",1, 100,"I need to work hard to create a nice pair of gloves.", 127)
  39. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  40. end
  41. function Step4Complete(Quest, QuestGiver, Player)
  42. UpdateQuestStepDescription(Quest, 4, "I have stuffed the down filled gloves.")
  43. UpdateQuestTaskGroupDescription(Quest, 4, "I have stuffed the down filled gloves. I need something to close up the seams.")
  44. AddQuestStepKill(Quest, 5, "I need to sew the lining shut. I should gather some tendons from a Caltorsis knight to use as string.", 2, 70, "I need to work hard to create a nice pair of gloves.", 382, 120126)
  45. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  46. end
  47. function Step5Complete(Quest, QuestGiver, Player)
  48. UpdateQuestStepDescription(Quest, 5, "I have collected the sinew to make these gloves.")
  49. UpdateQuestTaskGroupDescription(Quest, 5, "I have collected the sinew needed to close the lining on these gloves.")
  50. AddQuestStep(Quest,6," I should examine the fur again to sew them together.",1, 100,"I need to work hard to create a nice pair of gloves.", 127)
  51. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  52. end
  53. function QuestComplete(Quest, QuestGiver, Player)
  54. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  55. UpdateQuestStepDescription(Quest, 6, "I have closed the seams in the gloves!")
  56. UpdateQuestTaskGroupDescription(Quest, 6, "I've been able to create a nice set of fur lined gloves.")
  57. UpdateQuestDescription(Quest, "I've been able to make a nice set of gloves for my hands. And they're fur lined, too!")
  58. GiveQuestReward(Quest, Player)
  59. end
  60. function Reload(Quest, QuestGiver, Player, Step)
  61. if Step == 1 then
  62. Step1Complete(Quest, QuestGiver, Player)
  63. elseif Step == 2 then
  64. Step2Complete(Quest, QuestGiver, Player)
  65. elseif Step == 3 then
  66. Step3Complete(Quest, QuestGiver, Player)
  67. elseif Step == 4 then
  68. Step4Complete(Quest, QuestGiver, Player)
  69. elseif Step == 5 then
  70. Step5Complete(Quest, QuestGiver, Player)
  71. elseif Step == 6 then
  72. QuestComplete(Quest, QuestGiver, Player)
  73. end
  74. end