SirJeager.lua 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : SpawnScripts/Antonica/SirJeager.lua
  3. Script Author : Premierio015,Dorbin
  4. Script Date : 2021.08.10 09:08:50
  5. Script Purpose :
  6. : Updated using Dialog Module - Dorbin 05/12/2023
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local GettingTheAxe = 5334 -- Getting the Axe Quest
  10. local SabertoothBattlePlans = 5335 -- Sabertooth Battle Plans Quest
  11. function spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. if not HasQuest(Spawn, SabertoothBattlePlans) then
  15. FaceTarget(NPC, Spawn)
  16. Dialog.New(NPC, Spawn)
  17. Dialog.AddDialog("Greetings! Can I help you with something?")
  18. Dialog.AddVoiceover("voiceover/english/sir_jeager/antonica/sirjeager000.mp3", 3221404151, 3230765792)
  19. if HasCompletedQuest(Spawn, GettingTheAxe) and not HasCompletedQuest(Spawn, SabertoothBattlePlans) then
  20. Dialog.AddOption("I would like to help with the campaign against the Sabertooth.", "Option1")
  21. end
  22. if HasCompletedQuest(Spawn, GettingTheAxe) then
  23. Dialog.AddOption("I'm just looking around.", "Option0")
  24. end
  25. Dialog.AddOption("No thank you.")
  26. Dialog.Start()
  27. elseif HasQuest(Spawn, SabertoothBattlePlans) then
  28. FaceTarget(NPC, Spawn)
  29. Dialog.New(NPC, Spawn)
  30. Dialog.AddDialog("You have the battle plans?")
  31. Dialog.AddVoiceover("voiceover/english/sir_jeager/antonica/sirjeager005.mp3", 1410263883, 2325716326)
  32. if GetQuestStep(Spawn, SabertoothBattlePlans) == 2 then
  33. Dialog.AddOption("Yes, here they are.", "Option2")
  34. end
  35. Dialog.AddOption("Not yet, but soon.")
  36. Dialog.Start()
  37. end
  38. end
  39. function Option0(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. Dialog.New(NPC, Spawn)
  42. Dialog.AddDialog("Well, be careful, or the Sabertooth clan will have you for dinner.")
  43. Dialog.AddVoiceover("voiceover/english/sir_jeager/antonica/sirjeager004.mp3", 3285899250, 1646181505)
  44. Dialog.AddOption("I will watch my back.")
  45. Dialog.Start()
  46. end
  47. function Option1(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. Dialog.AddDialog("Really? Ahh, yes... You are the one that Squire Kivan was talking about. I do have something for you to do -- that is, if you are interested.")
  51. Dialog.AddVoiceover("voiceover/english/sir_jeager/antonica/sirjeager001.mp3", 1175262455, 1051406685)
  52. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  53. Dialog.AddOption("I am interested.", "offer")
  54. Dialog.AddOption("I am not interested right now.")
  55. Dialog.Start()
  56. end
  57. function Option2(NPC, Spawn)
  58. SetStepComplete(Spawn, SabertoothBattlePlans, 2)
  59. FaceTarget(NPC, Spawn)
  60. Dialog.New(NPC, Spawn)
  61. Dialog.AddDialog("Hrmm...This is terrible news. Tomorrow I will write a report and send it to town with Squire Kivan. I am sure that the Royal Antonican Guard will know what to do. Reporting the Sabertooth's plans may save hundreds of lives. Antonica is indebted to you for your service, adventurer. Thank you.")
  62. Dialog.AddVoiceover("voiceover/english/sir_jeager/antonica/sirjeager006.mp3", 923179982, 4001844374)
  63. PlayFlavor(NPC, "", "", "ponder", 0, 0, Spawn)
  64. Dialog.AddOption("Anything to help.")
  65. Dialog.Start()
  66. end
  67. function offer(NPC, Spawn)
  68. OfferQuest(NPC, Spawn, SabertoothBattlePlans)
  69. end
  70. function respawn(NPC)
  71. spawn(NPC)
  72. end