9
3

Somdoq.lua 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. --[[
  2. Script Name : SpawnScripts/BigBend/Somdoq.lua
  3. Script Purpose : Somdoq
  4. Script Author : torsten
  5. Script Date : 2022.07.12
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local TheFumeFireCeremony = 5635
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if GetQuestStep(Spawn, TheFumeFireCeremony) == 2 then
  17. Dialog3(NPC, Spawn)
  18. elseif GetQuestStep(Spawn, TheFumeFireCeremony) == 6 then
  19. Dialog2(NPC, Spawn)
  20. else
  21. Dialog1(NPC, Spawn)
  22. end
  23. RandomGreeting(NPC, Spawn)
  24. end
  25. function RandomGreeting(NPC, Spawn)
  26. local choice = MakeRandomInt(1,3)
  27. if choice == 1 then
  28. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1001.mp3", 0, 0, Spawn)
  29. elseif choice == 2 then
  30. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1001.mp3", 0, 0, Spawn)
  31. elseif choice == 3 then
  32. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1001.mp3", 0, 0, Spawn)
  33. end
  34. end
  35. function Dialog3(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. Dialog.New(NPC, Spawn)
  38. Dialog.AddDialog("Why have you disturbed us?")
  39. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/somdoq/fprt_hood01/newbie_path_ogre/somdoq001.mp3", 4145837033, 3275868519)
  40. Dialog.AddOption("Kroota sent me.", "Dialog4")
  41. Dialog.Start()
  42. end
  43. function Dialog4(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. Dialog.New(NPC, Spawn)
  46. Dialog.AddDialog("Then you have the fume and fire ceremonial items?")
  47. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/somdoq/fprt_hood01/newbie_path_ogre/somdoq002.mp3", 4085903245, 1876466417)
  48. Dialog.AddOption("Yes.", "Dialog7")
  49. Dialog.Start()
  50. end
  51. function Dialog7(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. Dialog.New(NPC, Spawn)
  54. Dialog.AddDialog("Good. Then we will get the tribute underway. Burn the incense. Rip the flesh, and add it to the bones on the ground. Smear the blood on your face, and smash the vase on the ground. Tell me when you have done that.")
  55. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/somdoq/fprt_hood01/newbie_path_ogre/somdoq003.mp3", 2087963690, 2077453026)
  56. Dialog.AddOption("I understand.")
  57. Dialog.Start()
  58. SetStepComplete(Spawn, TheFumeFireCeremony, 2)
  59. end
  60. ---------
  61. function Dialog2(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. Dialog.New(NPC, Spawn)
  64. Dialog.AddDialog("May this land reflect the mighty throne that is your plane. Hear the glorious tumult that is the heat of battle, where 'nlightenment is gained through victorious combat.")
  65. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/somdoq/fprt_hood01/newbie_path_ogre/somdoq005.mp3", 1278166954, 2389281517)
  66. Dialog.AddOption("[listen to ceremony]", "Dialog5")
  67. Dialog.Start()
  68. end
  69. function Dialog5(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. Dialog.New(NPC, Spawn)
  72. Dialog.AddDialog("Born of conflict we have come, and thrive in conflict we continue. Mighty Rallos Zek, the victor of all wars, we survive to honor you with the defeat of the weak and inferior. Wars in your name shake the very plane of this existence.")
  73. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/somdoq/fprt_hood01/newbie_path_ogre/somdoq004.mp3", 2873790137, 2496264354)
  74. Dialog.AddOption("[listen to ceremony]", "Dialog8")
  75. Dialog.Start()
  76. end
  77. function Dialog6(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. Dialog.New(NPC, Spawn)
  80. Dialog.AddDialog("May your feast of the fallen continue until the great conflict at the end of time. Warlord, and father, these gifts we have presented to you.")
  81. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/somdoq/fprt_hood01/newbie_path_ogre/somdoq007.mp3", 1249619017, 559988378)
  82. Dialog.AddOption("Glory to Rallos!", "Dialog9")
  83. Dialog.Start()
  84. end
  85. function Dialog8(NPC, Spawn)
  86. FaceTarget(NPC, Spawn)
  87. Dialog.New(NPC, Spawn)
  88. Dialog.AddDialog("May joyous battle, and constant strife litter the ground with corpses of the fallen, and the bones of the weak.")
  89. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/somdoq/fprt_hood01/newbie_path_ogre/somdoq006.mp3", 487037760, 2070479487)
  90. Dialog.AddOption("[listen to ceremony]", "Dialog6")
  91. Dialog.Start()
  92. end
  93. function Dialog9(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. Dialog.New(NPC, Spawn)
  96. Dialog.AddDialog("You provided much for this ceremony. Return to Kroota, and tell him that all went well.")
  97. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/somdoq/fprt_hood01/newbie_path_ogre/somdoq008.mp3", 2581222973, 154740872)
  98. Dialog.AddOption("I will.")
  99. Dialog.Start()
  100. SetStepComplete(Spawn, TheFumeFireCeremony, 6)
  101. end
  102. function Dialog1(NPC, Spawn)
  103. FaceTarget(NPC, Spawn)
  104. Dialog.New(NPC, Spawn)
  105. Dialog.AddDialog("This does not interest you! Begone.")
  106. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/somdoq/fprt_hood01/newbie_path_ogre/somdoq009.mp3", 1003816206, 3011545312)
  107. Dialog.AddOption("I was just leaving.")
  108. Dialog.Start()
  109. end