a_jug_of_water_for_the_hole_in_the_wall_.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/CastleviewHamlet/a_jug_of_water_for_the_hole_in_the_wall_.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.26 04:01:57
  5. Script Purpose :
  6. Zone : CastleviewHamlet
  7. Quest Giver: Bulurg
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepLocation(Quest, 1, "I need to get near the Oakmyst falls.", 3, "I must go into Oakmyst Forest and find the waterfall. There I will fill the jug.", 310, 993.6, 0.9, -203.21)
  13. AddQuestStepCompleteAction(Quest, 1, "FoundWater")
  14. UpdateQuestZone(Quest, "Oakmyst Forest")
  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 FoundWater(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I got near the Oakmyst falls.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I discovered the Oakmyst waterfall and filled the jug with its pure water.")
  28. UpdateQuestZone(Quest, "Castleview Hamlet")
  29. AddQuestStepChat(Quest, 2, "I need return to Bulurg.", 3, "I need to bring this full jug back to Bulurg.", 310, 2360021)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I returned to Bulurg.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I gave Bulurg the pure water he requested.")
  35. UpdateQuestDescription(Quest, "I filled the jug with fall water from the Oakmyst waterfall. I then gave the filled jug to Bartender Bulurg for the creation of a new high elf drink called 'Tunare's Finest.' In return I received a small reward.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. FoundWater(Quest, QuestGiver, Player)
  41. if Step == 2 then
  42. QuestComplete(Quest, QuestGiver, Player)
  43. end
  44. end
  45. end