KnightCaptainAntillin.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Knight-CaptainAntillin.lua
  3. Script Purpose : Knight-Captain Antillin
  4. Script Author : Jabantiz
  5. Script Date : 08/29/2019
  6. Script Notes : Auto-Generated from a chat log using SpawnScriptDesigner
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local PeckettsPatrol = 5715
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. Dialog.New(NPC, Spawn)
  18. Dialog.AddDialog("I am Captain Antillin of the Coldwind Point Garrison. The roads ahead are infested with gnolls. No Antonican is safe. Turn back now.")
  19. Dialog.AddVoiceover("voiceover/english/knight-captain_antillin/antonica/captainantillin000.mp3", 135895240, 1341774897)
  20. if GetQuestStep(Spawn, PeckettsPatrol) == 13 then
  21. Dialog.AddOption("Coldwind Point militia patrol reporting.", "Option1")
  22. end
  23. Dialog.AddOption("I shall heed your warning, Captain.")
  24. Dialog.Start()
  25. end
  26. function Option1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. Dialog.New(NPC, Spawn)
  29. Dialog.AddDialog("Corporal Peckett has raised a militia patrol? Very good! You must return at once to Corporal Peckett and inform him that the entire squad has been lost within a gnoll hive.")
  30. Dialog.AddVoiceover("voiceover/english/knight-captain_antillin/antonica/captainantillin001.mp3", 841411724, 1572096111)
  31. PlayFlavor(NPC,"","","agree",0,0,Spawn)
  32. Dialog.AddOption("What will you do?", "Option2")
  33. Dialog.Start()
  34. end
  35. function Option2(NPC, Spawn)
  36. SetStepComplete(Spawn, PeckettsPatrol, 13)
  37. FaceTarget(NPC, Spawn)
  38. Dialog.New(NPC, Spawn)
  39. Dialog.AddDialog("I must return to this hive to properly plot its location and uncover some of its mysteries before I report back to the generals of the Qeynos Guard. Now go! Before the gnolls have us both!")
  40. Dialog.AddVoiceover("voiceover/english/knight-captain_antillin/antonica/captainantillin002.mp3", 4242603088, 1602660198)
  41. Dialog.AddOption("I wish you luck, Captain. For Qeynos!","Salute")
  42. Dialog.Start()
  43. end
  44. function Salute(NPC,Spawn)
  45. PlayFlavor(NPC,"","","salute",0,0,Spawn)
  46. end