9
3

ScholarNeola.lua 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/ScholarNeola.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.19 01:10:48
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local QUEST_1 = 228
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, QUEST_1)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. if HasCompletedQuest(Spawn,QUEST_1)then
  19. SavedSapling(NPC, Spawn)
  20. else
  21. Dialog.New(NPC, Spawn)
  22. Dialog.AddDialog("Why do you tread upon the fertile ground? Doing so taints the lustrous blades that our young sapling needs to grow.")
  23. Dialog.AddVoiceover("voiceover/english/scholar_neola/qey_adv01_oakmyst/scholarneola000.mp3", 684527020, 3141115058)
  24. if not HasCompletedQuest(Spawn, QUEST_1) and not HasQuest(Spawn, QUEST_1) then
  25. Dialog.AddOption("What is wrong with the sapling? ", "Dialog3")
  26. elseif HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 3 then
  27. Dialog.AddOption("I saved the sapling.", "SavedSapling")
  28. end
  29. Dialog.AddOption("I will trod where I please. Goodbye! ")
  30. Dialog.Start()
  31. end
  32. end
  33. function Dialog3(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. Dialog.AddDialog("The young sapling is still weak. It feeds upon the mana of this thicket but needs greater nutrients to prosper in this woodland.")
  37. Dialog.AddVoiceover("voiceover/english/scholar_neola/qey_adv01_oakmyst/scholarneola001.mp3", 4101705727, 2237841081)
  38. Dialog.AddOption("Is there anything I can do to help the sapling? ", "OfferQuest1")
  39. Dialog.AddOption("Your sapling is not my problem. Farewell. ")
  40. Dialog.Start()
  41. end
  42. function OfferQuest1(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. OfferQuest(NPC, Spawn, QUEST_1)
  45. end
  46. function SavedSapling(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. Dialog.New(NPC, Spawn)
  49. Dialog.AddDialog("The sapling has a young battle ahead to become a timber lord. Your help brings it closer to this goal. Now you must seek out the Judge. She awaits those who aid this forest.")
  50. Dialog.AddVoiceover("voiceover/english/scholar_neola/qey_adv01_oakmyst/scholarneola003.mp3", 1414143988, 1696039201)
  51. Dialog.AddOption("I will speak to the judge.")
  52. Dialog.Start()
  53. if HasQuest(Spawn,QUEST_1)then
  54. SetStepComplete(Spawn, QUEST_1, 3)
  55. end
  56. end