9
3

InnkeeperYeoni.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. --[[
  2. Script Name : SpawnScripts/WillowWood/InnkeeperYeoni.lua
  3. Script Purpose : Innkeeper Yeoni <Housing>
  4. Script Author : Scatman
  5. Script Date : 2009.09.15
  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. conversation = CreateConversation()
  16. PlayFlavor(NPC, "innkeeper_yeoni/qey_village05/innkeeper010.mp3", "", "", 57172292, 1639146546, Spawn)
  17. --if not HasQuest(Spawn, HOUSE_QUEST) then
  18. AddConversationOption(conversation, "Please.", "OfferQuest1")
  19. --end
  20. AddConversationOption(conversation, "Not right now.")
  21. StartConversation(conversation, NPC, Spawn, "Hello " .. GetName(Spawn) .. ". I am the Innkeeper for this village. We have received word of your arrival and have a room prepared for you. Would you like to know more about housing?")
  22. end
  23. function OfferQuest1(NPC, Spawn)
  24. end
  25. -- this stuff below goes in the accepted function of the quest
  26. function dlg_16_1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. conversation = CreateConversation()
  29. PlayFlavor(NPC, "innkeeper_yeoni/qey_village05/innkeeper001.mp3", "", "", 1416750242, 2121491884, Spawn)
  30. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_16_2")
  31. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_16_3")
  32. AddConversationOption(conversation, "What is the marketboard for?", "dlg_16_6")
  33. AddConversationOption(conversation, "What is my house for?", "dlg_16_10")
  34. AddConversationOption(conversation, "Nothing right now.")
  35. StartConversation(conversation, NPC, Spawn, "What would you like to know?")
  36. end
  37. function dlg_16_2(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. PlayFlavor(NPC, "innkeeper_uglar_splinterthumb/qey_village05/innkeeper002.mp3", "", "", 268560119, 3945464773, Spawn)
  41. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_16_3")
  42. AddConversationOption(conversation, "What is the marketboard for?", "dlg_16_6")
  43. AddConversationOption(conversation, "What is my house for?", "dlg_16_10")
  44. AddConversationOption(conversation, "That's enough for now, thanks.")
  45. StartConversation(conversation, NPC, Spawn, "To place an item in your house, you must first find the item in your inventory. Once you have done so, right-click on the item and select the 'place' option. You will then 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.")
  46. end
  47. function dlg_16_3(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "innkeeper_uglar_splinterthumb/qey_village05/innkeeper003.mp3", "", "", 3111940277, 3258032438, Spawn)
  51. AddConversationOption(conversation, "Is any other housing available?", "dlg_16_4")
  52. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_16_5")
  53. AddConversationOption(conversation, "What is the marketboard for?", "dlg_16_6")
  54. AddConversationOption(conversation, "What is my house for?", "dlg_16_10")
  55. AddConversationOption(conversation, "That's enough for now, thanks.")
  56. StartConversation(conversation, NPC, Spawn, "Many different kinds of housing are available in the city of Qeynos. As a show of appreciation, Antonia Bayle has awarded you a one bedroom house for free at this time.")
  57. end
  58. function dlg_16_4(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. conversation = CreateConversation()
  61. PlayFlavor(NPC, "innkeeper_uglar_splinterthumb/qey_village05/innkeeper004.mp3", "", "", 4113019813, 3549581191, Spawn)
  62. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_16_5")
  63. AddConversationOption(conversation, "What is the marketboard for?", "dlg_16_6")
  64. AddConversationOption(conversation, "What is my house for?", "dlg_16_10")
  65. AddConversationOption(conversation, "That's enough for now, thanks.")
  66. StartConversation(conversation, NPC, Spawn, "Yes, the lovely city of Qeynos has houses ranging from the basic one bedroom model on up to 5 bedroom apartments, although the most ostentatious of these are only available to the most prestigious citizens of the city.")
  67. end
  68. function dlg_16_5(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "innkeeper_uglar_splinterthumb/qey_village05/innkeeper002.mp3", "", "", 268560119, 3945464773, Spawn)
  72. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_16_3")
  73. AddConversationOption(conversation, "What is the marketboard for?", "dlg_16_6")
  74. AddConversationOption(conversation, "What is my house for?", "dlg_16_10")
  75. AddConversationOption(conversation, "That's enough for now, thanks.")
  76. StartConversation(conversation, NPC, Spawn, "To place an item in your house, you must first find the item in your inventory. Once you have done so, right-click on the item and select the 'place' option. You will then 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.")
  77. end
  78. function dlg_16_6(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. conversation = CreateConversation()
  81. PlayFlavor(NPC, "innkeeper_uglar_splinterthumb/qey_village05/innkeeper005.mp3", "", "", 1836231230, 3620786214, Spawn)
  82. AddConversationOption(conversation, "How do I sell items using my marketboard?", "dlg_16_7")
  83. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_16_5")
  84. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_16_3")
  85. AddConversationOption(conversation, "What is my house for?", "dlg_16_10")
  86. AddConversationOption(conversation, "That's enough for now, thanks.")
  87. 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 Qeynos. These items can be purchased by your fellow citizens at a Broker. Brokers can be found in all primary districts of the city as well as in the Tradeskill wholesalers.")
  88. end
  89. function dlg_16_7(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. PlayFlavor(NPC, "innkeeper_uglar_splinterthumb/qey_village05/innkeeper006.mp3", "", "", 1981599373, 3630852821, Spawn)
  93. AddConversationOption(conversation, "I can sell things through a broker?", "dlg_16_8")
  94. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_16_5")
  95. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_16_3")
  96. AddConversationOption(conversation, "What is my house for?", "dlg_16_10")
  97. AddConversationOption(conversation, "That?s enough for now, thanks.")
  98. 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.")
  99. end
  100. function dlg_16_8(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. conversation = CreateConversation()
  103. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  104. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_16_9")
  105. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_16_3")
  106. AddConversationOption(conversation, "What is the marketboard for?", "dlg_16_6")
  107. AddConversationOption(conversation, "That's enough for now, thanks.")
  108. StartConversation(conversation, NPC, Spawn, "Yes. For a fee, brokers are willing to post the goods you are willing to sell to other adventurers. Brokers can be found in all primary districts of the city as well as in the Tradeskill wholesalers.")
  109. end
  110. function dlg_16_9(NPC, Spawn)
  111. FaceTarget(NPC, Spawn)
  112. conversation = CreateConversation()
  113. PlayFlavor(NPC, "innkeeper_uglar_splinterthumb/qey_village05/innkeeper002.mp3", "", "", 268560119, 3945464773, Spawn)
  114. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_16_3")
  115. AddConversationOption(conversation, "What is the marketboard for?", "dlg_16_6")
  116. AddConversationOption(conversation, "What is my house for?", "dlg_16_10")
  117. AddConversationOption(conversation, "That's enough for now, thanks.")
  118. StartConversation(conversation, NPC, Spawn, "To place an item in your house, you must first find the item in your inventory. Once you have done so, right-click on the item and select the 'place' option. You will then 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.")
  119. end
  120. function dlg_16_10(NPC, Spawn)
  121. FaceTarget(NPC, Spawn)
  122. conversation = CreateConversation()
  123. PlayFlavor(NPC, "innkeeper_uglar_splinterthumb/qey_village05/innkeeper007.mp3", "", "", 1009203650, 2953491252, Spawn)
  124. AddConversationOption(conversation, "Anything else?", "dlg_16_11")
  125. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_16_9")
  126. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_16_3")
  127. AddConversationOption(conversation, "What is the marketboard for?", "dlg_16_6")
  128. AddConversationOption(conversation, "That's enough for now, thanks.")
  129. 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.")
  130. end
  131. function dlg_16_11(NPC, Spawn)
  132. FaceTarget(NPC, Spawn)
  133. conversation = CreateConversation()
  134. PlayFlavor(NPC, "innkeeper_uglar_splinterthumb/qey_village05/innkeeper008.mp3", "", "", 3178827795, 3719693769, Spawn)
  135. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_16_9")
  136. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_16_3")
  137. AddConversationOption(conversation, "What is the marketboard for?", "dlg_16_6")
  138. AddConversationOption(conversation, "That's enough for now, thanks.")
  139. 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 it has available. By placing items in this house vault and using your marketboard, you can sell these items to other citizens of Qeynos without being in your room.")
  140. end