TrooperBonesaw.lua 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. --[[
  2. Script Name : SpawnScripts/WestFreeport/TrooperBonesaw.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.26 07:10:34
  5. Script Purpose :
  6. :
  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. RandomGreeting(NPC, Spawn)
  16. end
  17. function RandomGreeting(NPC, Spawn)
  18. local choice = MakeRandomInt(1,1)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "voiceover/english/trooper_bonesaw/fprt_west/100_soc_ogre_militia_bonesaw_goodbye_8a31f1a4.mp3", "I don't say this often, but it seems my liege was wrong about your band of cutthroats. You've been useful to the city, and have earned a measure of respect in Freeport. You need to report to Liege Helvanica immediately. She's waiting for you in the Militia House! ", "salute_freeport", 1432955551, 1695843427, Spawn, 0)
  21. end
  22. end
  23. function Dialog1(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. Dialog.New(NPC, Spawn)
  26. Dialog.AddDialog("...")
  27. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_1_1002.mp3", 0, 0)
  28. Dialog.AddOption("I would like the writ: Thinning the Herd")
  29. Dialog.AddOption("I would like the writ: Orcish Threats")
  30. Dialog.AddOption("I would like the writ: Horrors of the Past")
  31. Dialog.AddOption("I will be going.")
  32. Dialog.Start()
  33. end
  34. function Dialog2(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. Dialog.New(NPC, Spawn)
  37. Dialog.AddDialog("...")
  38. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_2_1002.mp3", 0, 0)
  39. Dialog.AddOption("I would like the writ: Thinning the Herd", "Dialog5")
  40. Dialog.AddOption("I would like the writ: Orcish Threats")
  41. Dialog.AddOption("I would like the writ: Horrors of the Past")
  42. Dialog.AddOption("I will be going.")
  43. Dialog.Start()
  44. end
  45. function Dialog3(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. Dialog.New(NPC, Spawn)
  48. Dialog.AddDialog("...")
  49. Dialog.AddOption("I would like the writ: Thinning the Herd")
  50. Dialog.AddOption("I would like the writ: Orcish Threats")
  51. Dialog.AddOption("I would like the writ: Horrors of the Past")
  52. Dialog.AddOption("I will be going.")
  53. Dialog.Start()
  54. end
  55. function Dialog4(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. Dialog.AddDialog("...")
  59. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_3_1002.mp3", 0, 0)
  60. Dialog.AddOption("I would like the writ: Thinning the Herd")
  61. Dialog.AddOption("I would like the writ: Orcish Threats")
  62. Dialog.AddOption("I would like the writ: Horrors of the Past")
  63. Dialog.AddOption("I will be going.")
  64. Dialog.Start()
  65. end
  66. function Dialog5(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. Dialog.New(NPC, Spawn)
  69. Dialog.AddDialog("Good of you to rejoin us. It appears your carcass is not feeding the buzzards after all. Here is another writ, don't forget the penalty for failure, and you'll do just fine.")
  70. Dialog.AddVoiceover("voiceover/english/trooper_bonesaw/fprt_west/100_soc_ogre_militia_bonesaw_hail_1f887477.mp3", 2188261085, 1324657018)
  71. Dialog.AddOption("Okay.")
  72. Dialog.Start()
  73. end