9
3

SquireKivan.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. end
  29. end
  30. function Option1(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. local conversation = CreateConversation()
  33. PlayFlavor(NPC, "voiceover/english/squire_kivan/antonica/squirekivan001.mp3", "", "", 4248655017, 1242656095, Spawn)
  34. AddConversationOption(conversation, "What is the Sabertooth clan?", "Option3")
  35. AddConversationOption(conversation, "Who is Sir Jeager?", "Option2")
  36. AddConversationOption(conversation, "Ok, I need to be on my way now.")
  37. StartConversation(conversation, NPC, Spawn, "I'm Kivan, Sir Jeager's squire and faithful servant. We're here to fight the insidious Sabertooth clan.")
  38. end
  39. function Option2(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. local conversation = CreateConversation()
  42. PlayFlavor(NPC, "voiceover/english/squire_kivan/antonica/squirekivan002.mp3", "", "", 3336136995, 3800742023, Spawn)
  43. AddConversationOption(conversation, "If he's such a great leader, why was he assigned to do this alone?", "Option4")
  44. AddConversationOption(conversation, "What is the Sabertooth clan?", "Option3")
  45. AddConversationOption(conversation, "Ok, I need to be going now.")
  46. 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.")
  47. end
  48. function Option3(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. local conversation = CreateConversation()
  51. PlayFlavor(NPC, "voiceover/english/squire_kivan/antonica/squirekivan004.mp3", "", "", 235168551, 73943333, Spawn)
  52. AddConversationOption(conversation, "Why was Sir Jeager assigned the task of fighting these gnolls?", "Option4")
  53. AddConversationOption(conversation, "I must leave now.")
  54. 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!")
  55. end
  56. function Option4(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. local conversation = CreateConversation()
  59. PlayFlavor(NPC, "voiceover/english/squire_kivan/antonica/squirekivan003.mp3", "", "", 3360347325, 2913141517, Spawn)
  60. AddConversationOption(conversation, "Is there anything I can do to help?", "offer")
  61. AddConversationOption(conversation, "That's too bad.")
  62. 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.")
  63. end
  64. function Option5(NPC, Spawn)
  65. SetStepComplete(Spawn, GettingTheAxe, 2)
  66. FaceTarget(NPC, Spawn)
  67. local conversation = CreateConversation()
  68. PlayFlavor(NPC, "voiceover/english/squire_kivan/antonica/squirekivan007.mp3", "", "", 1357752664, 1145030889, Spawn)
  69. AddConversationOption(conversation, "Ok, I will speak to him soon.", "Option11")
  70. 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.")
  71. end
  72. function offer(NPC, Spawn)
  73. OfferQuest(NPC, Spawn, GettingTheAxe)
  74. end
  75. function respawn(NPC)
  76. spawn(NPC)
  77. end