WardenBretta.lua 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/WardenBretta.lua
  3. Script Purpose : Warden Bretta <New Halas Housing>
  4. Script Author : theFoof
  5. Script Date : 2013.10.29
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. PlayFlavor(NPC, "", "I apologize, but my services are only for those who claim New Halas as their home.", "no", 0, 0, Spawn)
  16. end
  17. --[[ Need to script the rest out along with her housing quest
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1041.mp3", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "Actually, there are a few things I would like to know.", "dlg_5_1")
  23. AddConversationOption(conversation, "No, I think I have it covered. May I see my room, please?")
  24. AddConversationOption(conversation, "I don't have time for this right now. Farewell.")
  25. StartConversation(conversation, NPC, Spawn, "Greetings, Iwkaat. I am Warden Bretta, and I am responsible for showing you to your first home here in New Halas. Before I do so, do you have any questions for me about housing?")
  26. if convo==15 then
  27. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1041.mp3", "", "", 0, 0, Spawn)
  28. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_15_1")
  29. AddConversationOption(conversation, "What kind of housing is available to me?")
  30. AddConversationOption(conversation, "What is the marketboard for?")
  31. AddConversationOption(conversation, "What is my house for?")
  32. AddConversationOption(conversation, "I should be going now. Farewell.")
  33. StartConversation(conversation, NPC, Spawn, "Ah, you have returned. Did you have any questions for me?")
  34. end
  35. if convo==24 then
  36. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1041.mp3", "", "", 0, 0, Spawn)
  37. AddConversationOption(conversation, "Actually, there are a few things I would like to know.", "dlg_24_1")
  38. AddConversationOption(conversation, "No, I think I have it covered. May I see my room, please?")
  39. AddConversationOption(conversation, "I don't have time for this right now. Farewell.")
  40. StartConversation(conversation, NPC, Spawn, "Greetings, Tuce. I am Warden Bretta, and I am responsible for showing you to your first home here in New Halas. Before I do so, do you have any questions for me about housing?")
  41. end
  42. end
  43. function dlg_5_1(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  47. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_5_2")
  48. AddConversationOption(conversation, "What kind of housing is available to me?")
  49. AddConversationOption(conversation, "What is the marketboard for?")
  50. AddConversationOption(conversation, "What is my house for?")
  51. AddConversationOption(conversation, "That should be all, I am ready to see my house now.")
  52. AddConversationOption(conversation, "I should be going now. Farewell.")
  53. StartConversation(conversation, NPC, Spawn, "Excellent, I am here to help. What is it you would like to know?")
  54. end
  55. function dlg_5_2(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  59. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_5_3")
  60. AddConversationOption(conversation, "What is the marketboard for?")
  61. AddConversationOption(conversation, "What is my house for?")
  62. AddConversationOption(conversation, "That should be all, I am ready to see my house now.")
  63. AddConversationOption(conversation, "I should be going now. Farewell.")
  64. 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.")
  65. end
  66. function dlg_5_3(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. conversation = CreateConversation()
  69. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  70. AddConversationOption(conversation, "My thanks to you for your help! I will return if I have any other questions.")
  71. StartConversation(conversation, NPC, Spawn, "Then I will show you to your room. Behind me is the Valor Homesteads, which is often the first housing the citizens of New Halas will own. Due to your assistance, we've agreed to waive the initial fee for you, as thanks for your help to the city. Please left-click on the door behind me and select 'buy'. Once you are inside, you will find some basic necessities for your home - feel free to place them as you see fit. Farewell to you!")
  72. end
  73. function dlg_15_1(NPC, Spawn)
  74. FaceTarget(NPC, Spawn)
  75. conversation = CreateConversation()
  76. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  77. AddConversationOption(conversation, "So if I want something larger, what is available to me?")
  78. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_15_2")
  79. AddConversationOption(conversation, "What is the marketboard for?")
  80. AddConversationOption(conversation, "What is my house for?")
  81. AddConversationOption(conversation, "I should be going now. Farewell.")
  82. StartConversation(conversation, NPC, Spawn, "New Halas has several floor plans to choose from. This here is the basic one-room homestead, which should suit your needs for now. You may find someday that this room is no longer comfortable or spacious enough for you, and might desire to move to something larger.")
  83. end
  84. function dlg_24_1(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. conversation = CreateConversation()
  87. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  88. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_24_2")
  89. AddConversationOption(conversation, "What kind of housing is available to me?")
  90. AddConversationOption(conversation, "What is the marketboard for?")
  91. AddConversationOption(conversation, "What is my house for?")
  92. AddConversationOption(conversation, "That should be all, I am ready to see my house now.")
  93. AddConversationOption(conversation, "I should be going now. Farewell.")
  94. StartConversation(conversation, NPC, Spawn, "Excellent, I am here to help. What is it you would like to know?")
  95. end
  96. function dlg_24_2(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. conversation = CreateConversation()
  99. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  100. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_24_3")
  101. AddConversationOption(conversation, "What is the marketboard for?")
  102. AddConversationOption(conversation, "What is my house for?")
  103. AddConversationOption(conversation, "That should be all, I am ready to see my house now.")
  104. AddConversationOption(conversation, "I should be going now. Farewell.")
  105. 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.")
  106. end
  107. function dlg_24_3(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. conversation = CreateConversation()
  110. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  111. AddConversationOption(conversation, "So if I want something larger, what is available to me?", "dlg_24_4")
  112. AddConversationOption(conversation, "How can I place an item in my house?")
  113. AddConversationOption(conversation, "What is the marketboard for?")
  114. AddConversationOption(conversation, "What is my house for?")
  115. AddConversationOption(conversation, "That should be all, I am ready to see my house now.")
  116. AddConversationOption(conversation, "I should be going now. Farewell.")
  117. StartConversation(conversation, NPC, Spawn, "New Halas has several floor plans to choose from. This here is the basic one-room homestead, which should suit your needs for now. You may find someday that this room is no longer comfortable or spacious enough for you, and might desire to move to something larger.")
  118. end
  119. function dlg_24_4(NPC, Spawn)
  120. FaceTarget(NPC, Spawn)
  121. conversation = CreateConversation()
  122. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  123. AddConversationOption(conversation, "How do I use the marketboard?")
  124. AddConversationOption(conversation, "How can I place an item in my house?")
  125. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_24_5")
  126. AddConversationOption(conversation, "What is my house for?")
  127. AddConversationOption(conversation, "That should be all, I am ready to see my house now.")
  128. AddConversationOption(conversation, "I should be going now. Farewell.")
  129. StartConversation(conversation, NPC, Spawn, "The marketboard is a house item, not unlike regular furniture. 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 New Halas. These items can be purchased by your fellow citizens at our Broker, who is based here in the city.")
  130. end
  131. function dlg_24_5(NPC, Spawn)
  132. FaceTarget(NPC, Spawn)
  133. conversation = CreateConversation()
  134. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  135. AddConversationOption(conversation, "What kind of housing is available to me?")
  136. AddConversationOption(conversation, "What is the marketboard for?", "dlg_24_6")
  137. AddConversationOption(conversation, "What is my house for?")
  138. AddConversationOption(conversation, "That should be all, I am ready to see my house now.")
  139. AddConversationOption(conversation, "I should be going now. Farewell.")
  140. 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.")
  141. end
  142. function dlg_24_6(NPC, Spawn)
  143. FaceTarget(NPC, Spawn)
  144. conversation = CreateConversation()
  145. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  146. AddConversationOption(conversation, "So if I want something larger, what is available to me?", "dlg_24_7")
  147. AddConversationOption(conversation, "How can I place an item in my house?")
  148. AddConversationOption(conversation, "What is the marketboard for?")
  149. AddConversationOption(conversation, "What is my house for?")
  150. AddConversationOption(conversation, "That should be all, I am ready to see my house now.")
  151. AddConversationOption(conversation, "I should be going now. Farewell.")
  152. StartConversation(conversation, NPC, Spawn, "New Halas has several floor plans to choose from. This here is the basic one-room homestead, which should suit your needs for now. You may find someday that this room is no longer comfortable or spacious enough for you, and might desire to move to something larger.")
  153. end
  154. function dlg_24_7(NPC, Spawn)
  155. FaceTarget(NPC, Spawn)
  156. conversation = CreateConversation()
  157. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  158. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_24_8")
  159. AddConversationOption(conversation, "What is the marketboard for?")
  160. AddConversationOption(conversation, "What is my house for?")
  161. AddConversationOption(conversation, "That should be all, I am ready to see my house now.")
  162. AddConversationOption(conversation, "I should be going now. Farewell.")
  163. StartConversation(conversation, NPC, Spawn, "Along with the one room model, New Halas also has a three room and five room house available for purchase. Those houses are quite spacious, and the largest of them are very luxurious and expensive.")
  164. end
  165. function dlg_24_8(NPC, Spawn)
  166. FaceTarget(NPC, Spawn)
  167. conversation = CreateConversation()
  168. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  169. AddConversationOption(conversation, "What else can you tell me?")
  170. AddConversationOption(conversation, "How can I place an item in my house?")
  171. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_24_9")
  172. AddConversationOption(conversation, "What is the marketboard for?")
  173. AddConversationOption(conversation, "That should be all, I am ready to see my house now.")
  174. AddConversationOption(conversation, "I should be going now. Farewell.")
  175. 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.")
  176. end
  177. function dlg_24_9(NPC, Spawn)
  178. FaceTarget(NPC, Spawn)
  179. conversation = CreateConversation()
  180. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  181. AddConversationOption(conversation, "My thanks to you for your help! I will return if I have any other questions.")
  182. StartConversation(conversation, NPC, Spawn, "Then I will show you to your room. Behind me is the Valor Homesteads, which is often the first housing the citizens of New Halas will own. Due to your assistance, we've agreed to waive the initial fee for you, as thanks for your help to the city. Please left-click on the door behind me and select 'buy'. Once you are inside, you will find some basic necessities for your home - feel free to place them as you see fit. Farewell to you!")
  183. end
  184. --]]