Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.92 KB | None | 0 0
  1. GUNCRAFT = GUNCRAFT or {}
  2.  
  3. GUNCRAFT.config = GUNCRAFT.config or {}
  4.  
  5. --[[-------------------------------------------------------------------------
  6. GUNCRAFT CONFIG
  7. NOTE: This is a pre-made configuration for M9K weapons. Please replace the content of the "guncraft_config.lua" file with the contents of this file, if you plan to use M9K weapons with the configuration below:
  8. ---------------------------------------------------------------------------]]
  9.  
  10. -- Set to "true" to enable development/debugging commands and options: (should be "false" for any active server)
  11. GUNCRAFT.config.devmode = false
  12. -- Default: false
  13.  
  14. -- The price of the weapon workbench:
  15. GUNCRAFT.config.workbenchPrice = 500
  16. -- Default: 500
  17.  
  18. -- Whether players are allowed to sell their workbench from the workbench menu:
  19. GUNCRAFT.config.allowBenchSelling = true
  20. -- Set to "true" to allow selling and "false" to restrict selling.
  21.  
  22. -- Whether workbenches can or cannot be frozen using the workbench menu:
  23. GUNCRAFT.config.allowBenchFreezing = true
  24. -- Set to "true" to allow freezing and "false" to restrict freezing.
  25.  
  26. -- The cost of 1 material:
  27. GUNCRAFT.config.materialPrice = 8
  28. -- Default: 8
  29.  
  30. -- The amount of money you get for selling 1 material:
  31. GUNCRAFT.config.materialResell = 5
  32. -- Default = GUNCRAFT.config.materialPrice minus a few bucks.
  33.  
  34. -- The delay (in seconds) players have to wait between material purchasing:
  35. GUNCRAFT.config.buyDelay = 600
  36. GUNCRAFT.config.buyDelayDonator = 480
  37.  
  38. -- The minimum amount of materials a player can buy at a time:
  39. GUNCRAFT.config.minBuy = 25
  40.  
  41. -- The maximim amount of materials a player can buy at a time:
  42. GUNCRAFT.config.maxBuy = 5000
  43. GUNCRAFT.config.maxBuyDonator = 7500
  44.  
  45. -- The in-game name of the team that is able to use guncraft (gundealers):
  46. GUNCRAFT.config.gunTeam = "Gun Dealer"
  47. -- Default: "Gun Dealer"
  48.  
  49. -- The ULX usergroups who should be considered donators:
  50. GUNCRAFT.donatorRanks = {
  51.     "superadmin",
  52.     "developer",
  53.     "donator",
  54.     "vip",
  55.     "gold",
  56.     "gold_member",
  57. }
  58.  
  59. -- The minimum ULX rank that is required to perform fundamental changes to Guncraft (e.g. change the NPC position)
  60. GUNCRAFT.superRank = "superadmin"
  61. -- Default: Superadmin/Owner and above.
  62.  
  63. -- It takes the following number multiplied by the weapon's craft-time to craft a shipment of that weapon:
  64. GUNCRAFT.config.shipmentTimeMultiplier = 9.5
  65.  
  66. -- It costs the following number multiplied by the weapon's material-price to craft a shipment of that weapon:
  67. GUNCRAFT.config.shipmentPriceMultiplier = 9
  68.  
  69. -- Same idea as the two points above, just this time with the amount of experience points a player gets for crafting a shipment:
  70. GUNCRAFT.config.shipmentXPMultiplier = 7
  71.  
  72. -- The level (not amount of experience points) that is required for players to be able to craft shipment versions of weapons:
  73. GUNCRAFT.config.shipmentLevel = 5 --Level, not points
  74.  
  75. -- The chat command for checking how many materials you have:
  76. GUNCRAFT.config.materialChatCommand = "/materials"
  77. -- Default: "/materials"
  78.  
  79. -- The chat command for checking how much experience you have:
  80. GUNCRAFT.config.expChatCommand = "/experience"
  81. -- Default: "/experience"
  82.  
  83. -- The chat command for dropping a crate of materials:
  84. GUNCRAFT.config.dropMatsChatCommand = "/dropmaterials"
  85. -- Default: "/dropmaterials"
  86.  
  87. -- The different crafting-levels and the amount of experience points they require to reach: ( FORMAT: [<level>] = <experience> )
  88. -- NOTE: Changing this will most likely cause imbalance with Guncraft.
  89. GUNCRAFT.config.levels = {
  90.     [12] = 1000,
  91.     [11] = 600,
  92.     [10] = 400,
  93.     [9] = 300,
  94.     [8] = 275,
  95.     [7] = 150,
  96.     [6] = 120,
  97.     [5] = 90,
  98.     [4] = 60,
  99.     [3] = 40,
  100.     [2] = 20,
  101.     [1] = 0
  102. }
  103.  
  104. -- The table of weapons that players are able to craft, as well as all the information regarding the weapons:
  105. -- NOTE: All fields are required!
  106. -- NOTE: reqXP = required level (not experience points)
  107. -- NOTE: XP = amount of experience POINTS granted from crafting.
  108. -- NOTE: If you are not sure how to set this up, please watch this video: https://youtu.be/BtGmpI-kwd8
  109. GUNCRAFT.config.weapons = {
  110.     -- Pistols
  111.     [1]     = { name = "HK USP",                mats = 30,  class = "m9k_usp",              time = 3,   reqXP = 1,  XP = 3 },
  112.     [2]     = { name = "Colt 1911",             mats = 50,  class = "m9k_colt1911",         time = 3,   reqXP = 1,  XP = 3 },
  113.     [3]     = { name = "Desert Eagle",          mats = 130, class = "m9k_deagle",           time = 5,   reqXP = 3,  XP = 7 },
  114.     [4]     = { name = "S & W Model 3 Russian", mats = 150, class = "m9k_model3russian",    time = 5,   reqXP = 2,  XP = 7 },
  115.  
  116.     -- SMGs
  117.     [5]     = { name = "AAC Honey Badger",      mats = 200, class = "m9k_honeybadger",      time = 11,  reqXP = 6,  XP = 10 },
  118.     [6]     = { name = "HK MP5",                mats = 230, class = "m9k_mp5",              time = 8,   reqXP = 5,  XP = 10 },
  119.     [7]     = { name = "Tommy Gun",             mats = 260, class = "m9k_thompson",         time = 13,  reqXP = 4,  XP = 15 },
  120.     [8]     = { name = "KRISS Vector",          mats = 300, class = "m9k_vector",           time = 10,  reqXP = 5,  XP = 15 },
  121.     [9]     = { name = "UZI",                   mats = 300, class = "m9k_uzi",              time = 10,  reqXP = 4,  XP = 15 },
  122.  
  123.     -- Assault Rifles
  124.     [10]    = { name = "AK47",                  mats = 400, class = "m9k_ak47",             time = 15,  reqXP = 5,  XP = 20 },
  125.     [11]    = { name = "FN FAL",                mats = 500, class = "m9k_fal",              time = 20,  reqXP = 6,  XP = 25 },
  126.     [12]    = { name = "SCAR",                  mats = 600, class = "m9k_scar",             time = 20,  reqXP = 6,  XP = 25 },
  127.     [13]    = { name = "F2000",                 mats = 600, class = "m9k_f2000",            time = 20,  reqXP = 7,  XP = 25 },
  128.     [14]    = { name = "FAMAS",                 mats = 600, class = "m9k_famas",            time = 20,  reqXP = 11, XP = 25 },
  129.  
  130.     -- Shotguns
  131.     [15]    = { name = "Winchester 87",         mats = 250, class = "m9k_1887winchester",   time = 18,  reqXP = 7,  XP = 30 },
  132.     [16]    = { name = "Double Barrel",         mats = 300, class = "m9k_dbarrel",          time = 13,  reqXP = 12, XP = 30 },
  133.     [17]    = { name = "Mossberg 590",          mats = 350, class = "m9k_mossberg590",      time = 23,  reqXP = 8,  XP = 35 },
  134.     [18]    = { name = "Winchester Carbine",    mats = 350, class = "m9k_winchester73",     time = 23,  reqXP = 6,  XP = 35 },
  135.  
  136.     -- Snipers
  137.     [19]    = { name = "SVD Dragunov",          mats = 600, class = "m9k_dragunov",         time = 30,  reqXP = 9,  XP = 40 },
  138.     [20]    = { name = "SVT 40",                mats = 800, class = "m9k_svt40",            time = 35,  reqXP = 10, XP = 45 },
  139.     [21]    = { name = "M249 LMG",              mats = 800, class = "m9k_m249lmg",          time = 35,  reqXP = 11, XP = 60 }
  140. }
  141.  
  142. --[[
  143.  
  144. SQL CONFIGURATION BELOW
  145.  
  146. Please note: MySQL support is currently unavailable. Do NOT enable MySQL. This will be fixed in a future version.
  147.  
  148. ]]
  149.  
  150. GUNCRAFT.config.database = GUNCRAFT.config.database or {}
  151.  
  152. -- If you want to use MySQL with Guncraft, you need tmysql4: https://facepunch.com/showthread.php?t=1442438
  153.  
  154. -- Set to "true" to use MySQL for storing player data. (WARNING: Do NOT enable this unless you know what you are doing!)
  155. GUNCRAFT.config.database.enabled = false
  156. -- Default = "false"
  157.  
  158. -- The IP of the MySQL database.
  159. GUNCRAFT.config.database.host = "127.0.0.1"
  160.  
  161. -- The port for the MySQL database.
  162. GUNCRAFT.config.database.port = 3306
  163. -- Default: 3306
  164.  
  165. -- The username for the MySQL database.
  166. GUNCRAFT.config.database.user = "username"
  167.  
  168. -- The password for the MySQL database.
  169. GUNCRAFT.config.database.password = "password"
  170.  
  171. -- The name of the MySQL database where the data should be stored.
  172. GUNCRAFT.config.database.database = "database"
  173.  
  174. --[[-------------------------------------------------------------------------
  175. END OF CONFIG
  176. ---------------------------------------------------------------------------]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement