9
3

a_belt_with_potential.lua 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : a_belt_with_potential.lua
  3. Script Purpose : Handles the quest, "A Belt with Potential"
  4. Script Author : premierio015
  5. Script Date : 05.07.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Edgewater Drains
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I should try to find the whip handle on the Murkwater ratonga.", 1, 10, "I need to find the missing handle for the whip. If I'm lucky I might be able to find it down in the Edgewater Drains somewhere. I should probably start with the Murkwater ratonga since I found the whip cord on one of them.", 661, 1560004, 1560012, 1560013, 1560029, 1560027)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have found the whip handle on the Murkwater ratonga.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have found the whip handle.")
  28. AddQuestStepKill(Quest, 2, "I should find piranha teeth to use as barbs for the whip.", 6, 100, "After looking carefully at the braided length of leather it appears that it used to have barbs. I should attempt to find replacements. Perhaps the sharp teeth of some of the fish down in the Edgewater Drains would work.", 137, 1560022, 1560034, 1560087)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I have found some replacement barbs for the whip.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I have found several teeth that seem suitable for replacement barbs within the whip.")
  34. AddQuestStepKill(Quest, 3, "I should find some suitable weights for the whip.", 4, 10, "The whip seems nearly complete though lacks weight at the end to allow it to really bite into enemies. I should try to find some suitable weights to give it a little more heft and finally make it a fearsome weapon. Perhaps the octopi have picked up something I can use.", 1001, 1560020, 1560032)
  35. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 3, "I have found some suitable weights for the whip.")
  40. UpdateQuestTaskGroupDescription(Quest, 3, "I have found replacement weights for the whip.")
  41. if HasItem(Player, 2857) then
  42. RemoveItem(Player, 2857)
  43. end
  44. UpdateQuestDescription(Quest, "I have found all the pieces I needed to rebuild the Whip of the Furies.")
  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