9
3

elephant_hide_boots_.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : Quests/TheCommonlands/elephant_hide_boots_.lua
  3. Script Purpose : Handles the quest, "Elephant Hide Boots"
  4. Script Author : premierio015
  5. Script Date : 01.06.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : Holey Hide Boots(Item)
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepObtainItem(Quest, 1, "I'm going to need some elephant hide to begin with. I'll need a big patch if this is going to work.", 5, 100, "If these boots are going to be repaired, I'm going to have to do some work.", 129, 13570, 1521, 1499)
  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've been able to find a large patch of elephant hide.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've been able to repair these boots back to their former condition.")
  28. AddQuestStepKill(Quest, 2, "Check Dervish Cutthroats for stitching cord", 5, 100, "I need to check to see if any of these Dervish Cutthroats have any stitching cord on them.", 2329, 330092, 330104)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I've been able to find a lot of stitching cord on the Dervish Cutthroats.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I was able to attain some cord from Dervish Cutthroats here in the commonlands.")
  34. AddQuestStepLocation(Quest, 3, "I need to soak these boots in Pride Lake to shrink the hide", 10, "I'm going to need to shrink the new hide on these boots to get them to fit properly, I should head to the nearest lake and soak the hide.", 11, 590, -45, -360)
  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've soaked the boots in Pride Lake.")
  40. UpdateQuestTaskGroupDescription(Quest, 3, "I managed to soak the hide in Pride Lake to the perfect size.")
  41. UpdateQuestDescription(Quest, "Through much work, I've been able to repair these boots. They're now a nice set of Elephant Hide Boots. <br> <br>")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. Step2Complete(Quest, QuestGiver, Player)
  49. elseif Step == 3 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end