9
3

InnkeeperTwiggy.lua 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/InnkeeperTwiggy.lua
  3. Script Purpose : Innkeeper Twiggy <Housing>
  4. Script Author : John Adams
  5. Script Date : 2009.03.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. choice = math.random(1,2)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/merchants/innkeeper_twiggy_hail_5d858d10.mp3", "I think I'll treat myself to a pruning.", "", 147248694, 3994611630, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/merchants/innkeeper_twiggy_hail_c9120666.mp3", "All this running around is likely to whittle me away to nothing!", "", 2824894623, 967344056, Spawn)
  26. else
  27. end
  28. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/quest/qst_twiggy/qst_twiggy001.mp3", "", "", 493093901, 1676315046, Spawn)
  29. AddConversationOption(conversation, "Please.", "dlg_85_1")
  30. AddConversationOption(conversation, "Not right now.")
  31. StartConversation(conversation, NPC, Spawn, "Hello, .. GetName(Spawn) .. . I am the Innkeeper for Kelethin. My name is Twiggy! We received word of your arrival and have a room prepared for you. Is there anything you'd like to know about housing before you move in?")
  32. if convo==86 then
  33. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/quest/qst_twiggy/qst_twiggy010.mp3", "", "", 232672131, 2109387803, Spawn)
  34. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_86_1")
  35. AddConversationOption(conversation, "What kind of housing is available to me?")
  36. AddConversationOption(conversation, "What is the marketboard for?")
  37. AddConversationOption(conversation, "What is my house for?")
  38. AddConversationOption(conversation, "Nothing right now.")
  39. StartConversation(conversation, NPC, Spawn, "Hello again, .. GetName(Spawn) .. . What can I help you with?")
  40. end
  41. end
  42. function dlg_85_1(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/quest/qst_twiggy/qst_twiggy002.mp3", "", "", 1017061939, 1561607192, Spawn)
  46. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_85_2")
  47. AddConversationOption(conversation, "What kind of housing is available to me?")
  48. AddConversationOption(conversation, "What is the marketboard for?")
  49. AddConversationOption(conversation, "What is my house for?")
  50. AddConversationOption(conversation, "Nothing right now.")
  51. StartConversation(conversation, NPC, Spawn, "What would you like to know?")
  52. end
  53. function dlg_85_2(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/quest/qst_twiggy/qst_twiggy003.mp3", "", "", 943030445, 831464053, Spawn)
  57. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_85_3")
  58. AddConversationOption(conversation, "What is the marketboard for?")
  59. AddConversationOption(conversation, "What is my house for?")
  60. AddConversationOption(conversation, "That's enough for now, thanks.")
  61. StartConversation(conversation, NPC, Spawn, "To place an item in your house, you must first find the item in your inventory. Once you've done so, right-click on the item and select the 'place' option. Then you'll see a tinted outline of your item in your house. When the item is highlighted green you can place it in that location. If it is highlighted red, you cannot.")
  62. end
  63. function dlg_85_3(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/quest/qst_twiggy/qst_twiggy004.mp3", "", "", 2005553615, 4066801615, Spawn)
  67. AddConversationOption(conversation, "Is any other housing available?", "dlg_85_4")
  68. AddConversationOption(conversation, "How can I place an item in my house?")
  69. AddConversationOption(conversation, "What is the marketboard for?")
  70. AddConversationOption(conversation, "What is my house for?")
  71. AddConversationOption(conversation, "That's enough for now, thanks.")
  72. StartConversation(conversation, NPC, Spawn, "There are a few different types of housing available in Kelethin. This particular tree is very comfortable and cozy, though you might later prefer to reside in one of those modern rental acorns.")
  73. end
  74. function dlg_85_4(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. conversation = CreateConversation()
  77. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/quest/qst_twiggy/qst_twiggy005.mp3", "", "", 2629356152, 4258694039, Spawn)
  78. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_85_5")
  79. AddConversationOption(conversation, "What is the marketboard for?")
  80. AddConversationOption(conversation, "What is my house for?")
  81. AddConversationOption(conversation, "That's enough for now, thanks.")
  82. StartConversation(conversation, NPC, Spawn, "Yes, Kelethin has houses ranging from the basic one bedroom model on up to four bedroom apartments, although the most ostentatious of these are only available to the most prestigious citizens of the city.")
  83. end
  84. function dlg_85_5(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. conversation = CreateConversation()
  87. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/quest/qst_twiggy/qst_twiggy003.mp3", "", "", 943030445, 831464053, Spawn)
  88. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_85_6")
  89. AddConversationOption(conversation, "What is the marketboard for?")
  90. AddConversationOption(conversation, "What is my house for?")
  91. AddConversationOption(conversation, "That's enough for now, thanks.")
  92. StartConversation(conversation, NPC, Spawn, "To place an item in your house, you must first find the item in your inventory. Once you've done so, right-click on the item and select the 'place' option. Then you'll see a tinted outline of your item in your house. When the item is highlighted green you can place it in that location. If it is highlighted red, you cannot.")
  93. end
  94. function dlg_85_6(NPC, Spawn)
  95. FaceTarget(NPC, Spawn)
  96. conversation = CreateConversation()
  97. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/quest/qst_twiggy/qst_twiggy004.mp3", "", "", 2005553615, 4066801615, Spawn)
  98. AddConversationOption(conversation, "Is any other housing available?", "dlg_85_7")
  99. AddConversationOption(conversation, "How can I place an item in my house?")
  100. AddConversationOption(conversation, "What is the marketboard for?")
  101. AddConversationOption(conversation, "What is my house for?")
  102. AddConversationOption(conversation, "That's enough for now, thanks.")
  103. StartConversation(conversation, NPC, Spawn, "There are a few different types of housing available in Kelethin. This particular tree is very comfortable and cozy, though you might later prefer to reside in one of those modern rental acorns.")
  104. end
  105. function dlg_85_7(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. conversation = CreateConversation()
  108. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/quest/qst_twiggy/qst_twiggy006.mp3", "", "", 3891426709, 2870580979, Spawn)
  109. AddConversationOption(conversation, "How do I sell items using my marketboard?")
  110. AddConversationOption(conversation, "How can I place an item in my house?")
  111. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_85_8")
  112. AddConversationOption(conversation, "What is my house for?")
  113. AddConversationOption(conversation, "That's enough for now, thanks.")
  114. StartConversation(conversation, NPC, Spawn, "The marketboard is a house item, similar to books, beds, pets and other such items. What sets the marketboard apart from the rest however is that once your marketboard is mounted on a wall in your home you can use it to sell items to other citizens of Kelethin. These items can be purchased by your fellow citizens at a Broker. Our Broker is based out of the Kelethin First Regional Bank.")
  115. end
  116. function dlg_85_8(NPC, Spawn)
  117. FaceTarget(NPC, Spawn)
  118. conversation = CreateConversation()
  119. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/quest/qst_twiggy/qst_twiggy007.mp3", "", "", 3004508275, 2782950123, Spawn)
  120. AddConversationOption(conversation, "I can sell things through a broker?", "dlg_85_9")
  121. AddConversationOption(conversation, "How can I place an item in my house?")
  122. AddConversationOption(conversation, "What kind of housing is available to me?")
  123. AddConversationOption(conversation, "What is my house for?")
  124. AddConversationOption(conversation, "That’s enough for now, thanks.")
  125. StartConversation(conversation, NPC, Spawn, "Selling through your market board works the same way as directly selling through a broker, it just allows you to do it from the comfort of your home.")
  126. end
  127. function dlg_85_9(NPC, Spawn)
  128. FaceTarget(NPC, Spawn)
  129. conversation = CreateConversation()
  130. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  131. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_85_10")
  132. AddConversationOption(conversation, "What kind of housing is available to me?")
  133. AddConversationOption(conversation, "What is the marketboard for?")
  134. AddConversationOption(conversation, "That's enough for now, thanks.")
  135. StartConversation(conversation, NPC, Spawn, "Yes. For a fee, brokers are willing to post the goods you are willing to sell to other adventurers. We have our very own broker here within Kelethin, too!")
  136. end
  137. function dlg_86_1(NPC, Spawn)
  138. FaceTarget(NPC, Spawn)
  139. conversation = CreateConversation()
  140. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/quest/qst_twiggy/qst_twiggy008.mp3", "", "", 572451551, 3490877103, Spawn)
  141. AddConversationOption(conversation, "Anything else?")
  142. AddConversationOption(conversation, "How can I place an item in my house?")
  143. AddConversationOption(conversation, "What kind of housing is available to me?")
  144. AddConversationOption(conversation, "What is the marketboard for?", "dlg_86_2")
  145. AddConversationOption(conversation, "That's enough for now, thanks.")
  146. StartConversation(conversation, NPC, Spawn, "You will find that your house has many uses, the first of which is the ability to store house items. Each house has a limit to the number of house items you can place in it, so as you gain more possessions you wish to display you will need larger houses to do so.")
  147. end
  148. function dlg_86_2(NPC, Spawn)
  149. FaceTarget(NPC, Spawn)
  150. conversation = CreateConversation()
  151. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/quest/qst_twiggy/qst_twiggy009.mp3", "", "", 277136482, 2220542103, Spawn)
  152. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_86_3")
  153. AddConversationOption(conversation, "What kind of housing is available to me?")
  154. AddConversationOption(conversation, "What is the marketboard for?")
  155. AddConversationOption(conversation, "That's enough for now, thanks.")
  156. StartConversation(conversation, NPC, Spawn, "Yes, houses have what we call vaults, which are extra storage within your house. The larger your house is, the more storage space is available. By placing items in this house vault and using your marketboard, you can sell these items to others without being in your room.")
  157. end
  158. function dlg_86_3(NPC, Spawn)
  159. FaceTarget(NPC, Spawn)
  160. conversation = CreateConversation()
  161. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/quest/qst_twiggy/qst_twiggy004.mp3", "", "", 2005553615, 4066801615, Spawn)
  162. AddConversationOption(conversation, "Is any other housing available?")
  163. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_86_4")
  164. AddConversationOption(conversation, "What is the marketboard for?")
  165. AddConversationOption(conversation, "What is my house for?")
  166. AddConversationOption(conversation, "That's enough for now, thanks.")
  167. StartConversation(conversation, NPC, Spawn, "There are a few different types of housing available in Kelethin. This particular tree is very comfortable and cozy, though you might later prefer to reside in one of those modern rental acorns.")
  168. end
  169. function dlg_86_4(NPC, Spawn)
  170. FaceTarget(NPC, Spawn)
  171. conversation = CreateConversation()
  172. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/quest/qst_twiggy/qst_twiggy005.mp3", "", "", 2629356152, 4258694039, Spawn)
  173. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_86_5")
  174. AddConversationOption(conversation, "What is the marketboard for?")
  175. AddConversationOption(conversation, "What is my house for?")
  176. AddConversationOption(conversation, "That's enough for now, thanks.")
  177. StartConversation(conversation, NPC, Spawn, "Yes, Kelethin has houses ranging from the basic one bedroom model on up to four bedroom apartments, although the most ostentatious of these are only available to the most prestigious citizens of the city.")
  178. end
  179. --[[ raw_conversations
  180. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/merchants/innkeeper_twiggy_hail_5d858d10.mp3", "I think I'll treat myself to a pruning.", "", 147248694, 3994611630, Spawn)
  181. PlayFlavor(NPC, "voiceover/english/exp03_questvo/innkeeper_twiggy/_exp03/exp03_cty_kelethin/merchants/innkeeper_twiggy_hail_c9120666.mp3", "All this running around is likely to whittle me away to nothing!", "", 2824894623, 967344056, Spawn)
  182. --]]