9
3

InnkeepFrosthome.lua 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/InnkeeperMelus.lua
  3. Script Purpose : Innkeep Frosthome
  4. Script Author : torsten
  5. Script Date : 2022.07.25
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 8, "InRange", "LeaveRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. if MakeRandomInt(1, 100) <= 18 and GetFactionAmount(Spawn,12) >0 then
  17. FaceTarget(NPC, Spawn)
  18. PlayFlavor(NPC, "voiceover/english/barbarian_eco_evil_1/ft/service/innkeeper/barbarian_innkeeper_service_evil_1_aoi_gm_523a90f5.mp3", "Ah hello there! A traveling adventurer. You're in luck, we just had a recent death... err last minute cancellation.", "hello", 2939649453, 60816266, Spawn)
  19. elseif GetFactionAmount(Spawn,12) <=0 then
  20. FaceTarget(NPC, Spawn)
  21. PlayFlavor(NPC, "", "We don't serve your pathetic kind here. Get out of my sight!", "shakefist", 4267987983, 4115199119, Spawn, 0)
  22. end
  23. end
  24. function hailed(NPC, Spawn)
  25. if GetFactionAmount(Spawn,12) >0 then
  26. Dialog1(NPC, Spawn)
  27. else
  28. FaceTarget(NPC, Spawn)
  29. PlayFlavor(NPC, "", "We don't serve your pathetic kind here. Get out of my sight!", "shakefist", 4267987983, 4115199119, Spawn, 0)
  30. end
  31. end
  32. function RandomGreeting(NPC, Spawn)
  33. local choice = MakeRandomInt(1,4)
  34. FaceTarget(NPC, Spawn)
  35. if choice == 1 then
  36. PlayFlavor(NPC, "voiceover/english/barbarian_eco_evil_1/ft/service/innkeeper/barbarian_innkeeper_service_evil_1_hail_gm_252bf582.mp3", "Room rates are by the night not by the hour!", "no", 2290384264, 3204846441, Spawn, 0)
  37. elseif choice == 2 then
  38. PlayFlavor(NPC, "voiceover/english/barbarian_eco_evil_1/ft/service/innkeeper/barbarian_innkeeper_service_evil_1_hail_gm_a81dfaee.mp3", "Can't you see I'm busy doing some very important things now. I don't care if there's any hot water! ", "tapfoot", 1233544589, 3237948704, Spawn, 0)
  39. elseif choice == 3 then
  40. PlayFlavor(NPC, "voiceover/english/barbarian_eco_evil_1/ft/service/innkeeper/barbarian_innkeeper_service_evil_1_hail_gm_c58b0e.mp3", "What! What do you want?", "glare", 3188768809, 805088185, Spawn, 0)
  41. elseif choice == 4 then
  42. PlayFlavor(NPC, "voiceover/english/barbarian_eco_evil_1/ft/service/innkeeper/barbarian_innkeeper_service_evil_1_hail_gm_cac7726b.mp3", "Look I'm no cook, but I was going to have some fresh kidneys myself. You want me to get you a pair?", "shrug", 2965195375, 1753238152, Spawn, 0)
  43. end
  44. end
  45. --[[function Dialog1(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. Dialog.New(NPC, Spawn)
  48. Dialog.AddDialog("Hello, I am the Innkeeper for this district. We have received word of your arrival and have a room prepared for you. Would you like to know more about housing?")
  49. Dialog.AddVoiceover("innkeeper_melus/fprt_hood04/innkeeper010.mp3", 328655352, 2391913046)
  50. Dialog.AddOption("Yes.", "Dialog9")
  51. Dialog.AddOption("No thanks.")
  52. Dialog.Start()
  53. end]]--
  54. function Dialog1(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. Dialog.New(NPC, Spawn)
  57. local choice = MakeRandomInt(1,4)
  58. if choice == 1 then
  59. Dialog.AddDialog("Room rates are by the night not by the hour!")
  60. Dialog.AddVoiceover("voiceover/english/barbarian_eco_evil_1/ft/service/innkeeper/barbarian_innkeeper_service_evil_1_hail_gm_252bf582.mp3", 2290384264, 3204846441)
  61. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn, 0)
  62. elseif choice == 2 then
  63. Dialog.AddDialog("Can't you see I'm busy doing some very important things now. I don't care if there's any hot water! ")
  64. Dialog.AddVoiceover("voiceover/english/barbarian_eco_evil_1/ft/service/innkeeper/barbarian_innkeeper_service_evil_1_hail_gm_a81dfaee.mp3", 1233544589, 3237948704)
  65. PlayFlavor(NPC, "", "", "stare", 0, 0, Spawn, 0)
  66. elseif choice == 3 then
  67. Dialog.AddDialog("What! What do you want?")
  68. Dialog.AddVoiceover("voiceover/english/barbarian_eco_evil_1/ft/service/innkeeper/barbarian_innkeeper_service_evil_1_hail_gm_c58b0e.mp3", 3188768809, 805088185)
  69. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn, 0)
  70. elseif choice == 4 then
  71. Dialog.AddDialog("Look I'm no cook, but I was going to have some fresh kidneys myself. You want me to get you a pair?")
  72. Dialog.AddVoiceover("voiceover/english/barbarian_eco_evil_1/ft/service/innkeeper/barbarian_innkeeper_service_evil_1_hail_gm_cac7726b.mp3", 2965195375, 1753238152)
  73. PlayFlavor(NPC, "", "", "shrug", 0, 0, Spawn, 0)
  74. end
  75. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  76. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  77. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  78. Dialog.AddOption("What is my house for?", "Dialog5")
  79. Dialog.AddOption("Nothing right now.")
  80. Dialog.Start()
  81. end
  82. function Dialog7(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. Dialog.New(NPC, Spawn)
  85. Dialog.AddDialog("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 may place it in that location, if it is highlighted red you cannot.")
  86. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper002.mp3", 1857367756, 71125254)
  87. Dialog.AddOption("What kind of housing is available to me?", "Dialog8")
  88. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  89. Dialog.AddOption("What is my house for?", "Dialog5")
  90. Dialog.AddOption("That's enough for now, thanks.")
  91. Dialog.Start()
  92. end
  93. function Dialog6(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. Dialog.New(NPC, Spawn)
  96. Dialog.AddDialog("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 Freeport. 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.")
  97. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper005.mp3", 2660278888, 1868873136)
  98. Dialog.AddOption("How do I sell items using my marketboard?", "Dialog4")
  99. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  100. Dialog.AddOption("What kind of housing is available to me?", "Dialog8")
  101. Dialog.AddOption("What is my house for?", "Dialog5")
  102. Dialog.AddOption("That's enough for now, thanks.")
  103. Dialog.Start()
  104. end
  105. function Dialog2(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. Dialog.New(NPC, Spawn)
  108. Dialog.AddDialog("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. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  110. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  111. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  112. Dialog.AddOption("That's enough for now, thanks.")
  113. Dialog.Start()
  114. end
  115. function Dialog4(NPC, Spawn)
  116. FaceTarget(NPC, Spawn)
  117. Dialog.New(NPC, Spawn)
  118. Dialog.AddDialog("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.")
  119. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper006.mp3", 2214886491, 395905537)
  120. Dialog.AddOption("I can sell things through a broker?", "Dialog2")
  121. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  122. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  123. Dialog.AddOption("What is my house for?", "Dialog5")
  124. Dialog.AddOption("That's enough for now, thanks.")
  125. Dialog.Start()
  126. end
  127. function Dialog5(NPC, Spawn)
  128. FaceTarget(NPC, Spawn)
  129. Dialog.New(NPC, Spawn)
  130. Dialog.AddDialog("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.")
  131. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper007.mp3", 2480708099, 1450070298)
  132. Dialog.AddOption("Anything else?")
  133. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  134. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  135. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  136. Dialog.AddOption("That's enough for now, thanks.")
  137. Dialog.Start()
  138. end
  139. function Dialog8(NPC, Spawn)
  140. FaceTarget(NPC, Spawn)
  141. Dialog.New(NPC, Spawn)
  142. Dialog.AddDialog("Many different kinds of housing are available in the city of Freeport. In reward for your services, the Overlord has awarded you a one bedroom house for free at this time.")
  143. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper003.mp3", 3512269476, 1166894802)
  144. Dialog.AddOption("Is any other housing available?", "Dialog10")
  145. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  146. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  147. Dialog.AddOption("What is my house for?", "Dialog5")
  148. Dialog.AddOption("That's enough for now, thanks.")
  149. Dialog.Start()
  150. end
  151. function Dialog10(NPC, Spawn)
  152. FaceTarget(NPC, Spawn)
  153. Dialog.New(NPC, Spawn)
  154. Dialog.AddDialog("Yes, the grand city of Freeport 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.")
  155. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper004.mp3", 1780122794, 3374523197)
  156. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  157. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  158. Dialog.AddOption("What is my house for?", "Dialog5")
  159. Dialog.AddOption("That’s enough for now, thanks.")
  160. Dialog.Start()
  161. end