YorutheOld.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. --[[
  2. Script Name : SpawnScripts/Antonica/YorutheOld.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.07 05:10:19
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. -- FaceTarget(NPC, Spawn)
  13. Dialog5(NPC, Spawn)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function RandomGreeting(NPC, Spawn)
  19. local choice = MakeRandomInt(1,4)
  20. if choice == 1 then
  21. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1052.mp3", 0, 0, Spawn)
  22. elseif choice == 2 then
  23. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", 0, 0, Spawn)
  24. elseif choice == 3 then
  25. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1052.mp3", 0, 0, Spawn)
  26. elseif choice == 4 then
  27. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1052.mp3", 0, 0, Spawn)
  28. end
  29. end
  30. function Dialog1(NPC, Spawn)
  31. -- FaceTarget(NPC, Spawn)
  32. Dialog.New(NPC, Spawn)
  33. Dialog.AddDialog("Return here when you have enough to last me the winter. I await your return. I have much to teach you.")
  34. Dialog.AddVoiceover("yoru_the_old/antonica/quests/yoru_the_old/yorutheold004.mp3", 629868488, 2564006750)
  35. Dialog.AddOption("I'll be back soon.")
  36. Dialog.Start()
  37. end
  38. function Dialog2(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. Dialog.New(NPC, Spawn)
  41. Dialog.AddDialog("Did you bring the firewood I asked you to gather?")
  42. Dialog.AddVoiceover("yoru_the_old/antonica/quests/yoru_the_old/yorutheold005.mp3", 3195537863, 1349887913)
  43. Dialog.AddOption("No, I'm still collecting it.")
  44. Dialog.Start()
  45. end
  46. function Dialog3(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. Dialog.New(NPC, Spawn)
  49. Dialog.AddDialog("Ah, there you are. I was beginning to wonder if you would ever come speak to me. There are great things in store for you. I have many things to teach you and my time grows short. But first, I need firewood for my hearth. Will you be so kind as to gather me some?")
  50. Dialog.AddVoiceover("yoru_the_old/antonica/quests/yoru_the_old/yorutheold002.mp3", 1009748728, 1361657719)
  51. Dialog.AddOption("I'll get the firewood for you.", "Dialog1")
  52. Dialog.AddOption("Go get your own wood!", "Dialog4")
  53. Dialog.Start()
  54. end
  55. function Dialog4(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. Dialog.AddDialog("I was wrong. You are not ready yet. ")
  59. Dialog.AddVoiceover("yoru_the_old/antonica/quests/yoru_the_old/yorutheold003.mp3", 3376218357, 2854464536)
  60. Dialog.AddOption("That's your opinion.")
  61. Dialog.Start()
  62. end
  63. function Dialog5(NPC, Spawn)
  64. -- FaceTarget(NPC, Spawn)
  65. Dialog.New(NPC, Spawn)
  66. Dialog.AddDialog("Someday you will be ready, but not now... not now. You have so much more to learn.")
  67. -- Dialog.AddVoiceover("yoru_the_old/antonica/quests/yoru_the_old/yorutheold001.mp3", 1355376285, 441669902)
  68. Dialog.AddOption("I will speak with you another time.")
  69. Dialog.Start()
  70. RandomGreeting(NPC, Spawn)
  71. end