SquireKivan.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. --[[
  2. Script Name : SpawnScripts/antonica/SquireKivan.lua
  3. Script Author : Premierio015, Dorbin
  4. Script Date : 2021.08.08 07:08:53
  5. Script Purpose : Restructured using dialog module. - Dorbin 05/12/2023
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local GettingTheAxe = 5334 -- Getting the Axe quest
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, GettingTheAxe)
  12. end
  13. function hailed(NPC, Spawn)
  14. if not HasQuest(Spawn,GettingTheAxe) then
  15. FaceTarget(NPC, Spawn)
  16. Dialog.New(NPC, Spawn)
  17. Dialog.AddDialog("Are you hungry? I'm making soup.")
  18. Dialog.AddVoiceover("voiceover/english/squire_kivan/antonica/squirekivan000.mp3", 2734271826, 247332290)
  19. Dialog.AddOption("Who are you?", "Option1")
  20. Dialog.AddOption("No thank you. I need to be going now.")
  21. Dialog.AddOption("I need to leave, the smell of that soup is making me sick.","Sulk")
  22. Dialog.Start()
  23. elseif HasQuest(Spawn,GettingTheAxe) then
  24. FaceTarget(NPC, Spawn)
  25. Dialog.New(NPC, Spawn)
  26. Dialog.AddDialog("Did you find the Sabertooth's mine?")
  27. Dialog.AddVoiceover("voiceover/english/squire_kivan/antonica/squirekivan006.mp3", 3390324714, 548456268)
  28. if GetQuestStep(Spawn, GettingTheAxe) == 2 then
  29. Dialog.AddOption("Yes, here are the ten mining picks you asked for.", "Option5")
  30. end
  31. Dialog.AddOption("No, not yet.")
  32. Dialog.Start()
  33. elseif HasCompletedQuest(Spawn, GettingTheAxe) then
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. Dialog.AddDialog("You should speak to Sir Jeager now. I've chores to do.")
  37. Dialog.AddVoiceover("voiceover/english/squire_kivan/antonica/squirekivan008.mp3", 2477620923, 2758696689)
  38. Dialog.AddOption("Ok, I will speak to him soon.")
  39. Dialog.Start()
  40. end
  41. end
  42. function Sulk(NPC, Spawn)
  43. PlayFlavor(NPC, "", "", "sulk", 0, 0, Spawn)
  44. end
  45. function Option1(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. Dialog.New(NPC, Spawn)
  48. Dialog.AddDialog("I'm Kivan, Sir Jeager's squire and faithful servant. We're here to fight the insidious Sabertooth clan.")
  49. Dialog.AddVoiceover("voiceover/english/squire_kivan/antonica/squirekivan001.mp3", 4248655017, 1242656095)
  50. PlayFlavor(NPC, "", "", "attention", 0, 0, Spawn)
  51. Dialog.AddOption("What is the Sabertooth clan?", "Option3")
  52. Dialog.AddOption("Who is Sir Jeager?", "Option2")
  53. Dialog.AddOption("Ok, I need to be on my way now.")
  54. Dialog.Start()
  55. end
  56. function Option2(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. Dialog.New(NPC, Spawn)
  59. Dialog.AddDialog("Sir Jeager is the most honorable of all the Royal Antonican Guards. He alone was assigned to fight off the Sabertooth clan. He's a leader among leaders and a brave soldier.")
  60. Dialog.AddVoiceover("voiceover/english/squire_kivan/antonica/squirekivan002.mp3", 3336136995, 3800742023)
  61. PlayFlavor(NPC, "", "", "smile", 0, 0, Spawn)
  62. Dialog.AddOption("If he's such a great leader, why was he assigned to do this alone?", "Option4")
  63. Dialog.AddOption("What is the Sabertooth clan?", "Option3")
  64. Dialog.AddOption("Ok, I need to be going now.")
  65. Dialog.Start()
  66. end
  67. function Option3(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. Dialog.New(NPC, Spawn)
  70. Dialog.AddDialog("They're a clan of vicious gnolls. They infest the hills around here, and at night they prey on the children of Qeynos. We must stop them!")
  71. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  72. Dialog.AddVoiceover("voiceover/english/squire_kivan/antonica/squirekivan004.mp3", 235168551, 73943333)
  73. Dialog.AddOption("Why was Sir Jeager assigned the task of fighting these gnolls?", "Option4")
  74. Dialog.AddOption("I must leave now.")
  75. Dialog.Start()
  76. end
  77. function Option4(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. Dialog.New(NPC, Spawn)
  80. Dialog.AddDialog("It seems that politics and honesty do not mix. One of the Queen's advisors did not like something Sir Jeager said. So, here we are.")
  81. Dialog.AddVoiceover("voiceover/english/squire_kivan/antonica/squirekivan003.mp3", 3360347325, 2913141517)
  82. PlayFlavor(NPC, "", "", "sigh", 0, 0, Spawn)
  83. if CanReceiveQuest(Spawn,GettingTheAxe) then
  84. Dialog.AddOption("Is there anything I can do to help?", "offer")
  85. end
  86. Dialog.AddOption("That's too bad.")
  87. Dialog.Start()
  88. end
  89. function Option5(NPC, Spawn)
  90. SetStepComplete(Spawn, GettingTheAxe, 2)
  91. FaceTarget(NPC, Spawn)
  92. Dialog.New(NPC, Spawn)
  93. Dialog.AddDialog("Wonderful! I appreciate your help. I hope we can stop the gnolls before they become a greater threat to our people. I need to get back to my chores now. You must speak to Sir Jeager.")
  94. Dialog.AddVoiceover("voiceover/english/squire_kivan/antonica/squirekivan007.mp3", 1357752664, 1145030889)
  95. PlayFlavor(NPC, "", "", "heelclick", 0, 0, Spawn)
  96. Dialog.AddOption("Ok, I will speak to him soon.")
  97. Dialog.Start()
  98. end
  99. function offer(NPC, Spawn)
  100. OfferQuest(NPC, Spawn, GettingTheAxe)
  101. end
  102. function respawn(NPC)
  103. spawn(NPC)
  104. end