Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.11 KB | None | 0 0
  1. TierPrinters.Config = {}
  2.  
  3.  
  4. TierPrinters.Config.ChatPrefixColor = Color(200,180,200)
  5. TierPrinters.Config.ChatPrefix = "[Tier Printer]"
  6.  
  7. /*
  8. ===========
  9. Core system
  10. ===========
  11. This is for the basic config, setting amounts, times, ect..
  12. */
  13.  
  14. -- The time to wait between each print (In seconds)
  15. TierPrinters.Config.PrintTime = 60
  16.  
  17. -- How much health does the printer have? The higher it is, the longer it takes to destroy.
  18. TierPrinters.Config.Health = 500
  19.  
  20. -- Should the UI show the health left?
  21. TierPrinters.Config.ShowHealth = false
  22.  
  23. -- Can the entity be picked up with the Phys gun?
  24. TierPrinters.Config.PickUpAble = false
  25.  
  26. -- Can the entity be picked up with the Grav gun? HIGHLY recommended
  27. TierPrinters.Config.PickUpAbleGrav = true
  28.  
  29.  
  30. /*
  31. ==============
  32. Battery system
  33. ==============
  34. There is a built in battery system. There are a few options to allow you to do
  35. multiple things with it.
  36.  
  37. 1.) You can disable the battery system and have a basic tier printer, I don't
  38. suggest this because players can AFK print and it can crash eco.
  39. - If this is the case, set the next option to false and skip the battery config.
  40.  
  41. 2.) There is an option in the derma (UI) that allows you to recharge the battery
  42. and it's as simple as pressing a button. Great for a basic level battery system.
  43. - If this is the case, configure all of the battery config.
  44.  
  45. 3.) There is an entity based battery system. This involves the player spawning a
  46. battery and pressing it against the printer. This forces more actions/movement.
  47. - If this is the case, configure all of the battery config but disable BatteryUI
  48. */
  49.  
  50. -- Setting this to false will disable the battery system and allow it to print forever
  51. TierPrinters.Config.BatterySystem = true
  52.  
  53. -- Setting this to true will add a "Recharge" button in the UI, allowing for players to
  54. -- recharge the battery through a simple button.
  55. TierPrinters.Config.BatteryUI = false
  56.  
  57. -- If the above is true, how much should it cost to recharge the battery.
  58. TierPrinters.Config.BatteryPrice = 500
  59.  
  60. -- The time between the battery losing 1% (In seconds)
  61. TierPrinters.Config.BatteryTime = 8
  62.  
  63.  
  64. /*
  65. ============
  66. Sound System
  67. ============
  68. This is the settings for sound
  69. */
  70.  
  71. -- Should the printer produce sound
  72. TierPrinters.Config.SoundSystem = true
  73.  
  74. -- The sound to be played
  75. TierPrinters.Config.SoundDir = "ambient/levels/labs/equipment_printer_loop1.wav"
  76.  
  77.  
  78. /*
  79. ============
  80. Tier System
  81. ============
  82. This is the editing for anything to do with the tier
  83. */
  84.  
  85. -- Should the player be forced to buy 1 tier at a time? (Not recommended, pointless in reality)
  86. TierPrinters.Config.ForceNextTier = true
  87.  
  88. -- Can someone who doesn't own the printer upgrade tiers?
  89. TierPrinters.Config.AnyoneUpgrade = true
  90.  
  91. /*
  92. Adding tier is fairly straight forwards.
  93. [NUMBER] = {color = COLOR, price = PRICE, amount = AMOUNT, customCheck = CUSTOM}
  94.  
  95. NUMBER - This is the tier number, so if it was 4, itd be the fourth tier,
  96. make sure to not miss any numbers else you may encounter issues,
  97.  
  98. COLOR - This is the color of the tier, it is represented on the left hand
  99. side of the UI. I suggest keeping it a dark color.
  100.  
  101. PRICE - This is the price the player will be charged to upgrade to this tier.
  102.  
  103. AMOUNT - The amount that the printer will print each print period.
  104.  
  105. **Optional**
  106. CUSTOM - This is an option to run a custom function. Use this to restrict
  107. tiers to specific things. The example is user groups, however if you have
  108. the Lua knowledge, you can check it against anything.
  109.  
  110. LIMIT - The max amount the printer can hold.
  111. */
  112.  
  113. TierPrinters.Config.Tiers = {
  114.  
  115. [1] = {
  116. color = Color(255,255,255),
  117. price = 0, -- The price doesn't matter for the first tier, just keep it 0
  118. amount = 50
  119. },
  120. [2] = {
  121. color = Color(200,200,200),
  122. price = 100,
  123. amount = 100
  124. },
  125. [3] = {
  126. color = Color(150,150,150),
  127. price = 300,
  128. amount = 150
  129. },
  130. [4] = {
  131. color = Color(128,128,128),
  132. price = 500,
  133. amount = 250
  134. },
  135. [5] = {
  136. color = Color(100,100,100),
  137. price = 750,
  138. amount = 300,
  139. limit = 5000
  140. },
  141. [6] = {
  142. color = Color(80,80,80),
  143. price = 1000,
  144. amount = 450,
  145. limit = 10000
  146. },
  147. [7] = {
  148. color = Color(75,75,75),
  149. price = 1400,
  150. amount = 600,
  151. customCheck = function(ply) return table.HasValue({"vip", "vip+", "superadmin"}, ply:GetUserGroup()) end,
  152. limit = 55000
  153. },
  154. [8] = {
  155. color = Color(50,50,50),
  156. price = 2000,
  157. amount = 800,
  158. customCheck = function(ply) return table.HasValue({"vip", "vip+", "superadmin"}, ply:GetUserGroup()) end,
  159. limit = 65000
  160. },
  161. [9] = {
  162. color = Color(25,25,25),
  163. price = 4000,
  164. amount = 950,
  165. customCheck = function(ply) return table.HasValue({"vip+", "superadmin"}, ply:GetUserGroup()) end
  166. },
  167. [10] = {
  168. color = Color(0,0,0),
  169. price = 5000,
  170. amount = 1000,
  171. customCheck = function(ply) return table.HasValue({"superadmin"}, ply:GetUserGroup()) end
  172. },
  173.  
  174. }
  175.  
  176.  
  177. /*
  178. When adding the entities to F4, you can use these:
  179. DarkRP.createEntity("Printer", {
  180. ent = "tierp_printer",
  181. model = "models/freeman/money_printer.mdl",
  182. price = 10000,
  183. max = 2,
  184. cmd = "buytierprinter"
  185. })
  186.  
  187. -- !!ONLY ADD THIS IF YOU WANT PLAYERS TO BE ABLE TO RECHARGE THE BATTERY WITH THE ENTITY!!
  188. DarkRP.createEntity("Printer Battery", {
  189. ent = "tierp_battery",
  190. model = "models/freeman/giant_battery.mdl",
  191. price = 500,
  192. max = 2,
  193. cmd = "buytierbattery"
  194. })
  195.  
  196.  
  197. */
  198.  
  199.  
  200.  
  201. /*
  202. ================
  203. Language Options
  204. ================
  205. There isn't much text, so there's not much to config. But this just saves you having to go
  206. into core files. Much safer this way.
  207. */
  208.  
  209. TierPrinters.Config.Language = {}
  210. -- %i and %s are none static things. This could be anything from money to the printer owners name.
  211.  
  212. -- These are the lines for the identity of the printer in both the UI and on the external panel.
  213. TierPrinters.Config.Language.Identity1 = "%s's" -- The top line
  214. TierPrinters.Config.Language.Identity2 = "Imprimante d'argent" -- The 2nd line
  215.  
  216. -- These are the lines for the its current holding in both the UI and on the external panel.
  217. TierPrinters.Config.Language.CurrentHold1 = "Argent" -- The top line
  218. TierPrinters.Config.Language.CurrentHold2 = "$%s" -- The 2nd line
  219.  
  220. -- This is the big access button on the front of the external panel
  221. TierPrinters.Config.Language.Access = "ACCÈS"
  222.  
  223. -- These are the list of tiers on the right side of the UI
  224. TierPrinters.Config.Language.Tiers1 = "Tier %i" -- The top line
  225. TierPrinters.Config.Language.Tiers2 = "$%s" -- The 2nd line's unpurchased state
  226. TierPrinters.Config.Language.Tiers3 = "Purchased" -- The 2nd line's purchased state
  227.  
  228. -- This is the panel for health
  229. TierPrinters.Config.Language.Health1 = "Vie" -- The top line
  230. TierPrinters.Config.Language.Health2 = "%i%%" -- The 2nd line. %% = %
  231.  
  232. -- This is the panel for battery
  233. TierPrinters.Config.Language.Battery1 = "Batterie" -- The top line
  234. TierPrinters.Config.Language.Battery2 = "%i%%" -- The 2nd line. %% = %
  235.  
  236. -- This is the panel for recharge
  237. TierPrinters.Config.Language.Recharge1 = "Recharger" -- The top line
  238. TierPrinters.Config.Language.Recharge2 = "$%s" -- The 2nd line.
  239.  
  240. TierPrinters.Config.Language.Withdraw = "Withdraw" -- The top line
  241.  
  242. -- These are the chat noficiations
  243. TierPrinters.Config.Language.Destroyed = "Votre imprimante a été détruite!" -- For when the printer gets destroyed
  244. TierPrinters.Config.Language.ConfRecharge = "You have recharged the battery for $%i" -- For when you recharge the battery
  245. TierPrinters.Config.Language.ErrorOtherUpgrade = "Vous ne pouvez pas mettre à niveau les imprimantes d'autres personnes!" -- Informing that you cannot upgrade other peoples printers
  246. TierPrinters.Config.Language.ErrorStageUpgrade = "Vous ne pouvez mettre à niveau qu'un seul niveau à la fois" -- Informing of only being allowed to upgrade each tier one at a time
  247. TierPrinters.Config.Language.ErrorNoRequrirements = "Vous n'atteignez pas les exigences de ce niveau!" -- Informing of not reaching requirements for that tier
  248. TierPrinters.Config.Language.SuccessfulUpgrade = "Vous êtes passé au niveau supérieur %s pour $%i" -- Informing of upgrading to a new tier
  249. TierPrinters.Config.Language.FailureUpgrade = "Vous ne pouvez pas vous permettre de passer à ce niveau!" -- Informing of unable to upgrading to a new tier
  250. TierPrinters.Config.Language.TakingMoney = "Vous avez pris $%i" -- Informing of taking money
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement