Advertisement
Guest User

Untitled

a guest
May 25th, 2020
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. local config = {
  2. -- Window Config
  3. mainTitleMsg = "Crafting System", -- Main window title
  4. mainMsg = "Welcome to the crafting system. Please choose a vocation to begin.", -- Main window message
  5.  
  6. craftTitle = "Crafting System: ", -- Title of the crafting screen after player picks of vocation
  7. craftMsg = "Here is a list of all items that can be crafted for the ", -- Message on the crafting screen after player picks of vocation
  8. -- End Window Config
  9.  
  10. -- Player Notifications Config
  11. needItems = "You do not have all the required items to make ", -- This is the message the player recieves if he does not have all required items
  12.  
  13. -- Crafting Config
  14. system = {
  15. [1] = {vocation = "Master Sorcerer", -- This is the category can be anything.
  16. items = {
  17. [1] = {item = "bandit wand", -- item name (THIS MUST BE EXACT OR IT WILL NOT WORK!)
  18. itemID = 13880, -- item to be made
  19. reqItems = { -- items and the amounts in order to craft.
  20. [1] = {item = 8303, count = 20}, -- Pirate Guts
  21. [2] = {item = 8309, count = 10}, -- Nails
  22. },
  23. },
  24. },
  25. },
  26.  
  27. [2] = {vocation= "Elder Druid",
  28. items = {
  29. [1] = {item = "bandit wand",
  30. itemID = 13880,
  31. reqItems = {
  32. [1] = {item = 8303, count = 20}, -- Pirate Guts
  33. [2] = {item = 8309, count = 10}, -- Nails
  34. },
  35. },
  36. },
  37. },
  38.  
  39. [3] = {vocation = "Royal Paladin",
  40. items = {
  41. [1] = {item = "bandit crossbow",
  42. itemID = 8853,
  43. reqItems = {
  44. [1] = {item = 8303, count = 20}, -- Pirate Guts
  45. [2] = {item = 8309, count = 10}, -- Nails
  46. },
  47. },
  48. },
  49. },
  50.  
  51. [4] = {vocation = "Elite Knight",
  52. items = {
  53. [1] = {item = "bandit sword",
  54. itemID = 2390,
  55. reqItems = {
  56. [1] = {item = 8303, count = 20}, -- Pirate Guts
  57. [2] = {item = 8309, count = 10}, -- Nails
  58. },
  59. },
  60. [2] = {item = "bandit axe",
  61. itemID = 2428,
  62. reqItems = {
  63. [1] = {item = 8303, count = 20}, -- Pirate Guts
  64. [2] = {item = 8309, count = 10}, -- Nails
  65. },
  66. },
  67. [3] = {item = "bandit club",
  68. itemID = 7415,
  69. reqItems = {
  70. [1] = {item = 8303, count = 20}, -- Pirate Guts
  71. [2] = {item = 8309, count = 10}, -- Nails
  72. },
  73. },
  74. },
  75. },
  76. },
  77. }
  78.  
  79. function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey)
  80. player:sendMainCraftWindow(config)
  81. return true
  82. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement