KaseoVolcatius.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/KaseoVolcatius.lua
  3. Script Purpose : Kaseo Volcatius
  4. Script Author : torsten
  5. Script Date : 2022.07.18
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local BigTroubleBeggarsCourt = 5669
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if GetQuestStep(Spawn, BigTroubleBeggarsCourt) == 2 then
  17. SetStepComplete(Spawn, BigTroubleBeggarsCourt, 2)
  18. Dialog1(NPC, Spawn)
  19. end
  20. RandomGreeting(NPC, Spawn)
  21. end
  22. function RandomGreeting(NPC, Spawn)
  23. local choice = MakeRandomInt(1,3)
  24. if choice == 1 then
  25. PlayFlavor(NPC, "", "You lack the importance to address me. Away with you.", "no", 0, 0, Spawn, 0)
  26. elseif choice == 2 then
  27. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", 0, 0, Spawn)
  28. elseif choice == 3 then
  29. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", 0, 0, Spawn)
  30. end
  31. end
  32. function Dialog1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. Dialog.New(NPC, Spawn)
  35. Dialog.AddDialog("Greetings, citizen. You are either very brave or very foolish to approach a captain of the Freeport Militia without being ordered to do so. Still, I can see determination in your eyes. What is it you want?")
  36. Dialog.AddOption("Greetings, sir. I stumbled upon a note that may be of interest to you.", "Dialog3")
  37. Dialog.AddOption("My apologies. I must be leaving.")
  38. Dialog.Start()
  39. end
  40. function Dialog3(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. Dialog.New(NPC, Spawn)
  43. Dialog.AddDialog("Why do you waste my time on such trivial matters? What did this note say? Be quick about it!")
  44. Dialog.AddOption("It contains false information about the Overlord that attempts to discredit his great name.", "Dialog2")
  45. Dialog.Start()
  46. end
  47. function Dialog2(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. Dialog.AddDialog("What? Give me those documents right away! Tell me right now how you obtained them!")
  51. Dialog.AddOption("A dishonorable man tried to sell them to me. I slew him for his crimes, sir.", "Dialog5")
  52. Dialog.Start()
  53. end
  54. function Dialog5(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. Dialog.New(NPC, Spawn)
  57. Dialog.AddDialog("Well done, citizen. It is good to meet a brave individual who takes pride in our city. I wish more of our citizens had your traits. I will be sure to use your story as an example to inspire the rabble that live in the other districts.")
  58. Dialog.AddOption("Thank you sir, but that's really not necessary.", "Dialog4")
  59. Dialog.Start()
  60. end
  61. function Dialog4(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. Dialog.New(NPC, Spawn)
  64. Dialog.AddDialog("Do not be so modest. This entire district shall hear of your bravery. Be well, citizen.")
  65. Dialog.AddOption("Great...")
  66. Dialog.Start()
  67. end