9
3

InnkeeperMillbanks.lua 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/InnkeeperMillbanks.lua
  3. Script Purpose : Innkeeper Millbanks <Housing>
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 6, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. if math.random(1, 100) <= 40 then
  16. local choice = MakeRandomInt(1, 5)
  17. FaceTarget(NPC, Spawn)
  18. if choice == 1 then
  19. FaceTarget(NPC, Spawn)
  20. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/service/innkeeper/halfling_innkeeper_service_good_1_aoi_gf_c2a5eef.mp3", "Welcome to the inn adventurer. Oh, you look absolutely exhausted! Here, let us take your things.", "hello", 802075416,1803478247, Spawn)
  21. elseif choice == 2 then
  22. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/service/innkeeper/halfling_innkeeper_service_good_1_hail_gf_dc02003d.mp3", "Good day to you, adventurer. Can I fix you up something to eat?", "hello", 173307143, 4294697063, Spawn)
  23. elseif choice == 3 then
  24. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/service/innkeeper/halfling_innkeeper_service_good_1_hail_gf_f9f93f86.mp3", "Many adventurers fresh from the road head straight in to have a hot bath. Shall I prepare one for you?", "", 2040013753, 171634937, Spawn)
  25. elseif choice == 4 then
  26. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/service/innkeeper/halfling_innkeeper_service_good_1_hail_gf_b9a44b08.mp3", "Hello there! Will you be needing a room for the evening?", "hello", 947325689, 1034329857, Spawn)
  27. else
  28. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/service/innkeeper/halfling_innkeeper_service_good_1_hail_gf_ff8f2e0b.mp3", "Is there something I can get for you? Do you need extra towels or a new set of sheets?", "agree", 3981950684, 2391018901, Spawn)
  29. end
  30. end
  31. end
  32. function hailed(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. PlayFlavor(NPC, "innkeeper_millbanks/qey_village06/innkeeper010.mp3", "", "", 3433721579, 62806591, Spawn)
  36. --PlayFlavor(NPC, "voiceover/english/innkeeper_millbanks/qey_village06/innkeeper010.mp3", "", "", 3433721579, 62806591, Spawn)
  37. AddConversationOption(conversation, "Yes, please.", "dlg_2_1")
  38. AddConversationOption(conversation, "Not right now, thanks.")
  39. 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?")
  40. end
  41. function dlg_2_1(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayFlavor(NPC, "innkeeper_millbanks/qey_village06/innkeeper001.mp3", "", "", 4001228290, 3829134373, Spawn)
  45. AddConversationOption(conversation, "What can I use my house for?", "dlg_2_3")
  46. AddConversationOption(conversation, "How do I place furniture in my home?", "dlg_2_2")
  47. AddConversationOption(conversation, "How do I sell items using my marketboard?", "dlg_2_5")
  48. AddConversationOption(conversation, "Are there other places I can live in the city?", "dlg_2_4")
  49. AddConversationOption(conversation, "Nevermind for right now, thanks.")
  50. StartConversation(conversation, NPC, Spawn, "What would you like to know?")
  51. end
  52. function dlg_2_2(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. -- PlayFlavor(NPC, "innkeeper_uglar_splinterthumb/qey_village06/innkeeper002.mp3", "", "", 3750108879, 603350042, Spawn)
  56. AddConversationOption(conversation, "What can I use my house for?", "dlg_2_3")
  57. AddConversationOption(conversation, "How do I sell items using my marketboard?", "dlg_2_5")
  58. AddConversationOption(conversation, "Is this the only place I can live in the city?", "dlg_2_4")
  59. AddConversationOption(conversation, "That's enough for now, thanks.")
  60. 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 may place it in that location, if it is highlighted red you cannot.")
  61. end
  62. function dlg_2_3(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. -- PlayFlavor(NPC, "innkeeper_uglar_splinterthumb/qey_village06/innkeeper007.mp3", "", "", 1015751749, 2650517021, Spawn)
  66. AddConversationOption(conversation, "How do I place furniture in my home?", "dlg_2_2")
  67. AddConversationOption(conversation, "How do I sell items using my marketboard?", "dlg_2_5")
  68. AddConversationOption(conversation, "Is this the only place I can live in the city?", "dlg_2_4")
  69. AddConversationOption(conversation, "That's enough for now, thanks.")
  70. 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.")
  71. end
  72. function dlg_2_4(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. conversation = CreateConversation()
  75. --PlayFlavor(NPC, "innkeeper_uglar_splinterthumb/qey_village06/innkeeper003.mp3", "", "", 3477497917, 3032281679, Spawn)
  76. AddConversationOption(conversation, "What can I use my house for?", "dlg_2_3")
  77. AddConversationOption(conversation, "How do I sell items using my marketboard?", "dlg_2_5")
  78. AddConversationOption(conversation, "How do I place furniture in my home?", "dlg_2_2")
  79. AddConversationOption(conversation, "That's enough for now, thanks.")
  80. 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.")
  81. end
  82. function dlg_2_5(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85. AddConversationOption(conversation, "What can I use my house for?", "dlg_2_3")
  86. AddConversationOption(conversation, "How do I place furniture in my home?", "dlg_2_2")
  87. AddConversationOption(conversation, "Are there other places I can live in the city?", "dlg_2_4")
  88. AddConversationOption(conversation, "That's enough for now, thanks.")
  89. 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.")
  90. end