LozoriaShinkicker.lua 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. --[[
  2. Script Name : SpawnScripts/TheBaubbleshire/LozoriaShinkicker.lua
  3. Script Purpose : Lozoria Shinkicker
  4. Script Author : Dorbin
  5. Script Date : 2022.01.08
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local PieThief = 5437
  9. local OroRoots = 5438
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  12. ProvidesQuest(NPC, OroRoots)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function InRange(NPC, Spawn)
  18. end
  19. function LeaveRange(NPC, Spawn)
  20. end
  21. function OroStart(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. conversation = CreateConversation()
  24. AddConversationOption(conversation, "I could go for a pint. What do you need?", "TheJob")
  25. StartConversation(conversation, NPC, Spawn, "Oh you are, are ya? Well I'll tell ya what - if ya do something for me, I'll get you a pint on the house and pay ya as well.")
  26. PlayFlavor(NPC, "voiceover/english/lozoria_shinkicker/qey_village06/lozoriashinkicker001.mp3", "", "ponder", 297007289,1280253281 , Spawn)
  27. end
  28. function TheJob(NPC, Spawn)
  29. PlayFlavor(NPC, "voiceover/english/lozoria_shinkicker/qey_village06/lozoriashinkicker002.mp3", "", "", 1470439081,2268467194 , Spawn)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. AddConversationOption(conversation, "Get on with it. What's the job?", "TheJob2")
  33. StartConversation(conversation, NPC, Spawn, "Bregun! Fetch this one a pint! Now, let me tell ya what I'd like ya to do. You know about the Oakmyst Forest. Everyone does. You see ever since we halflings were removed from the Vale, we've been unable to get ahold of any Jum Jum. Fortunately, the dryads make a halfway decent replacement.")
  34. end
  35. function TheJob2(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. conversation = CreateConversation()
  38. AddConversationOption(conversation, "Alright, well, what do you need?", "patience")
  39. StartConversation(conversation, NPC, Spawn, "Patience! Patience. We do things slowly around here. Don't confuse us halflings with the gnomes, Haha! Now, where was I?")
  40. PlayFlavor(NPC, "voiceover/english/lozoria_shinkicker/qey_village06/lozoriashinkicker003.mp3", "", "no", 3414180428,3979244034 , Spawn)
  41. end
  42. function patience(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. AddConversationOption(conversation, "I'll go find your Oro roots. Save a drink for me!", "OfferQuest1")
  46. StartConversation(conversation, NPC, Spawn, "Oh, yes. The dryads in the forest with the Jum Jum replacement. My pop calls it a darn-poor substitution, but I think he's a wee bit bitter about the whole ordeal. At any rate, why don't you forage around and see if you can find any the Oro root they're growing. I could use some for the tavern's next batch.")
  47. PlayFlavor(NPC, "voiceover/english/lozoria_shinkicker/qey_village06/lozoriashinkicker004.mp3", "", "nod", 2659331601,3561367931 , Spawn)
  48. end
  49. function OfferQuest1(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. OfferQuest(NPC, Spawn, OroRoots)
  52. end
  53. function Guilty(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. AddConversationOption(conversation, "I'll have to let Nyla know. She may have a few words for you.", "UpdateThief")
  57. StartConversation(conversation, NPC, Spawn, "Good knows! You caught me! But the pie is gone. I just couldn't resist! She'll have to come by later for an ale on the house.")
  58. PlayFlavor(NPC, "voiceover/english/lozoria_shinkicker/qey_village06/lozoriashinkicker006.mp3", "", "wince", 171584737,1896068208 , Spawn)
  59. end
  60. function UpdateThief(NPC, Spawn)
  61. SetStepComplete(Spawn, PieThief, 4)
  62. end
  63. function hailed(NPC, Spawn, conversation)
  64. FaceTarget(NPC, Spawn)
  65. if HasQuest (Spawn, PieThief) and GetQuestStep(Spawn, PieThief) == 4 then
  66. conversation = CreateConversation()
  67. AddConversationOption(conversation, "Ah-ha, it was you! Those pie crumbs on your tunic give you away. You took Nyla's pie!", "Guilty")
  68. AddConversationOption(conversation, "Nothing right now. Enjoy your pint.")
  69. StartConversation(conversation, NPC, Spawn, "Bring me another pint, Bregun! Mine's almost empty! Well, hello there! What brings you into my Papa's fine establishment?", "", Spawn)
  70. PlayFlavor(NPC, "voiceover/english/lozoria_shinkicker/qey_village06/lozoriashinkicker000.mp3", "", "", 1408955306, 2441116246, Spawn)
  71. elseif HasQuest(Spawn, OroRoots) and GetQuestStep(Spawn, OroRoots) == 2 then
  72. conversation = CreateConversation()
  73. AddConversationOption(conversation, "I've found your Oro roots. Here you go.", "FoundRoots")
  74. AddConversationOption(conversation, "I'm still gathering those roots for you.")
  75. AddConversationOption(conversation, "Nothing right now. Enjoy your pint.")
  76. StartConversation(conversation, NPC, Spawn, "Bring me another pint, Bregun! Mine's almost empty! What brings you into my papa's fine establishment, friend?", "", Spawn)
  77. PlayFlavor(NPC, "voiceover/english/lozoria_shinkicker/qey_village06/100_lozoria_shinkicker_multhail2_c18b6ff4.mp3", "", "", 1585254591, 550642986, Spawn)
  78. elseif HasQuest(Spawn, OroRoots) and not HasCompletedQuest(Spawn, OroRoots) and GetQuestStep(Spawn, OroRoots) <= 2 then
  79. conversation = CreateConversation()
  80. AddConversationOption(conversation, "I'm still gathering those roots for you.")
  81. AddConversationOption(conversation, "Nothing right now. Enjoy your pint.")
  82. StartConversation(conversation, NPC, Spawn, "Bring me another pint, Bregun! Mine's almost empty! What brings you into my papa's fine establishment, friend?", "", Spawn)
  83. PlayFlavor(NPC, "voiceover/english/lozoria_shinkicker/qey_village06/100_lozoria_shinkicker_multhail2_c18b6ff4.mp3", "", "", 1585254591, 550642986, Spawn)
  84. elseif not HasQuest(Spawn, OroRoots) and not HasCompletedQuest(Spawn, OroRoots) and GetLevel(Spawn) >=5 then
  85. conversation = CreateConversation()
  86. AddConversationOption(conversation, "I'm looking for some work if you have any.", "OroStart")
  87. AddConversationOption(conversation, "Nothing right now. Enjoy your pint.")
  88. StartConversation(conversation, NPC, Spawn, "Bring me another pint, Bregun! Mine's almost empty! What brings you into my papa's fine establishment, friend?", "", Spawn)
  89. PlayFlavor(NPC, "voiceover/english/lozoria_shinkicker/qey_village06/100_lozoria_shinkicker_multhail2_c18b6ff4.mp3", "", "", 1585254591, 550642986, Spawn)
  90. else
  91. local choice = math.random(1,3)
  92. if choice == 1 then
  93. PlayFlavor(NPC, "voiceover/english/lozoria_shinkicker/qey_village06/100_lozoria_shinkicker_lozoria_first_a433e906.mp3", "Ahh, there's nothing like a nice pint to tide you over till the next one!", "", 908545867, 693626511, Spawn)
  94. elseif choice == 2 then
  95. PlayFlavor(NPC, "voiceover/english/lozoria_shinkicker/qey_village06/100_lozoria_shinkicker_multhail2_c18b6ff4.mp3", "Bring me another pint, Bregun! Mine's almost empty! What brings you into my papa's fine establishment, friend?", "", 1585254591, 550642986, Spawn)
  96. elseif choice == 3 then
  97. PlayFlavor(NPC, "voiceover/english/lozoria_shinkicker/qey_village06/100_lozoria_shinkicker_callout_7d9f1c7c.mp3", "Ahh ... nothing like a pint to tide you over till the next one. Greetings, traveler! Won't you join me for an ale?", "", 2310344859, 4256384860, Spawn)
  98. end
  99. end
  100. function FoundRoots (NPC, Spawn)
  101. SetStepComplete(Spawn, OroRoots, 2)
  102. FaceTarget(NPC, Spawn)
  103. conversation = CreateConversation()
  104. AddConversationOption(conversation, "Good luck on the next batch.")
  105. StartConversation(conversation, NPC, Spawn, "Fine indeed! I'll get Bregun working on this next batch! Here, let me pay you. I did say I would, didn't I? Ah-hah! Thank goodness our pal is an adventurer! I can afford to run this tavern at a loss. Oh Bregun! Time for another pint!")
  106. PlayFlavor(NPC, "voiceover/english/lozoria_shinkicker/qey_village06/lozoriashinkicker005.mp3", "", "thanks", 3396930954, 3615323112, Spawn)
  107. end
  108. end