SquireGuardWilliamson.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/Squire-GuardWilliamson.lua
  3. Script Purpose : Squire-Guard Williamson
  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. Dialog2(NPC, Spawn)
  16. end
  17. function RandomGreeting(NPC, Spawn)
  18. local choice = MakeRandomInt(1,3)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "voiceover/english/guard_williamson/qey_north/100_soc_human_guard_williamson_tasked_28d1905b.mp3", "Please return to me when you have completed your current task.", "", 2875243139, 3591083733, Spawn, 0)
  21. elseif choice == 2 then
  22. PlayFlavor(NPC, "voiceover/english/guard_williamson/qey_north/100_soc_human_guard_williamson_goodbye_43af86c3.mp3", "You've done an excellent job defending the city. We owe you a debt of thanks. We still have a lot of work to do. Go see Knight-Guard Rellin`thir, and he'll fill you in on the latest reports. Well done, citizen! ", "salute", 127955092, 483846497, Spawn, 0)
  23. elseif choice == 3 then
  24. PlayFlavor(NPC, "voiceover/english/guard_williamson/qey_north/100_soc_human_guard_williamson_goodbye_43af86c3.mp3", "You've done an excellent job defending the city. We owe you a debt of thanks. We still have a lot of work to do. Go see Knight-Guard Rellin'thir, and he'll fill you in on the latest reports. Well done, citizen! ", "salute", 127955092, 483846497, 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.AddOption("I would like the writ: Ripe for the Picking", "Dialog2")
  32. Dialog.AddOption("I would like the writ: The Supply Lines")
  33. Dialog.AddOption("I will be going.")
  34. Dialog.Start()
  35. end
  36. function Dialog2(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. Dialog.New(NPC, Spawn)
  39. Dialog.AddDialog("Welcome to the castle, citizen. If you wish to serve the city's defenses, you've come to the right place. Here's a writ from the sergeant about some disturbances we've encountered. Please see to them, and return to me once you complete this task. All hail Queen Antonia!")
  40. Dialog.AddVoiceover("voiceover/english/guard_williamson/qey_north/100_soc_human_guard_williamson_greeting_5e9d7426.mp3", 552561121, 2568802587)
  41. Dialog.AddOption("Okay.")
  42. Dialog.Start()
  43. end