AStrangeStoneWedge.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : Quests/Commonlands/AStrangeStoneWedge.lua
  3. Script Purpose : Handles the quest, "A Strange Stone Wedge"
  4. Script Author : premierio015
  5. Script Date : 27.02.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : a dull wedge(1621)
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I should try to find a suitable whetstone on the stone giants in the Commonlands", 5, 100, "I should try and find a suitable whetstone from the living rock of a stone giant in the Commonlands.", 1140, 330108)
  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 whetstone I need.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have found a living rock whetstone.")
  28. AddQuestStepKill(Quest, 2, "I should try to find a suitable handle for the hatchet. The undead pirates may have a wooden peg leg I can use.", 6, 100, "I need a special handle for this hatchet, not just any wood is going to do. The wooden peg leg from some undead pirates just might work.", 840, 330155)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I have found a suitable handle for Chickenbane.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I have found the handle I need.")
  34. AddQuestStepKill(Quest, 3, "I should find some replacement grips for Chickenbane. The leathery hide of an elephant should work nicely.", 5, 100, "I need some strong leather with a good grip for the finishing touches on Chickenbane. Perhaps the leathery hide of an elephant would work.", 765, 330343, 330141, 330639, 330274, 330277)
  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 the leather I need and should replace the grips of Chickenbane.")
  40. UpdateQuestTaskGroupDescription(Quest, 3, "I have the leather I need.")
  41. UpdateQuestDescription(Quest, "I finished remaking Chickenbane.")
  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