KnightGuardRellinthir.lua 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/Knight-GuardRellinthir.lua
  3. Script Purpose : Knight-Guard Rellin`thir
  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. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1012.mp3", "Hail, citizen. Welcome to the castle. Only nobility or those with court business may proceed inside.", "salute", 0, 0, Spawn, 0)
  16. end
  17. function RandomGreeting(NPC, Spawn)
  18. local choice = MakeRandomInt(1,3)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "", "Hail, citizen. Welcome to the castle. Only nobility or those with court business may proceed inside.", "", 0, 0, Spawn, 0)
  21. elseif choice == 2 then
  22. PlayFlavor(NPC, "", "Please return to me when you have completed your current task.", "", 0, 0, Spawn, 0)
  23. elseif choice == 3 then
  24. PlayFlavor(NPC, "", "Your guild is very well-disciplined. We can't thank you enough for all of the help you've given us. You need to speak to Sergeant Ironcast. He'll have all your guild's writs from now on. Congratulations on your promotion!", "", 0, 0, Spawn, 0)
  25. end
  26. end
  27. function Dialog1(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. Dialog.New(NPC, Spawn)
  30. Dialog.AddDialog("...")
  31. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_3_1012.mp3", 0, 0)
  32. Dialog.AddOption("I would like the writ: Sabertooth Skulkers", "Dialog3")
  33. Dialog.AddOption("I would like the writ: Flying Artillery")
  34. Dialog.AddOption("I would like the writ: The Wall of Thunder")
  35. Dialog.AddOption("I will be going.")
  36. Dialog.Start()
  37. end
  38. function Dialog2(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. Dialog.New(NPC, Spawn)
  41. Dialog.AddDialog("...")
  42. Dialog.AddOption("I would like the writ: Sabertooth Skulkers")
  43. Dialog.AddOption("I would like the writ: Flying Artillery")
  44. Dialog.AddOption("I would like the writ: The Wall of Thunder")
  45. Dialog.AddOption("I will be going.")
  46. Dialog.Start()
  47. end
  48. function Dialog3(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. Dialog.New(NPC, Spawn)
  51. Dialog.AddDialog("Hello! Nice to have another helping hand with these defenses. I was told that your guild was quite skilled, so I'll give you something a bit more challenging. Here's the writ, make sure you thoroughly brief your troops. The city can't afford a single casualty! The queen protects.")
  52. Dialog.AddOption("Okay.")
  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_2_1012.mp3", 0, 0)
  60. Dialog.AddOption("I would like the writ: Sabertooth Skulkers")
  61. Dialog.AddOption("I would like the writ: Flying Artillery")
  62. Dialog.AddOption("I would like the writ: The Wall of Thunder")
  63. Dialog.AddOption("I will be going.")
  64. Dialog.Start()
  65. end