new_fishing_pole_for_brice.lua 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : new_fishing_pole_for_brice.lua
  3. Script Purpose : Handles the quest, "New Fishing Pole for Brice"
  4. Script Author : Dorbin
  5. Script Date : 3/9/2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Graystone Yard
  8. Quest Giver : Brice Strongmend
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I must speak with Tacklemaster Moyna.", 1, "I need to speak with Tacklemaster Moyna about buying a new fishing pole for Brice Strongmend. She's the first merchant before the docks.", 169, 2350020)
  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 bought a new fishing pole from Tacklemaster Moyna.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I spoke with Tacklemaster Moyna and bought a new fishing pole for Brice Strongmend.")
  28. AddQuestStepChat(Quest, 2, "I must bring this new pole to Brice Strongmend.", 1, "Brice Strongmend is expecting this new fishing pole in Graystone Yard.", 169, 2350005)
  29. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  33. UpdateQuestStepDescription(Quest, 2, "I delievered Brice Strongmend's new fishing pole.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I spoke with Tacklemaster Moyna and bought a new fishing pole for Brice Strongmend.")
  35. UpdateQuestDescription(Quest, "I purchased a new fishing pole for Brice Strongmend with the money he gave me. He was so impressed with it that he let me keep what money was left over.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. Step1Complete(Quest, QuestGiver, Player)
  41. elseif Step == 2 then
  42. QuestComplete(Quest, QuestGiver, Player)
  43. end
  44. end