BlartonBlumble.lua 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. --[[
  2. Script Name : SpawnScripts/Antonica/BlartonBlumble.lua
  3. Script Purpose : Blarton Blumble
  4. Script Author : geordie0511
  5. Script Date : 2019.01.29
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local Lucky = 457
  9. local Care = 467
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. local choice = math.random(1,5)
  17. if choice == 1 then
  18. PlayFlavor(NPC, "", "I'll just have a sip for now...", "", 1689589577, 4560189, Spawn)
  19. elseif choice == 2 then
  20. PlayFlavor(NPC, "", "...", "", 1689589577, 4560189, Spawn)
  21. elseif choice == 3 then
  22. PlayFlavor(NPC, "", "Ugh... just breathing is painful.", "", 1689589577, 4560189, Spawn)
  23. elseif choice == 4 then
  24. PlayFlavor(NPC, "", "Hello again! Please hurry back when you're done.", "", 1689589577, 4560189, Spawn)
  25. elseif choice == 5 then
  26. PlayFlavor(NPC, "", "Thank you so much for all of your help! I can't wait to get back to fishing again.", "", 1689589577, 4560189, Spawn)
  27. else
  28. end
  29. end
  30. function LeaveRange(NPC, Spawn)
  31. end
  32. function hailed(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1040.mp3", "", "", 0, 0, Spawn)
  36. if GetQuestStep(Spawn, Care) == 1 then
  37. AddConversationOption(conversation, "Oh, it's not from me.", "dlg_27_2")
  38. StartConversation(conversation, NPC, Spawn, "Really? Why thank you, you shouldn't have.")
  39. else
  40. AddConversationOption(conversation, "Don't worry about it. It was my pleasure.", "dlg_3_1")
  41. StartConversation(conversation, NPC, Spawn, "Great. Thank you kindly. You have been very helpful to me. Hopefully I can repay the favor sometime.")
  42. end
  43. end
  44. function dlg_7_1(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  48. AddConversationOption(conversation, "Yes, I'd be happy to help again.", "dlg_7_2")
  49. AddConversationOption(conversation, "I think I've helped you enough already, Blarton.")
  50. StartConversation(conversation, NPC, Spawn, "His name is Ol' One Eye. He's been living in these waters for some time and has eluded many a would-be fisherman. Can you go look for him and let me know if he's still out there? I just can't stop wonderin' where he is.")
  51. end
  52. function dlg_8_2(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  56. AddConversationOption(conversation, "See you soon!", "dlg_8_3")
  57. StartConversation(conversation, NPC, Spawn, "Thanks again, friend. Please, don't try to catch or harm him. I've been waiting a long time to catch up with him and I want to catch him myself. Good luck with the search!")
  58. end
  59. function dlg_9_1(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  63. AddConversationOption(conversation, "Really?", "dlg_9_2")
  64. AddConversationOption(conversation, "I'm sorry, but I have pressing business elsewhere.")
  65. StartConversation(conversation, NPC, Spawn, "Ah, I can't believe I was such a darn fool. How'd I manage to hurt my leg and lose my best fishin' lure all in one day? There I was up on the coast, north of here, having a nice walk before settling down for a long day of fishin' when I slipped and hurt my poor leg.")
  66. end
  67. function dlg_9_2(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  71. AddConversationOption(conversation, "Sure, I'd be happy to help.", "dlg_9_3")
  72. AddConversationOption(conversation, "No thanks.")
  73. StartConversation(conversation, NPC, Spawn, "It hurt somethin' fierce and I only barely managed to drag myself back here. The next morning I found I could stand on it okay, but not for too long. I thought I'd try to do some fishin' here at this nice pond since I'm stuck until I can heal enough to get back to my favorite fishin' holes. Just as I was getting set up, I realized I'd lost my favorite lure! I must have dropped it somewhere up on the beach north of here near where I fell. With my leg like this, I can't go and look for it myself. I don't suppose you might be able to help find it for me?")
  74. end
  75. function dlg_9_3(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  79. AddConversationOption(conversation, "Okay.", "dlg_9_4")
  80. StartConversation(conversation, NPC, Spawn, "Thank you very much! As I was saying, it should be somewhere near the beach to the north of here. Good luck!")
  81. end
  82. function dlg_11_1(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  86. AddConversationOption(conversation, "Shouldn't be a problem. I'll see how it goes.", "dlg_11_2")
  87. AddConversationOption(conversation, "I'm not in the mood to deal with more gnolls right now.")
  88. StartConversation(conversation, NPC, Spawn, "My cousin had a tin of bait for me, but he left it sitting at an abandoned camp to the south of here while he was out and about. Now I hear some gnolls have moved in. Do you think you can pick up the bait for me?")
  89. end
  90. function dlg_12_2(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. conversation = CreateConversation()
  93. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  94. AddConversationOption(conversation, "I'll be back as soon as I can.", "dlg_12_3")
  95. StartConversation(conversation, NPC, Spawn, "Thank you, and good luck.")
  96. end
  97. function dlg_21_1(NPC, Spawn)
  98. FaceTarget(NPC, Spawn)
  99. conversation = CreateConversation()
  100. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  101. AddConversationOption(conversation, "Alright.", "dlg_21_2")
  102. AddConversationOption(conversation, "Sorry, I can't.")
  103. StartConversation(conversation, NPC, Spawn, "Oh, thank you so much. If I can't get out there and fish, at least I can find out what's going on. Here, let me see that journal you've got there and I'll write down all my favorite spots for you. Mind you, I'd take it as a favor if you don't go showin' this to anyone else. These spots are nice and quiet and I'd like to keep 'em that way.")
  104. end
  105. function dlg_22_2(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. conversation = CreateConversation()
  108. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  109. AddConversationOption(conversation, "Okay. I'll be back soon.", "dlg_22_3")
  110. StartConversation(conversation, NPC, Spawn, "I couldn't bear to go through all this time healing only to finally get back out there and have a crowd of people fishin' in my spot.")
  111. end
  112. ------------ Care --------------------
  113. function dlg_27_2(NPC, Spawn)
  114. FaceTarget(NPC, Spawn)
  115. conversation = CreateConversation()
  116. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  117. AddConversationOption(conversation, "Uh, your good friend from the bar.", "dlg_27_3")
  118. StartConversation(conversation, NPC, Spawn, "Oh? Who is it from?")
  119. end
  120. function dlg_27_3(NPC, Spawn)
  121. FaceTarget(NPC, Spawn)
  122. conversation = CreateConversation()
  123. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  124. AddConversationOption(conversation, "Yeah, her. I delivered it for her. Drink up!", "dlg_28_1")
  125. StartConversation(conversation, NPC, Spawn, "Matsy? She's my cousin, she's so nice!")
  126. end
  127. function dlg_28_1(NPC, Spawn)
  128. FaceTarget(NPC, Spawn)
  129. conversation = CreateConversation()
  130. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  131. AddConversationOption(conversation, "You're welcome.")
  132. StartConversation(conversation, NPC, Spawn, "Thank you so much!")
  133. SetStepComplete(Spawn, Care, 1)
  134. end