scorched_wooden_staff.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : Quests/FallenGate/scorched_wooden_staff.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.11 06:07:47
  5. Script Purpose :
  6. Zone : FallenGate
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I should find the stones that were once a part of the scorched wooden staff.", 3, 100, "I need to find the missing rocks or gems that were once a part of the staff. They couldn't have gotten far so I should search for anything that fits within Fallen Gate where I found the staff.", 1180, 1190029, 1190030)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have found three polished pieces of amber that look as if they would fit within some of the indentations along the staff.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I have found three polished pieces of amber that look as if they would fit within some of the indentations along the staff.")
  27. AddQuestStepKill(Quest, 2, "I should find a replacement for the leather straps that probably existed on the staff before.", 4, 100, "The four carved ridges along the length seem to indicate that perhaps the staff had some leather grips. Perhaps if I could replace these with something similar it will give me a hint as to their purpose.", 740, 1190019)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have found some replacement straps for the scorched staff.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I have found some replacement straps for the scorched staff.")
  33. AddQuestStepKill(Quest, 3, "I should find some replacement end caps for the scorched staff.", 2, 100, "It seems as if the end caps are missing. Some replacements might be found down near Hate's Forge in Fallen Gate.", 554, 1190099)
  34. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  35. end
  36. function QuestComplete(Quest, QuestGiver, Player)
  37. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  38. UpdateQuestStepDescription(Quest, 3, "I have found replacement end caps on the undead that reside within Hate's Forge in Fallen Gate.")
  39. UpdateQuestTaskGroupDescription(Quest, 3, "I have found replacement end caps on the undead that reside within Hate's Forge in Fallen Gate.")
  40. if HasItem(Player, 2581) then
  41. RemoveItem(Player, 2581)
  42. end
  43. UpdateQuestDescription(Quest, "I have found all the pieces and reassembled the Scorched Wooden Staff. It seems to have only a measure of the power it once possessed but yet is still strong despite the appearance.")
  44. GiveQuestReward(Quest, Player)
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1Complete(Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. Step2Complete(Quest, QuestGiver, Player)
  51. elseif Step == 3 then
  52. QuestComplete(Quest, QuestGiver, Player)
  53. end
  54. end