Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.04 KB | None | 0 0
  1. AddCSLuaFile()
  2.  
  3. if SERVER then
  4. resource.AddWorkshop( "712302008" )
  5. end
  6.  
  7. -- http://steamcommunity.com/sharedfiles/filedetails/?id=712302008 (add this to your server collection it is already added to the client files)
  8. -- IF YOUR METAL BARS FLOAT THEN YOU DID NOT DO THIS ^^^
  9. -- ATTENTION!!!!!! ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  10. -- If you do not do the above the ores and pickaxe will be errors~!
  11.  
  12.  
  13. -- YOU MUST USE THE Mining Locations WEAPON IN ORDER TO PLACE ROCK SPAWNS CORRECTLY
  14. -- IF YOU DONT WANT PLAYERS TO SPAWN REFINERIES AND CRAFTING TABLES (not Recomended) THEN PLACE THEM ON MAP AND USE COMMAND BELOW
  15.  
  16.  
  17. --[[ Console Commands
  18.  
  19. 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)
  20. mining_savenpc = Spawn a npc and position it then save it with this command
  21. mining_saverefineries = Save Refineries (Dont use if your players have spawned refineries as it saves ALL refineries)
  22. mining_savecraftingtables = Same as above but with crafting tables
  23. mining_clearorebag PLAYERS64BITSTEAMID! = Clears the player's orebag who matches the 64bit steamid provided
  24. ]]--
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31. SMS.PickDamage = 0 -- How much damage the pickaxe does to npcs and players
  32. --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)
  33. SMS.GiveOrebagOnSpawn = true -- Should players spawn with the orebag (recomended as the orebag saves and you only need one to drop the ores)
  34. SMS.MaxDroppedRocks = 10 -- Maximum number of rocks a player can drop at one time
  35. SMS.OnlyOwnerRefinery = false -- Prevent all but the owner from using their refinery (do not use if you are using permanent refineries)
  36.  
  37. -- Experiance gain using https://github.com/vrondakis/Leveling-System WILL ERROR IF YOU DONT HAVE THIS ADDON
  38. SMS.GiveXPForMining = false -- Should experiance be given when a rock is successfully mined?
  39. SMS.GiveXPForCrafting = false -- Should experiance be given when crafting an item?
  40.  
  41.  
  42.  
  43. -- Translation
  44. SMS.Language = "english" -- Language, must be a file in lua/mining_languagefiles
  45. SMS.Currancy = "$"
  46.  
  47.  
  48.  
  49.  
  50. -----------Rock Types-----------
  51. SMSRocks["Copper"] = { -- Type of rock
  52. Color = Color(255,150,50), -- Color of rock
  53. Value = 10, -- How much you can sell raw material for
  54. Refinedmultiplier = 1.7, -- How much you can sell refined material for (multiplyer) NEW
  55. Difficulty = .60, -- How likely you are to get a rock on a single hit (1.0 will give you a rock every hit (max))
  56. XPReward = 1, -- How much experiance is rewarded for crafting?(You can leave out for 0 experiance)
  57. Smelttime = 3, -- How long does it take to refine ore? If 3 or nil the time will be 3 seconds
  58. MineRefined = false, -- Do you want this ore to not have to be refined?
  59. CustomRockModel = nil, -- "models/props/cs_militia/militiarock05.mdl" for a more round rock that you mine from
  60. CustomRawOreModel = nil, -- If you want the Raw ore to have a custom model put here (Keep it small or it messes with refinery view)
  61. CustomRefinedOreModel = nil,-- Same thing as above but with Refined Ore
  62. RefinedOreMaterial = nil, -- Material Overwrite for refined ore (if set nil then its shiny)
  63. RawOreMaterial = nil, -- Set to "models/shiny" for a shiny rock and ore
  64. }
  65.  
  66. SMSRocks["Tin"] = {
  67. Color = Color(200,200,200),
  68. Value = 10,
  69. Refinedmultiplier = 1.7, ----- MUST BE HERE!@
  70. Difficulty = .60,
  71. XPReward = 5,
  72. }
  73.  
  74. SMSRocks["Iron"] = {
  75. Color = Color(100,100,100),
  76. Value = 15,
  77. Refinedmultiplier = 1.7, ----- MUST BE HERE!@
  78. Difficulty = .20,
  79. XPReward = 2,
  80. }
  81.  
  82. SMSRocks["Gold"] = {
  83. Color = Color(200,200,0),
  84. Value = 50,
  85. Refinedmultiplier = 1.7, ----- MUST BE HERE!@
  86. Difficulty = .05,
  87. XPReward = 5,
  88. RawOreMaterial = "models/shiny",
  89. }
  90.  
  91.  
  92. SMSRocks["Bronze"] = { -- this ore is not mineable (used for seconday recipees allowing for multi teir crafting) dont place rocks on map for this ore
  93. Color = Color(250,200,0),
  94. Value = 30,
  95. Refinedmultiplier = 1.7, ----- MUST BE HERE!@
  96. Difficulty = 0,
  97. XPReward = 5,
  98. }
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105. -- RECIPES -- Add and create recipes for the crafting table (uses refined ore)
  106.  
  107.  
  108. -- Weapons
  109. SMS.Recipes["lockpick"] = { -- Classname
  110. displayname = "Lockpick", -- Display name
  111. model = "models/weapons/w_crowbar.mdl", -- Model to display
  112. needed = {Iron = 2}, -- Ore Needed, (be sure to give it the same capitalization as you did above)
  113. Type = "weapon", -- Can be "weapon", "rawore", or "refinedore"
  114. SortOrder = 1, -- Order it appears in crafting table
  115. XPReward = 1, -- How much experiance is rewarded for crafting?(You can leave out for 0 experiance)
  116. RankRestrict = {} -- Restricted ULX Rank. Leave blank if you do not use ulx!,Leave RankRestrict blank if you dont want to restrict to a rank
  117. }
  118.  
  119. SMS.Recipes["huntstk"] = { -- hl2 crossbow
  120. displayname = "Huntsman",
  121. model = "models/weapons/w_huntpln.mdl",
  122. needed = {Iron = 4},
  123. Type = "weapon",
  124. SortOrder = 2,
  125. XPReward = 5,
  126. }
  127.  
  128. SMS.Recipes["weapon_vape"] = { -- hl2 crossbow bolts
  129. displayname = "Vape",
  130. model = "models/swamponions/vape.mdl",
  131. needed = {Iron = 3, Gold = 1},
  132. Type = "weapon",
  133. SortOrder = 3,
  134. XPReward = 3,
  135. }
  136. SMS.Recipes["huntcam"] = { -- hl2 crossbow bolts
  137. displayname = "Huntsman Boreal Forest",
  138. model = "models/weapons/w_huntcam.mdl",
  139. needed = {Iron = 3, Bronze = 1},
  140. Type = "weapon",
  141. SortOrder = 4,
  142. XPReward = 3,
  143. }
  144.  
  145. SMS.Recipes["Bronze"] = { -- This is the oretype if Type = "refinedore",
  146. displayname = "Bronze Bar",
  147. model = "models/mining/metalbar.mdl",
  148. needed = {Copper = 1, Tin = 1},
  149. Type = "refinedore",
  150. SortOrder = 5,
  151. XPReward = 5,
  152. }
  153.  
  154.  
  155.  
  156.  
  157.  
  158. ------- Do Not Edit Below Line--------
  159. SMS.LangTab = {}
  160. include("mining_languagefiles/"..string.lower(SMS.Language)..".lua")
  161. AddCSLuaFile("mining_languagefiles/"..string.lower(SMS.Language)..".lua")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement