9
3

SquireKivan.lua 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. --[[
  2. Script Name : SpawnScripts/antonica/SquireKivan.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.08 07:08:53
  5. Script Purpose :
  6. :
  7. --]]
  8. local GettingTheAxe = 5334 -- Getting the Axe quest
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, GettingTheAxe)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. local conversation = CreateConversation()
  15. if not HasQuest(Spawn, GettingTheAxe) and not HasCompletedQuest(Spawn, GettingTheAxe) then
  16. PlayFlavor(NPC, "voiceover/english/squire_kivan/antonica/squirekivan000.mp3", "", "", 2734271826, 247332290, Spawn)
  17. AddConversationOption(conversation, "Who are you?", "Option1")
  18. AddConversationOption(conversation, "No thank you. I need to be going now.")
  19. AddConversationOption(conversation, "I need to leave, the smell of that soup is making me sick.")
  20. StartConversation(conversation, NPC, Spawn, "Are you hungry? I'm making soup.")
  21. elseif HasQuest(Spawn, GettingTheAxe) then
  22. if GetQuestStep(Spawn, GettingTheAxe) == 2 then
  23. PlayFlavor(NPC, "voiceover/english/squire_kivan/antonica/squirekivan006.mp3", "", "", 3390324714, 548456268, Spawn)
  24. AddConversationOption(conversation, "Yes, here are the ten mining picks you asked for.", "Option5")
  25. end
  26. AddConversationOption(conversation, "No, not yet.")
  27. StartConversation(conversation, NPC, Spawn, "Did you find the Sabertooth's mine?")
  28. elseif HasCompletedQuest(Spawn, GettingTheAxe) then
  29. PlayFlavor(NPC, "voiceover/english/squire_kivan/antonica/squirekivan008.mp3", "", "", 2477620923, 2758696689, Spawn)
  30. AddConversationOption(conversation, "Ok, I will speak to him soon.")
  31. StartConversation(conversation, NPC, Spawn, "You should speak to Sir Jeager now. I've chores to do.")
  32. end
  33. end
  34. function Option1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. local conversation = CreateConversation()
  37. PlayFlavor(NPC, "voiceover/english/squire_kivan/antonica/squirekivan001.mp3", "", "", 4248655017, 1242656095, Spawn)
  38. AddConversationOption(conversation, "What is the Sabertooth clan?", "Option3")
  39. AddConversationOption(conversation, "Who is Sir Jeager?", "Option2")
  40. AddConversationOption(conversation, "Ok, I need to be on my way now.")
  41. StartConversation(conversation, NPC, Spawn, "I'm Kivan, Sir Jeager's squire and faithful servant. We're here to fight the insidious Sabertooth clan.")
  42. end
  43. function Option2(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. local conversation = CreateConversation()
  46. PlayFlavor(NPC, "voiceover/english/squire_kivan/antonica/squirekivan002.mp3", "", "", 3336136995, 3800742023, Spawn)
  47. AddConversationOption(conversation, "If he's such a great leader, why was he assigned to do this alone?", "Option4")
  48. AddConversationOption(conversation, "What is the Sabertooth clan?", "Option3")
  49. AddConversationOption(conversation, "Ok, I need to be going now.")
  50. StartConversation(conversation, NPC, Spawn, "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.")
  51. end
  52. function Option3(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. local conversation = CreateConversation()
  55. PlayFlavor(NPC, "voiceover/english/squire_kivan/antonica/squirekivan004.mp3", "", "", 235168551, 73943333, Spawn)
  56. AddConversationOption(conversation, "Why was Sir Jeager assigned the task of fighting these gnolls?", "Option4")
  57. AddConversationOption(conversation, "I must leave now.")
  58. StartConversation(conversation, NPC, Spawn, "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!")
  59. end
  60. function Option4(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. local conversation = CreateConversation()
  63. PlayFlavor(NPC, "voiceover/english/squire_kivan/antonica/squirekivan003.mp3", "", "", 3360347325, 2913141517, Spawn)
  64. AddConversationOption(conversation, "Is there anything I can do to help?", "offer")
  65. AddConversationOption(conversation, "That's too bad.")
  66. StartConversation(conversation, NPC, Spawn, "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.")
  67. end
  68. function Option5(NPC, Spawn)
  69. SetStepComplete(Spawn, GettingTheAxe, 2)
  70. FaceTarget(NPC, Spawn)
  71. local conversation = CreateConversation()
  72. PlayFlavor(NPC, "voiceover/english/squire_kivan/antonica/squirekivan007.mp3", "", "", 1357752664, 1145030889, Spawn)
  73. AddConversationOption(conversation, "Ok, I will speak to him soon.", "Option11")
  74. StartConversation(conversation, NPC, Spawn, "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.")
  75. end
  76. function offer(NPC, Spawn)
  77. OfferQuest(NPC, Spawn, GettingTheAxe)
  78. end
  79. function respawn(NPC)
  80. spawn(NPC)
  81. end