Barch.lua 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. --[[
  2. Script Name : SpawnScripts/BigBend/Barch.lua
  3. Script Purpose : Barch
  4. Script Author : torsten
  5. Script Date : 2022.07.12
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local MuchAdoAboutRallos = 5634
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if GetQuestStep(Spawn, MuchAdoAboutRallos) == 3 then
  17. Dialog1(NPC, Spawn)
  18. elseif GetQuestStep(Spawn, MuchAdoAboutRallos) == 5 then
  19. Dialog3(NPC, Spawn)
  20. else
  21. Dialog7(NPC, Spawn)
  22. end
  23. RandomGreeting(NPC, Spawn)
  24. end
  25. function RandomGreeting(NPC, Spawn)
  26. local choice = MakeRandomInt(1,2)
  27. if choice == 1 then
  28. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1002.mp3", 0, 0, Spawn)
  29. elseif choice == 2 then
  30. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1002.mp3", 0, 0, Spawn)
  31. end
  32. end
  33. function Dialog1(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. Dialog.AddDialog("You lookin' for somethin'? ")
  37. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/barch/fprt_hood01/newbie_path_ogre/barch001.mp3", 1301534840, 788449941)
  38. Dialog.AddOption("Yes. I was sent to get blood worthy to be used in a tribute for Rallos Zek.", "Dialog2")
  39. Dialog.Start()
  40. end
  41. function Dialog2(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. Dialog.New(NPC, Spawn)
  44. Dialog.AddDialog("Any blood spilled glorifies Rallos. Bones break and creatures fall, all to the glory of our warlord! What blood do you seek?")
  45. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/barch/fprt_hood01/newbie_path_ogre/barch002.mp3", 3421238780, 2762015944)
  46. Dialog.AddOption("Kroota has sent me to get blood of the enemy.", "Dialog6")
  47. Dialog.Start()
  48. end
  49. function Dialog6(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. Dialog.New(NPC, Spawn)
  52. Dialog.AddDialog("You speak of a holy ceremony. Fume and fire. For that you need blood of an elf, in one of their own vases. I can get the blood for you, if'n you get me the vase.")
  53. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/barch/fprt_hood01/newbie_path_ogre/barch005.mp3", 2609357254, 3989114571)
  54. Dialog.AddOption("Where can I get an elven vase?", "Dialog5")
  55. Dialog.Start()
  56. end
  57. function Dialog5(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. Dialog.New(NPC, Spawn)
  60. Dialog.AddDialog("I know many items were taken from some Qeynosian prisoners. They are being held in one of the Northern most rooms in the back alley. ")
  61. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/barch/fprt_hood01/newbie_path_ogre/barch006.mp3", 1996512163, 3082047898)
  62. Dialog.AddOption("Thanks. I'll see if I can find one.")
  63. Dialog.Start()
  64. SetStepComplete(Spawn, MuchAdoAboutRallos, 3)
  65. end
  66. function Dialog3(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. Dialog.New(NPC, Spawn)
  69. Dialog.AddDialog("Is that an elvish vase?")
  70. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/barch/fprt_hood01/newbie_path_ogre/barch008.mp3", 3451969542, 3225762730)
  71. Dialog.AddOption("I think so. The writing is swirly and it has trees on it.", "Dialog8")
  72. Dialog.Start()
  73. end
  74. function Dialog8(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. Dialog.New(NPC, Spawn)
  77. Dialog.AddDialog("Heh. That sounds elvish. ")
  78. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/barch/fprt_hood01/newbie_path_ogre/barch009.mp3", 33593191, 3855299677)
  79. Dialog.AddOption("Good.", "Dialog4")
  80. Dialog.Start()
  81. end
  82. function Dialog4(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. Dialog.New(NPC, Spawn)
  85. Dialog.AddDialog("I have filled it with the blood you need for the ceremony. Glory to Rallos!")
  86. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/barch/fprt_hood01/newbie_path_ogre/barch010.mp3", 3797099812, 2066937388)
  87. Dialog.AddOption("And the victors of war!")
  88. Dialog.Start()
  89. SetStepComplete(Spawn, MuchAdoAboutRallos, 5)
  90. end
  91. function Dialog7(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. Dialog.New(NPC, Spawn)
  94. Dialog.AddDialog("Barch strong and mighty hunter! What about you?")
  95. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/barch/fprt_hood01/newbie_path_ogre/barch004.mp3", 3256863943, 3547658719)
  96. Dialog.AddOption("I love to barsh!")
  97. Dialog.Start()
  98. end