Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local config = {
- -- Window Config
- mainTitleMsg = "Crafting System", -- Main window title
- mainMsg = "Welcome to the crafting system. Please choose a vocation to begin.", -- Main window message
- craftTitle = "Crafting System: ", -- Title of the crafting screen after player picks of vocation
- craftMsg = "Here is a list of all items that can be crafted for the ", -- Message on the crafting screen after player picks of vocation
- -- End Window Config
- -- Player Notifications Config
- 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
- -- Crafting Config
- system = {
- [1] = {vocation = "Master Sorcerer", -- This is the category can be anything.
- items = {
- [1] = {item = "bandit wand", -- item name (THIS MUST BE EXACT OR IT WILL NOT WORK!)
- itemID = 13880, -- item to be made
- reqItems = { -- items and the amounts in order to craft.
- [1] = {item = 8303, count = 20}, -- Pirate Guts
- [2] = {item = 8309, count = 10}, -- Nails
- },
- },
- },
- },
- [2] = {vocation= "Elder Druid",
- items = {
- [1] = {item = "bandit wand",
- itemID = 13880,
- reqItems = {
- [1] = {item = 8303, count = 20}, -- Pirate Guts
- [2] = {item = 8309, count = 10}, -- Nails
- },
- },
- },
- },
- [3] = {vocation = "Royal Paladin",
- items = {
- [1] = {item = "bandit crossbow",
- itemID = 8853,
- reqItems = {
- [1] = {item = 8303, count = 20}, -- Pirate Guts
- [2] = {item = 8309, count = 10}, -- Nails
- },
- },
- },
- },
- [4] = {vocation = "Elite Knight",
- items = {
- [1] = {item = "bandit sword",
- itemID = 2390,
- reqItems = {
- [1] = {item = 8303, count = 20}, -- Pirate Guts
- [2] = {item = 8309, count = 10}, -- Nails
- },
- },
- [2] = {item = "bandit axe",
- itemID = 2428,
- reqItems = {
- [1] = {item = 8303, count = 20}, -- Pirate Guts
- [2] = {item = 8309, count = 10}, -- Nails
- },
- },
- [3] = {item = "bandit club",
- itemID = 7415,
- reqItems = {
- [1] = {item = 8303, count = 20}, -- Pirate Guts
- [2] = {item = 8309, count = 10}, -- Nails
- },
- },
- },
- },
- },
- }
- function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey)
- player:sendMainCraftWindow(config)
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement