InnkeeperBailyDowden.lua 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/InnkeeperBailyDowden.lua
  3. Script Purpose : Innkeeper Baily Dowden <Housing>
  4. Script Author : Scatman
  5. Script Date : 2009.08.12
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. PlayFlavor(NPC, "innkeeper_uglar_splinterthumb/qey_village01/innkeeper001.mp3", "", "", 3113863761, 2642679335, Spawn)
  17. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_26_1")
  18. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_26_7")
  19. AddConversationOption(conversation, "What is the marketboard for?", "dlg_26_2")
  20. AddConversationOption(conversation, "What is my house for?", "dlg_26_4")
  21. AddConversationOption(conversation, "Nothing right now.")
  22. StartConversation(conversation, NPC, Spawn, "Hello there " .. GetName(Spawn) .. ", what can I help you with?")
  23. end
  24. function dlg_26_1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. conversation = CreateConversation()
  27. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_26_7")
  28. AddConversationOption(conversation, "What is the marketboard for?", "dlg_26_2")
  29. AddConversationOption(conversation, "What is my house for?", "dlg_26_4")
  30. AddConversationOption(conversation, "That's enough for now, thanks.")
  31. 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.")
  32. end
  33. function dlg_26_2(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. AddConversationOption(conversation, "How do I sell items using my marketboard?")
  37. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_26_3")
  38. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_26_7")
  39. AddConversationOption(conversation, "What is my house for?", "dlg_26_4")
  40. AddConversationOption(conversation, "That’s enough for now, thanks.")
  41. 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.")
  42. end
  43. function dlg_26_3(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. AddConversationOption(conversation, "What kind of housing is available to me?","dlg_26_7")
  47. AddConversationOption(conversation, "What is the marketboard for?", "dlg_26_2")
  48. AddConversationOption(conversation, "What is my house for?", "dlg_26_4")
  49. AddConversationOption(conversation, "That's enough for now, thanks.")
  50. 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.")
  51. end
  52. function dlg_26_4(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. AddConversationOption(conversation, "Anything else?")
  56. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_26_1")
  57. AddConversationOption(conversation, "What kind of housing is available to me?", "dlg_26_7")
  58. AddConversationOption(conversation, "What is the marketboard for?", "dlg_26_2")
  59. AddConversationOption(conversation, "That's enough for now, thanks.")
  60. 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.")
  61. end
  62. function dlg_26_7(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. AddConversationOption(conversation, "Is any other housing available?")
  66. AddConversationOption(conversation, "How can I place an item in my house?", "dlg_26_1")
  67. AddConversationOption(conversation, "What is the marketboard for?", "dlg_26_2")
  68. AddConversationOption(conversation, "What is my house for?", "dlg_26_4")
  69. AddConversationOption(conversation, "That's enough for now, thanks.")
  70. 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.")
  71. end