InnkeeperMelus.lua 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/InnkeeperMelus.lua
  3. Script Purpose : Innkeeper Melus
  4. Script Author : torsten
  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. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. RandomGreeting(NPC, Spawn)
  16. end
  17. function RandomGreeting(NPC, Spawn)
  18. local choice = MakeRandomInt(1,2)
  19. if choice == 1 then
  20. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", 0, 0, Spawn)
  21. elseif choice == 2 then
  22. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", 0, 0, Spawn)
  23. end
  24. Dialog1(NPC, Spawn)
  25. end
  26. function Dialog1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. Dialog.New(NPC, Spawn)
  29. Dialog.AddDialog("Hello Gaikichi, 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?")
  30. Dialog.AddVoiceover("innkeeper_melus/fprt_hood04/innkeeper010.mp3", 328655352, 2391913046)
  31. Dialog.AddOption("Yes.", "Dialog9")
  32. Dialog.AddOption("No thanks.")
  33. Dialog.Start()
  34. end
  35. function Dialog9(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. Dialog.New(NPC, Spawn)
  38. Dialog.AddDialog("What would you like to know?")
  39. Dialog.AddVoiceover("innkeeper_melus/fprt_hood04/innkeeper001.mp3", 1649814488, 96870422)
  40. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  41. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  42. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  43. Dialog.AddOption("What is my house for?", "Dialog5")
  44. Dialog.AddOption("Nothing right now.")
  45. Dialog.Start()
  46. end
  47. function Dialog7(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. 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.")
  51. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper002.mp3", 1857367756, 71125254)
  52. Dialog.AddOption("What kind of housing is available to me?", "Dialog8")
  53. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  54. Dialog.AddOption("What is my house for?", "Dialog5")
  55. Dialog.AddOption("That's enough for now, thanks.")
  56. Dialog.Start()
  57. end
  58. function Dialog6(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. Dialog.New(NPC, Spawn)
  61. 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.")
  62. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper005.mp3", 2660278888, 1868873136)
  63. Dialog.AddOption("How do I sell items using my marketboard?", "Dialog4")
  64. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  65. Dialog.AddOption("What kind of housing is available to me?", "Dialog8")
  66. Dialog.AddOption("What is my house for?", "Dialog5")
  67. Dialog.AddOption("That's enough for now, thanks.")
  68. Dialog.Start()
  69. end
  70. function Dialog2(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. Dialog.New(NPC, Spawn)
  73. 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.")
  74. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  75. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  76. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  77. Dialog.AddOption("That’s enough for now, thanks.")
  78. Dialog.Start()
  79. end
  80. function Dialog4(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. Dialog.New(NPC, Spawn)
  83. 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.")
  84. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper006.mp3", 2214886491, 395905537)
  85. Dialog.AddOption("I can sell things through a broker?", "Dialog2")
  86. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  87. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  88. Dialog.AddOption("What is my house for?", "Dialog5")
  89. Dialog.AddOption("That's enough for now, thanks.")
  90. Dialog.Start()
  91. end
  92. function Dialog5(NPC, Spawn)
  93. FaceTarget(NPC, Spawn)
  94. Dialog.New(NPC, Spawn)
  95. 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.")
  96. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper007.mp3", 2480708099, 1450070298)
  97. Dialog.AddOption("Anything else?")
  98. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  99. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  100. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  101. Dialog.AddOption("That's enough for now, thanks.")
  102. Dialog.Start()
  103. end
  104. function Dialog8(NPC, Spawn)
  105. FaceTarget(NPC, Spawn)
  106. Dialog.New(NPC, Spawn)
  107. 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.")
  108. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper003.mp3", 3512269476, 1166894802)
  109. Dialog.AddOption("Is any other housing available?", "Dialog10")
  110. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  111. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  112. Dialog.AddOption("What is my house for?", "Dialog5")
  113. Dialog.AddOption("That's enough for now, thanks.")
  114. Dialog.Start()
  115. end
  116. function Dialog10(NPC, Spawn)
  117. FaceTarget(NPC, Spawn)
  118. Dialog.New(NPC, Spawn)
  119. 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.")
  120. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper004.mp3", 1780122794, 3374523197)
  121. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  122. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  123. Dialog.AddOption("What is my house for?", "Dialog5")
  124. Dialog.AddOption("That’s enough for now, thanks.")
  125. Dialog.Start()
  126. end