9
3

baynors_bent_tongs.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : baynors_bent_tongs.lua
  3. Script Purpose : Handles the quest, "Baynor's Bent Tongs"
  4. Script Author : Dorbin
  5. Script Date : 2/19/2022
  6. Script Notes :
  7. Zone : Willow Wood
  8. Quest Giver : Baynor
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to take the tongs to Mender Ironmallet.", 1, "I should take these bent tongs to Mender Ironmallet in Graystone Yard to fix.", 32, 2350012)
  14. AddQuestStepCompleteAction(Quest, 1, Step1Complete)
  15. UpdateQuestZone(Quest,"Graystone Yard")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. -- Add dialog here for when the quest is accepted
  19. end
  20. function Declined(Quest, QuestGiver, Player)
  21. -- Add dialog here for when the quest is declined
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. -- Remove any quest specific items here when the quest is deleted
  25. end
  26. function Step1Complete(Quest, QuestGiver, Player)
  27. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  28. UpdateQuestStepDescription(Quest, 1, "I gave the tongs to Mender Ironmallet.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I gave the tongs to Mender Ironmallet to fix.")
  30. UpdateQuestZone(Quest,"Willow Wood")
  31. AddQuestStepChat(Quest, 2, "I need to return these tongs to Baynor.", 1, "I should take these reparied tongs to Baynor in the Willow Wood", 32, 2370021)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I returned the tongs to Baynor.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I returned the reparied tongs to Baynor.")
  37. UpdateQuestDescription(Quest, "I took Baynor's tongs to Mender Ironmallet and he fixed them right up. I returned to Baynor and gave him the tongs back. He also gave me some coin for my trouble.")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. Step1Complete(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end