new_fishing_spot_for_ubani.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : new_fishing_spot_for_ubani.lua
  3. Script Purpose : Handles the quest, "New Fishing Spot for Ubani"
  4. Script Author : Dorbin
  5. Script Date : 3/11/2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Graystone Yard
  8. Quest Giver : Ubani
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepLocation(Quest, 1, "I need to check Qeynos' harbor for fish.", 8, "I need to go to the pier in Qeynos' harbor and see if the fishing will be good.", 11,981.28, -25.56, 83.62, 221)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest, "Qeynos Harbor")
  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. UpdateQuestStepDescription (Quest, 1, "I've checked the harbor for fish.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I've checked the harbor for Ubani, and there are a great number of fish.")
  29. UpdateQuestZone(Quest, "Graystone Yard")
  30. AddQuestStepChat(Quest, 2, "I need to return to Ubani in Graystone.", 1, "I need let Ubani know there are several fishing spots along the Qeynos Harbor pier.", 11, 2350028)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I've returned to Ubani.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I've informed Ubani about Qeynos Harbor's many fishing spots.")
  36. UpdateQuestDescription(Quest, "I brought Ubani some great news, the harbor waters around the pier are loaded with fish! Schools and schools of them flourish in the waters there. I'm sure Ubani will have better luck if he doesn't get escorted from the city before he catches some.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Complete(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end