Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.19 KB | None | 0 0
  1. //IM AM NOT RESPONSIBLE IF THIS RUINS YOUR SERVERS ECONOMY.
  2. //BE SURE TO TEST IT AND MAKE SURE THAT YOU ARE HAPPY WITH THE ODDS OF WINNING
  3. //BEFORE USING IT ON YOUR SERVER!
  4.  
  5. //ALSO PLEASE PLEASE AFTER CONFIGURING THIS, DO NOT USE PERMA PROP ADDONS TO MAKE THE MACHINES PERMANENT
  6. //AS THIS WILL LIKELY BREAK IT. INSTEAD JUST PLACE THE MACHINES WHERE YOU WANT THEM AND TYP !saveslots
  7. //This will make them permanent, and it saves per map.
  8.  
  9. //MAKE SURE YOU HAVE ADDED THE WORKSHOP TO YOUR SERVER OR
  10. //IT WILL NOT WORK!!
  11. //http://steamcommunity.com/sharedfiles/filedetails/?id=843596994
  12.  
  13. WOL_CONFIG = {}
  14.  
  15. //This is the time in seconds that no one can use the machine after someone spins it
  16. //What this means is if you spin the machine, no one else can use it for at least 30 seconds after you finished using it
  17. //Its usefull to stop people from stealing other peoples machines.
  18. //You can set it to zero but I strongly recommend leaving this at this time.
  19. WOL_CONFIG.antiTheftTime = 30
  20.  
  21. //This is the price to increase the jackpot amount per spin.
  22. //You can set this to 0 to disable increacing it but I recommend you do
  23. //to keep excitment in players.
  24. WOL_CONFIG.jackpotIncreasePerSpin = 700
  25.  
  26. //This is the minimal amount the jackpot can reset to
  27. //The jackpot gets reset after someone wins it and it then set to a random number
  28. //between the minimum and maximum jackpot numbers.
  29. //Set them both to zero if you want to jackpot to start at 0
  30. WOL_CONFIG.jackpotResetMin = 2000000
  31. WOL_CONFIG.jackpotResetMax = 3000000 //2 mill is reasonable consider the rarity the jackpot should be.
  32.  
  33. //The amount it charges the user to per spin (It does not charge for the bonus spins as they are free)
  34. WOL_CONFIG.pricePerSpin = 700
  35.  
  36. //This is the icon used before displaying money, you can change this but its recomened to keep its leghnth to 1.
  37. //You can use anything like "P" for point shop or these common one ($, €, £)
  38. WOL_CONFIG.currencyIcon = "$"
  39.  
  40. //This is the chances of each item appearing on the reel
  41. //I tried my best to balance these but of course feel free to change them.
  42. //The chance has to be a whole number and is calculated by "tickets"
  43. //To work out the chance of S
  44. WOL_ITEM_CHANCE[1] = 1 //Bonus (WARNING, MAKING THIS TO HIGH WILL CRUSH YOUR ECONOMY AS PEOPLE CAN SPIN FOR THE JACKPOT MANY TIMES)
  45. WOL_ITEM_CHANCE[2] = 50 //Respberry
  46. WOL_ITEM_CHANCE[3] = 30 //Coins
  47. WOL_ITEM_CHANCE[4] = 10 //Diamond
  48. WOL_ITEM_CHANCE[5] = 60 //Bar Two
  49. WOL_ITEM_CHANCE[6] = 70 //Bar One
  50. WOL_ITEM_CHANCE[7] = 55 //Seven
  51. WOL_ITEM_CHANCE[8] = 65 //Nothing
  52.  
  53. //These are the payouts for each wining combination.
  54.  
  55. WOL_CONFIG.winning = {}
  56.  
  57. //Getting three bonus in a row (This includes 3 bonus spins too)
  58. WOL_CONFIG.winning.threeBonus = 25000
  59.  
  60. //Getting two bonus in a any position(This includes 3 bonus spins too)
  61. WOL_CONFIG.winning.twoBonus = 10000
  62.  
  63. //Getting one bonus in a any position(This includes 3 bonus spins too)
  64. WOL_CONFIG.winning.oneBonus = 5000
  65.  
  66. //Getting threE raspberrys in a row.
  67. WOL_CONFIG.winning.threeRaspberry = 7500
  68.  
  69. //Getting three coins in a row
  70. WOL_CONFIG.winning.threeCoins = 10000
  71.  
  72. //Getting two coins in a row
  73. WOL_CONFIG.winning.twoCoins = 5000
  74.  
  75. //Getting three diamonds in a row
  76. WOL_CONFIG.winning.threeDiamonds = 20000
  77.  
  78. //Getting two diamons in any place
  79. WOL_CONFIG.winning.twoDiamonds = 7500
  80.  
  81. //Getting one diamond in any place
  82. WOL_CONFIG.winning.oneDiamonds = 2000
  83.  
  84. //Getting three BAR2's in a row
  85. WOL_CONFIG.winning.threeBar2 = 3000
  86.  
  87. //Getting three BAR'S in a row
  88. WOL_CONFIG.winning.threeBar = 2000
  89.  
  90. //Getting three 7's in a row
  91. WOL_CONFIG.winning.threeSeven = 7500
  92.  
  93. //These are the items on the bonus wheel, DO NOT ADD OR REMOVE ANY
  94. //Only change the numbers.
  95. WOL_AddBonusItem(50000)
  96. WOL_AddBonusItem(55000)
  97. WOL_AddBonusItem(60000)
  98. WOL_AddBonusItem(65000)
  99. WOL_AddBonusItem(70000)
  100. WOL_AddBonusItem(75000)
  101. WOL_AddBonusItem(80000)
  102. WOL_AddBonusItem(85000)
  103. WOL_AddBonusItem(90000)
  104. WOL_AddBonusItem(95000)
  105. WOL_AddBonusItem(100000)
  106. WOL_AddBonusItem(150000)
  107. WOL_AddBonusItem(200000)
  108. WOL_AddBonusItem(250000)
  109. WOL_AddBonusItem(300000)
  110. WOL_AddBonusItem(500000)
  111. WOL_AddBonusItem(1000000)
  112. WOL_AddBonusItem(2000000)
  113. WOL_AddBonusItem(2500000)
  114.  
  115. //This is a list of ranks that can save machine places, using !saveslots
  116. WOL_CONFIG.allowedRanks = {
  117. "owner"
  118. }
  119.  
  120.  
  121. //ADVANCED
  122.  
  123. //If you want to change the currency it uses then you can do so with these two functions.
  124. //The first checks if the player has enough money and the second one takes the money and the third one gives the money
  125. //You can change what is inside of these functions incase you want to switch it to pointshop or a custom gamemode currency.
  126.  
  127. //Return try if yes, false if no
  128. WOL_CONFIG.onCheckIfCanAfford = function(ply, amount)
  129. return ply:canAfford(amount)
  130. end
  131.  
  132. //Take what ever currency you are using from the player
  133. WOL_CONFIG.onPlayerTakeMoney = function(ply, amount)
  134. ply:addMoney(amount * -1) //Convert it to a negative number as thats how darkrp works.
  135. end
  136.  
  137. //Add the money to the players bank for what ever currency you use.
  138. WOL_CONFIG.onPlayerAddMoney = function(ply, amount)
  139. ply:addMoney(amount)
  140. end
  141.  
  142. //Lastly I guess thanks for the purchase, it helps me so much! I hope you enjoy your addon!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement