brysons_bow.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/TheElddarGrove/brysons_bow.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.09 05:05:49
  5. Script Purpose :
  6. Zone : TheElddarGrove
  7. Quest Giver: Bryson
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to pick up Bryson's bow.", 1, "I need to go down to the harbor to pick up Bryson's bow from Carpenter Paddock.", 630, 2210153)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Compelte")
  14. UpdateQuestZone(Quest,"Qeynos Harbor")
  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 Step1Compelte(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I've got Bryson's bow.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've picked up the bow Bryson had on ordered.")
  28. UpdateQuestZone(Quest,"The Elddar Grove")
  29. AddQuestStepChat(Quest, 2, "I need to deliver Bryson's bow.", 1, "I need to return to In-Range and deliver Bryson the bow from Carpenter Paddock.", 630, 2070013)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 2, "I've delivered Bryson's bow.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I've delivered the bow Bryson had on ordered.")
  36. UpdateQuestDescription(Quest, "Bryson was pleased to have his new bow and was kind enough to pay me for my time and effort.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Compelte(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end