9
3

CorporalPeckett.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. if GetQuestStep(Spawn, PeckettsPatrol) == 1 then
  21. Dialog.AddOption("I hear you are in need of a militia. ", "Option1")
  22. elseif GetQuestStep(Spawn, PeckettsPatrol) == 14 then
  23. Dialog.AddOption("I have returned from patrol.", "Option3")
  24. end
  25. Dialog.AddOption("I shall be fine. Thank you for the warning.")
  26. Dialog.Start()
  27. end
  28. function Option1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. Dialog.New(NPC, Spawn)
  31. 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.")
  32. Dialog.AddVoiceover("voiceover/english/corporal_peckett/antonica/corporalpeckett001.mp3", 225815902, 3640648949)
  33. Dialog.AddOption("I am ready to march under your banner. ", "Option2")
  34. Dialog.AddOption("I will not join your militia. Farewell.")
  35. Dialog.Start()
  36. end
  37. function Option2(NPC, Spawn)
  38. SetStepComplete(Spawn, PeckettsPatrol, 1)
  39. FaceTarget(NPC, Spawn)
  40. Dialog.New(NPC, Spawn)
  41. 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. ")
  42. Dialog.AddVoiceover("voiceover/english/corporal_peckett/antonica/corporalpeckett002.mp3", 1614024059, 542530014)
  43. Dialog.AddOption("For Qeynos!")
  44. Dialog.Start()
  45. end
  46. function Option3(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. Dialog.New(NPC, Spawn)
  49. Dialog.AddDialog("What have you to report? ")
  50. Dialog.AddVoiceover("voiceover/english/corporal_peckett/antonica/corporalpeckett003.mp3", 3875778649, 2743709608)
  51. Dialog.AddOption("Captain Antillin has discovered the gnoll den. He will return soon. ", "Option4")
  52. Dialog.Start()
  53. end
  54. function Option4(NPC, Spawn)
  55. SetStepComplete(Spawn, PeckettsPatrol, 14)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. 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. ")
  59. Dialog.AddVoiceover("voiceover/english/corporal_peckett/antonica/corporalpeckett004.mp3", 258241656, 1066283442)
  60. Dialog.AddOption("Is there nothing else I can do? ", "Option5")
  61. Dialog.Start()
  62. end
  63. function Option5(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. Dialog.New(NPC, Spawn)
  66. 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.")
  67. Dialog.AddVoiceover("voiceover/english/corporal_peckett/antonica/corporalpeckett005.mp3", 2069330521, 2333324116)
  68. Dialog.AddOption("I will search for this cave.")
  69. Dialog.Start()
  70. end