a_jug_of_water_for_the_hole_in_the_wall_.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepZoneLoc(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,830)
  14. AddQuestStepCompleteAction(Quest, 1, "FoundWater")
  15. UpdateQuestZone(Quest, "Oakmyst Forest")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("That wouldst be most kind. Take this jug and then venture into Oakmyst Forest. This is where thou willst find a waterfall. Enter the waterfall and fill thine jug with this fall water before it toucheth the pond water.")
  21. Dialog.AddVoiceover("voiceover/english/bartender_bulurg/qey_village04/bartenderbulurg002.mp3",2371403827,3750341640)
  22. PlayFlavor(QuestGiver, "", "", "thanks", 0,0 , Player)
  23. Dialog.AddOption("I shall return with your jug of fall water.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is declined
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. -- Remove any quest specific items here when the quest is deleted
  31. end
  32. function FoundWater(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 1, "I got near the Oakmyst falls.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I discovered the Oakmyst waterfall and filled the jug with its pure water.")
  35. UpdateQuestZone(Quest, "Castleview Hamlet")
  36. AddQuestStepChat(Quest, 2, "I need return to Bulurg.", 1, "I need to bring this full jug back to Bulurg.", 310, 2360021)
  37. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  38. end
  39. function QuestComplete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 2, "I returned to Bulurg.")
  41. UpdateQuestTaskGroupDescription(Quest, 2, "I gave Bulurg the pure water he requested.")
  42. 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.")
  43. GiveQuestReward(Quest, Player)
  44. end
  45. function Reload(Quest, QuestGiver, Player, Step)
  46. if Step == 1 then
  47. FoundWater(Quest, QuestGiver, Player)
  48. if Step == 2 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end
  52. end