Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddCSLuaFile()
- if SERVER then
- resource.AddWorkshop( "712302008" )
- end
- -- http://steamcommunity.com/sharedfiles/filedetails/?id=712302008 (add this to your server collection it is already added to the client files)
- -- IF YOUR METAL BARS FLOAT THEN YOU DID NOT DO THIS ^^^
- -- ATTENTION!!!!!! ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- -- If you do not do the above the ores and pickaxe will be errors~!
- -- YOU MUST USE THE Mining Locations WEAPON IN ORDER TO PLACE ROCK SPAWNS CORRECTLY
- -- IF YOU DONT WANT PLAYERS TO SPAWN REFINERIES AND CRAFTING TABLES (not Recomended) THEN PLACE THEM ON MAP AND USE COMMAND BELOW
- --[[ Console Commands
- mining_resaverocks = Resaves the position of all rocks on the map allowing you to move rocks that the tool does not position correctly (allows you to remove single rocks by simply removing a rock and then saving)
- mining_savenpc = Spawn a npc and position it then save it with this command
- mining_saverefineries = Save Refineries (Dont use if your players have spawned refineries as it saves ALL refineries)
- mining_savecraftingtables = Same as above but with crafting tables
- mining_clearorebag PLAYERS64BITSTEAMID! = Clears the player's orebag who matches the 64bit steamid provided
- ]]--
- SMS.PickDamage = 0 -- How much damage the pickaxe does to npcs and players
- --REMOVED ADD TO EACH ORE ----------- SMS.RefinedValueMult = 1.7 -- How much more can you sell refined ore for compaired to raw ore (1.7 is 70% more then raw)
- SMS.GiveOrebagOnSpawn = true -- Should players spawn with the orebag (recomended as the orebag saves and you only need one to drop the ores)
- SMS.MaxDroppedRocks = 10 -- Maximum number of rocks a player can drop at one time
- SMS.OnlyOwnerRefinery = false -- Prevent all but the owner from using their refinery (do not use if you are using permanent refineries)
- -- Experiance gain using https://github.com/vrondakis/Leveling-System WILL ERROR IF YOU DONT HAVE THIS ADDON
- SMS.GiveXPForMining = false -- Should experiance be given when a rock is successfully mined?
- SMS.GiveXPForCrafting = false -- Should experiance be given when crafting an item?
- -- Translation
- SMS.Language = "english" -- Language, must be a file in lua/mining_languagefiles
- SMS.Currancy = "$"
- -----------Rock Types-----------
- SMSRocks["Copper"] = { -- Type of rock
- Color = Color(255,150,50), -- Color of rock
- Value = 10, -- How much you can sell raw material for
- Refinedmultiplier = 1.7, -- How much you can sell refined material for (multiplyer) NEW
- Difficulty = .60, -- How likely you are to get a rock on a single hit (1.0 will give you a rock every hit (max))
- XPReward = 1, -- How much experiance is rewarded for crafting?(You can leave out for 0 experiance)
- Smelttime = 3, -- How long does it take to refine ore? If 3 or nil the time will be 3 seconds
- MineRefined = false, -- Do you want this ore to not have to be refined?
- CustomRockModel = nil, -- "models/props/cs_militia/militiarock05.mdl" for a more round rock that you mine from
- CustomRawOreModel = nil, -- If you want the Raw ore to have a custom model put here (Keep it small or it messes with refinery view)
- CustomRefinedOreModel = nil,-- Same thing as above but with Refined Ore
- RefinedOreMaterial = nil, -- Material Overwrite for refined ore (if set nil then its shiny)
- RawOreMaterial = nil, -- Set to "models/shiny" for a shiny rock and ore
- }
- SMSRocks["Tin"] = {
- Color = Color(200,200,200),
- Value = 10,
- Refinedmultiplier = 1.7, ----- MUST BE HERE!@
- Difficulty = .60,
- XPReward = 5,
- }
- SMSRocks["Iron"] = {
- Color = Color(100,100,100),
- Value = 15,
- Refinedmultiplier = 1.7, ----- MUST BE HERE!@
- Difficulty = .20,
- XPReward = 2,
- }
- SMSRocks["Gold"] = {
- Color = Color(200,200,0),
- Value = 50,
- Refinedmultiplier = 1.7, ----- MUST BE HERE!@
- Difficulty = .05,
- XPReward = 5,
- RawOreMaterial = "models/shiny",
- }
- SMSRocks["Bronze"] = { -- this ore is not mineable (used for seconday recipees allowing for multi teir crafting) dont place rocks on map for this ore
- Color = Color(250,200,0),
- Value = 30,
- Refinedmultiplier = 1.7, ----- MUST BE HERE!@
- Difficulty = 0,
- XPReward = 5,
- }
- -- RECIPES -- Add and create recipes for the crafting table (uses refined ore)
- -- Weapons
- SMS.Recipes["lockpick"] = { -- Classname
- displayname = "Lockpick", -- Display name
- model = "models/weapons/w_crowbar.mdl", -- Model to display
- needed = {Iron = 2}, -- Ore Needed, (be sure to give it the same capitalization as you did above)
- Type = "weapon", -- Can be "weapon", "rawore", or "refinedore"
- SortOrder = 1, -- Order it appears in crafting table
- XPReward = 1, -- How much experiance is rewarded for crafting?(You can leave out for 0 experiance)
- RankRestrict = {} -- Restricted ULX Rank. Leave blank if you do not use ulx!,Leave RankRestrict blank if you dont want to restrict to a rank
- }
- SMS.Recipes["huntstk"] = { -- hl2 crossbow
- displayname = "Huntsman",
- model = "models/weapons/w_huntpln.mdl",
- needed = {Iron = 4},
- Type = "weapon",
- SortOrder = 2,
- XPReward = 5,
- }
- SMS.Recipes["weapon_vape"] = { -- hl2 crossbow bolts
- displayname = "Vape",
- model = "models/swamponions/vape.mdl",
- needed = {Iron = 3, Gold = 1},
- Type = "weapon",
- SortOrder = 3,
- XPReward = 3,
- }
- SMS.Recipes["huntcam"] = { -- hl2 crossbow bolts
- displayname = "Huntsman Boreal Forest",
- model = "models/weapons/w_huntcam.mdl",
- needed = {Iron = 3, Bronze = 1},
- Type = "weapon",
- SortOrder = 4,
- XPReward = 3,
- }
- SMS.Recipes["Bronze"] = { -- This is the oretype if Type = "refinedore",
- displayname = "Bronze Bar",
- model = "models/mining/metalbar.mdl",
- needed = {Copper = 1, Tin = 1},
- Type = "refinedore",
- SortOrder = 5,
- XPReward = 5,
- }
- ------- Do Not Edit Below Line--------
- SMS.LangTab = {}
- include("mining_languagefiles/"..string.lower(SMS.Language)..".lua")
- AddCSLuaFile("mining_languagefiles/"..string.lower(SMS.Language)..".lua")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement