9
3

InnkeeperMelus.lua 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/InnkeeperMelus.lua
  3. Script Purpose : Innkeeper Melus
  4. Script Author : Dorbin
  5. Script Date : 2022.07.18
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 7, "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, "", "", "hello", 2131223265, 1605898906, Spawn)
  19. elseif GetFactionAmount(Spawn,12) <=0 then
  20. FaceTarget(NPC, Spawn)
  21. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/innkeeper/darkelf_innkeeper_service_evil_1_notcitizen_gm_85c35337.mp3", "We don't serve your pathetic kind here. Get out of my sight!", "heckno", 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, "voiceover/english/darkelf_eco_evil_1/ft/service/innkeeper/darkelf_innkeeper_service_evil_1_notcitizen_gm_85c35337.mp3", "We don't serve your pathetic kind here. Get out of my sight!", "heckno", 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/darkelf_eco_evil_1/ft/service/innkeeper/darkelf_innkeeper_service_evil_1_hail_gm_252bf582.mp3", "Room rates are by the night not by the hour!", "scold", 1428065610, 3259602252, Spawn, 0)
  37. elseif choice == 2 then
  38. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/innkeeper/darkelf_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! ", "stare", 2206861027, 3893730348, Spawn, 0)
  39. elseif choice == 3 then
  40. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/innkeeper/darkelf_innkeeper_service_evil_1_hail_gm_c58b0e.mp3", "What! What do you want?", "boggle", 1358705787, 1083758044, Spawn, 0)
  41. elseif choice == 4 then
  42. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/innkeeper/darkelf_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", 2253071510, 109270441, 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,3)
  58. if choice == 1 then
  59. Dialog.AddDialog("Room rates are by the night not by the hour!")
  60. Dialog.AddVoiceover("voiceover/english/human_eco_evil_1/ft/service/innkeeper/human_innkeeper_service_evil_1_hail_gm_252bf582.mp3", 925112517, 1550850765)
  61. PlayFlavor(NPC, "", "", "scold", 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/human_eco_evil_1/ft/service/innkeeper/human_innkeeper_service_evil_1_hail_gm_a81dfaee.mp3", 575045448, 3537343785)
  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/human_eco_evil_1/ft/service/innkeeper/human_innkeeper_service_evil_1_hail_gm_c58b0e.mp3", 1602010016, 1978444643)
  69. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn, 0)
  70. end
  71. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  72. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  73. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  74. Dialog.AddOption("What is my house for?", "Dialog5")
  75. Dialog.AddOption("Nothing right now.")
  76. Dialog.Start()
  77. end
  78. function Dialog7(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. Dialog.New(NPC, Spawn)
  81. 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.")
  82. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper002.mp3", 1857367756, 71125254)
  83. Dialog.AddOption("What kind of housing is available to me?", "Dialog8")
  84. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  85. Dialog.AddOption("What is my house for?", "Dialog5")
  86. Dialog.AddOption("That's enough for now, thanks.")
  87. Dialog.Start()
  88. end
  89. function Dialog6(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. Dialog.New(NPC, Spawn)
  92. 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.")
  93. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper005.mp3", 2660278888, 1868873136)
  94. Dialog.AddOption("How do I sell items using my marketboard?", "Dialog4")
  95. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  96. Dialog.AddOption("What kind of housing is available to me?", "Dialog8")
  97. Dialog.AddOption("What is my house for?", "Dialog5")
  98. Dialog.AddOption("That's enough for now, thanks.")
  99. Dialog.Start()
  100. end
  101. function Dialog2(NPC, Spawn)
  102. FaceTarget(NPC, Spawn)
  103. Dialog.New(NPC, Spawn)
  104. 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.")
  105. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  106. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  107. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  108. Dialog.AddOption("That's enough for now, thanks.")
  109. Dialog.Start()
  110. end
  111. function Dialog4(NPC, Spawn)
  112. FaceTarget(NPC, Spawn)
  113. Dialog.New(NPC, Spawn)
  114. 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.")
  115. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper006.mp3", 2214886491, 395905537)
  116. Dialog.AddOption("I can sell things through a broker?", "Dialog2")
  117. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  118. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  119. Dialog.AddOption("What is my house for?", "Dialog5")
  120. Dialog.AddOption("That's enough for now, thanks.")
  121. Dialog.Start()
  122. end
  123. function Dialog5(NPC, Spawn)
  124. FaceTarget(NPC, Spawn)
  125. Dialog.New(NPC, Spawn)
  126. 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.")
  127. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper007.mp3", 2480708099, 1450070298)
  128. Dialog.AddOption("Anything else?")
  129. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  130. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  131. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  132. Dialog.AddOption("That's enough for now, thanks.")
  133. Dialog.Start()
  134. end
  135. function Dialog8(NPC, Spawn)
  136. FaceTarget(NPC, Spawn)
  137. Dialog.New(NPC, Spawn)
  138. 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.")
  139. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper003.mp3", 3512269476, 1166894802)
  140. Dialog.AddOption("Is any other housing available?", "Dialog10")
  141. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  142. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  143. Dialog.AddOption("What is my house for?", "Dialog5")
  144. Dialog.AddOption("That's enough for now, thanks.")
  145. Dialog.Start()
  146. end
  147. function Dialog10(NPC, Spawn)
  148. FaceTarget(NPC, Spawn)
  149. Dialog.New(NPC, Spawn)
  150. 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.")
  151. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper004.mp3", 1780122794, 3374523197)
  152. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  153. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  154. Dialog.AddOption("What is my house for?", "Dialog5")
  155. Dialog.AddOption("That’s enough for now, thanks.")
  156. Dialog.Start()
  157. end