9
3

ToranimSkyblade.lua 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/ToranimSkyblade.lua
  3. Script Purpose : Toranim Skyblade
  4. Script Author : Dorbin
  5. Script Date : 2022.04.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. Dialog3(NPC, Spawn)
  16. end
  17. function RandomGreeting(NPC, Spawn)
  18. local choice = MakeRandomInt(1,2)
  19. if choice == 1 then
  20. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", 0, 0, Spawn)
  21. elseif choice == 2 then
  22. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", 0, 0, Spawn)
  23. end
  24. end
  25. function Dialog1(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. Dialog.New(NPC, Spawn)
  28. Dialog.AddDialog("Good luck to you in your travels!")
  29. Dialog.AddOption("You as well.")
  30. Dialog.Start()
  31. end
  32. function Dialog2(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. Dialog.New(NPC, Spawn)
  35. Dialog.AddDialog("Yes, they placed it within the tomb of the Stormlords in remembrance of the fallen paladin. The sword should still be in the tomb. If you could gain access to it, you could retrieve the Ghoulbane. Bring me the sword, and I will perform a ritual to reseal the adornment to the sword.")
  36. Dialog.AddVoiceover("voiceover/english/toranim_skyblade/qey_north/toranimskyblade009.mp3", 2237035559, 1764211104)
  37. Dialog.AddOption("That sounds like a plan. I'll work on recovering the sword. ", "Dialog5")
  38. Dialog.AddOption("Going after old holy swords isn't my idea of fun. I don't even use a sword.")
  39. Dialog.Start()
  40. end
  41. function Dialog3(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. PlayFlavor(NPC,"","","bow",0,0,Spawn)
  44. Dialog.New(NPC, Spawn)
  45. Dialog.AddDialog("Greetings, adventurer. It's good to see citizens visiting the Temple of Life. Many great blessings can come from following the doctrines taught here.")
  46. Dialog.AddVoiceover("voiceover/english/toranim_skyblade/qey_north/toranimskyblade001.mp3", 708306417, 1317357105)
  47. Dialog.AddOption("I'll keep that in mind. ")
  48. Dialog.Start()
  49. end
  50. function Dialog4(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. Dialog.New(NPC, Spawn)
  53. Dialog.AddDialog("I knew it would be. What you hold in your hand is the blessed adornment that once rested within the holy blade Ghoulbane. It was consecrated by the priests of Life to assist paladins of good in the destruction of the undead.")
  54. Dialog.AddVoiceover("voiceover/english/toranim_skyblade/qey_north/toranimskyblade005.mp3", 1816418500, 477083357)
  55. Dialog.AddOption("If I have the adornment, where is the sword? ", "Dialog6")
  56. Dialog.Start()
  57. end
  58. function Dialog5(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. Dialog.New(NPC, Spawn)
  61. Dialog.AddDialog("Very good. Seek out the sword in the tomb of the Stormlords within Stormhold. Bring it to me and I will combine the sword with its adornment.")
  62. Dialog.AddVoiceover("voiceover/english/toranim_skyblade/qey_north/toranimskyblade012.mp3", 3490839150, 3327388073)
  63. Dialog.AddOption("I hope to be back soon. ", "Dialog1")
  64. Dialog.Start()
  65. end
  66. function Dialog6(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. Dialog.New(NPC, Spawn)
  69. Dialog.AddDialog("As the tale goes, the Ghoulbane was passed down through generations until it found its way into the hands of an honorable Knight of Thunder. This paladin was well known for seeking out and destroying the evil corruption of the undead. The legend claims the paladin carried Ghoulbane one last time on a crusade to vanquish the darkness, a crusade he never finished.")
  70. Dialog.AddVoiceover("voiceover/english/toranim_skyblade/qey_north/toranimskyblade006.mp3", 3570283397, 520407432)
  71. Dialog.AddOption("What happened to him? ", "Dialog8")
  72. Dialog.Start()
  73. end
  74. function Dialog7(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. Dialog.New(NPC, Spawn)
  77. Dialog.AddDialog("Hello again! Did you defeat the ghouls in Stormhold?")
  78. Dialog.AddVoiceover("voiceover/english/toranim_skyblade/qey_north/toranimskyblade004.mp3", 3777732585, 1379876617)
  79. Dialog.AddOption("Yes, the stone feels warmer and is faintly glowing now. ", "Dialog4")
  80. Dialog.AddOption("No, I haven't destroyed the ghouls there yet. ")
  81. Dialog.Start()
  82. end
  83. function Dialog8(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. Dialog.New(NPC, Spawn)
  86. Dialog.AddDialog("He never returned from that journey. His squire returned sometime later here in Qeynos telling of the hordes of undead that poured out of the castle as his brave lord fought valiantly to vanquish the darkness, but they were too much... Ghoulbane had failed him and the squire fled.")
  87. Dialog.AddVoiceover("voiceover/english/toranim_skyblade/qey_north/toranimskyblade007.mp3", 1283676569, 1072083998)
  88. Dialog.AddOption("So Ghoulbane still rests in that castle? ", "Dialog9")
  89. Dialog.Start()
  90. end
  91. function Dialog9(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. Dialog.New(NPC, Spawn)
  94. Dialog.AddDialog("No, the Knights of Thunder mounted an attack on the castle when word reached them that the paladin had fallen. They did not succeed in destroying the evil, but they found the spot where the paladin was slain. All that was recovered was the sword. Strangely, the adornment was missing.")
  95. Dialog.AddVoiceover("voiceover/english/toranim_skyblade/qey_north/toranimskyblade008.mp3", 314223038, 1627193800)
  96. Dialog.AddOption("So the Knights have the sword? ", "Dialog2")
  97. Dialog.Start()
  98. end