9
3

InnkeepFrosthome.lua 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. 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. Dialog1(NPC, Spawn)
  19. end
  20. function Dialog1(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. Dialog.New(NPC, Spawn)
  23. 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?")
  24. Dialog.AddVoiceover("innkeeper_melus/fprt_hood04/innkeeper010.mp3", 328655352, 2391913046)
  25. Dialog.AddOption("Yes.", "Dialog9")
  26. Dialog.AddOption("No thanks.")
  27. Dialog.Start()
  28. end
  29. function Dialog9(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. Dialog.New(NPC, Spawn)
  32. Dialog.AddDialog("What would you like to know?")
  33. Dialog.AddVoiceover("innkeeper_melus/fprt_hood04/innkeeper001.mp3", 1649814488, 96870422)
  34. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  35. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  36. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  37. Dialog.AddOption("What is my house for?", "Dialog5")
  38. Dialog.AddOption("Nothing right now.")
  39. Dialog.Start()
  40. end
  41. function Dialog7(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. Dialog.New(NPC, Spawn)
  44. 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.")
  45. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper002.mp3", 1857367756, 71125254)
  46. Dialog.AddOption("What kind of housing is available to me?", "Dialog8")
  47. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  48. Dialog.AddOption("What is my house for?", "Dialog5")
  49. Dialog.AddOption("That's enough for now, thanks.")
  50. Dialog.Start()
  51. end
  52. function Dialog6(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. Dialog.New(NPC, Spawn)
  55. 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.")
  56. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper005.mp3", 2660278888, 1868873136)
  57. Dialog.AddOption("How do I sell items using my marketboard?", "Dialog4")
  58. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  59. Dialog.AddOption("What kind of housing is available to me?", "Dialog8")
  60. Dialog.AddOption("What is my house for?", "Dialog5")
  61. Dialog.AddOption("That's enough for now, thanks.")
  62. Dialog.Start()
  63. end
  64. function Dialog2(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. Dialog.New(NPC, Spawn)
  67. 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.")
  68. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  69. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  70. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  71. Dialog.AddOption("That’s enough for now, thanks.")
  72. Dialog.Start()
  73. end
  74. function Dialog4(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. Dialog.New(NPC, Spawn)
  77. 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.")
  78. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper006.mp3", 2214886491, 395905537)
  79. Dialog.AddOption("I can sell things through a broker?", "Dialog2")
  80. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  81. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  82. Dialog.AddOption("What is my house for?", "Dialog5")
  83. Dialog.AddOption("That's enough for now, thanks.")
  84. Dialog.Start()
  85. end
  86. function Dialog5(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. Dialog.New(NPC, Spawn)
  89. 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.")
  90. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper007.mp3", 2480708099, 1450070298)
  91. Dialog.AddOption("Anything else?")
  92. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  93. Dialog.AddOption("What kind of housing is available to me?", "Dialog10")
  94. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  95. Dialog.AddOption("That's enough for now, thanks.")
  96. Dialog.Start()
  97. end
  98. function Dialog8(NPC, Spawn)
  99. FaceTarget(NPC, Spawn)
  100. Dialog.New(NPC, Spawn)
  101. 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.")
  102. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper003.mp3", 3512269476, 1166894802)
  103. Dialog.AddOption("Is any other housing available?", "Dialog10")
  104. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  105. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  106. Dialog.AddOption("What is my house for?", "Dialog5")
  107. Dialog.AddOption("That's enough for now, thanks.")
  108. Dialog.Start()
  109. end
  110. function Dialog10(NPC, Spawn)
  111. FaceTarget(NPC, Spawn)
  112. Dialog.New(NPC, Spawn)
  113. 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.")
  114. Dialog.AddVoiceover("innkeeper_uglar_splinterthumb/fprt_hood04/innkeeper004.mp3", 1780122794, 3374523197)
  115. Dialog.AddOption("How can I place an item in my house?", "Dialog7")
  116. Dialog.AddOption("What is the marketboard for?", "Dialog6")
  117. Dialog.AddOption("What is my house for?", "Dialog5")
  118. Dialog.AddOption("That’s enough for now, thanks.")
  119. Dialog.Start()
  120. end