CorporalPeckett.lua 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. --[[
  2. Script Name : CorporalPeckett.lua
  3. Script Purpose : Corporal Peckett
  4. Script Author : Jabantiz
  5. Script Date : 08/27/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("Hail, adventurer. I must warn you that Coldwind Point is not the safest place. Most of the garrison is on the march and the gnolls have been sighted nearby. I cannot guarantee your safety.")
  19. Dialog.AddVoiceover("voiceover/english/corporal_peckett/antonica/corporalpeckett000.mp3", 1322495237, 1823181494)
  20. PlayFlavor(NPC,"","","attention",0,0,Spawn)
  21. if GetQuestStep(Spawn, PeckettsPatrol) == 1 then
  22. Dialog.AddOption("I hear you are in need of a militia. ", "Option1")
  23. elseif GetQuestStep(Spawn, PeckettsPatrol) == 14 then
  24. Dialog.AddOption("I have returned from patrol.", "Option3")
  25. end
  26. Dialog.AddOption("I shall be fine. Thank you for the warning.")
  27. Dialog.Start()
  28. end
  29. function Option1(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. Dialog.New(NPC, Spawn)
  32. Dialog.AddDialog("With the bulk of the garrison marching after a gnoll raiding party, I am left in charge to defend this isle. Only a hired militia squad can provide us with the aid we seek.")
  33. Dialog.AddVoiceover("voiceover/english/corporal_peckett/antonica/corporalpeckett001.mp3", 225815902, 3640648949)
  34. Dialog.AddOption("I am ready to march under your banner. ", "Option2")
  35. Dialog.AddOption("I will not join your militia. Farewell.")
  36. Dialog.Start()
  37. end
  38. function Option2(NPC, Spawn)
  39. SetStepComplete(Spawn, PeckettsPatrol, 1)
  40. FaceTarget(NPC, Spawn)
  41. Dialog.New(NPC, Spawn)
  42. Dialog.AddDialog("Then you must patrol this sector. Follow my notes to reach each patrol point. Once you have completed your rounds you may return to me for your pay. ")
  43. Dialog.AddVoiceover("voiceover/english/corporal_peckett/antonica/corporalpeckett002.mp3", 1614024059, 542530014)
  44. Dialog.AddOption("For Qeynos!","Salute")
  45. Dialog.Start()
  46. end
  47. function Salute(NPC,Spawn)
  48. FaceTarget(Spawn, NPC)
  49. PlayFlavor(Spawn,"","","attention",0,0,NPC)
  50. AddTimer(NPC,1500,"Salute2",1,Spawn)
  51. end
  52. function Salute(NPC,Spawn)
  53. FaceTarget(NPC, Spawn)
  54. PlayFlavor(NPC,"","","attention",0,0,Spawn)
  55. end
  56. function Option3(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. Dialog.New(NPC, Spawn)
  59. Dialog.AddDialog("What have you to report? ")
  60. Dialog.AddVoiceover("voiceover/english/corporal_peckett/antonica/corporalpeckett003.mp3", 3875778649, 2743709608)
  61. Dialog.AddOption("Captain Antillin has discovered the gnoll den. He will return soon. ", "Option4")
  62. Dialog.Start()
  63. end
  64. function Option4(NPC, Spawn)
  65. SetStepComplete(Spawn, PeckettsPatrol, 14)
  66. FaceTarget(NPC, Spawn)
  67. Dialog.New(NPC, Spawn)
  68. Dialog.AddDialog("Good work, militia. Their numbers increase and they venture closer and closer to dear Qeynos. This den must be where their army is being raised. May Bayle watch over Captain Antillin. ")
  69. Dialog.AddVoiceover("voiceover/english/corporal_peckett/antonica/corporalpeckett004.mp3", 258241656, 1066283442)
  70. Dialog.AddOption("Is there nothing else I can do? ", "Option5")
  71. Dialog.Start()
  72. end
  73. function Option5(NPC, Spawn)
  74. FaceTarget(NPC, Spawn)
  75. Dialog.New(NPC, Spawn)
  76. Dialog.AddDialog("Search the area where you met up with Captain Antillin. There must be some cave close by and it must have answers to what the gnolls are up to.")
  77. Dialog.AddVoiceover("voiceover/english/corporal_peckett/antonica/corporalpeckett005.mp3", 2069330521, 2333324116)
  78. Dialog.AddOption("I will search for this cave.")
  79. Dialog.Start()
  80. end