Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // CONFIG-03
- // WAGERING
- function bet_init(balance,minbet,use){
- data = lastBet[use]
- logic_is = "03"
- chance = randchance(4750,9500)/100
- basebet = balance/1e6
- if(basebet < minbet){basebet = minbet}
- preroll1 = 3
- prebet = basebet
- config_add = {
- 'basebet' : basebet,
- 'preroll1' : preroll1,
- 'base' : basebet * (95 / chance),
- 'prebet' : basebet,
- 'preroll' : preroll1,
- 'target' : balance * 2,
- 'initbalance' : balance,
- 'losslimit' : balance * 0.90,
- 'firstbet' : prebet,
- 'secondbet' : prebet,
- 'profitc' : 0,
- 'chance' : chance,
- 'nextbet' : prebet,
- 'bethigh' : false,
- 'ctlose' : 0,
- 'maxstreak' : 0,
- 'maxdrop' : 30,
- 'maxlose' : 0,
- 'target' : balance * 1.50,
- }
- config = {
- 'balance_start': balance,
- 'partialprofit': 0,
- 'minimum_bet' : minbet,
- 'bets' : 0,
- 'profit' : 0,
- 'currentprofit' : 0,
- 'currentstreak' : 0,
- 'winstreak' : 0,
- 'losestreak' : 0,
- 'previousbet' : basebet,
- 'balance_high' : 0,
- 'drop_value' : 0,
- 'wager' : 0,
- 'win' : false,
- 'balance' : balance,
- 'stopwin' : false,
- 'stopnow' : false,
- }
- if(lastBet.length > 1){
- $('#balance'+use).html('<span style="color:DodgerBlue;">'+balance.toFixed(8)+'</span>')
- $('#hid_balance'+use).val(balance)
- $('#logic'+use).html(logic_is)
- }
- config = Object.assign(config, config_add)
- data.config = config
- if(balance > 0){data.betroll = true}
- if(data.betroll){get_place_bet(data.coin,data.config.chance,data.config.nextbet,data.config.bethigh,use)}
- }
- function bet_dobet(use){
- data = lastBet[use]
- Object.keys(data.config).forEach(function(key){eval(key+" = "+data.config[key])})
- limitbet = currentstreak+preroll
- if (!win && previousbet > firstbet) {
- chance = chance
- secondbet = firstbet
- firstbet = previousbet
- } else {
- chance = randchance(4750,9500)/100
- }
- profitc += currentprofit
- if (profitc >= base) {
- profitc = 0
- firstbet = prebet
- secondbet = prebet
- nextbet = prebet
- preroll = preroll1
- base = prebet * preroll
- losslimit = balance * 0.90
- }
- if (losslimit > balance) {
- prebet = basebet * 2
- base = prebet * 2
- losslimit = balance * 0.90
- } else {
- prebet = basebet
- base = prebet * 2
- }
- if (balance > initbalance) {
- if (balance - initbalance == 0) {
- nextbet = prebet
- }
- if (balance - initbalance > 0) {
- nextbet = prebet
- }
- initbalance = balance
- firstbet = prebet
- secondbet = prebet
- }
- if (balance < initbalance) {
- if (initbalance - balance == prebet) {
- nextbet = prebet
- }
- if (initbalance - balance == prebet * 2) {
- nextbet = prebet
- }
- if (initbalance - balance > prebet * 2) {
- nextbet = firstbet+secondbet
- }
- if (win && initbalance > balance) {
- nextbet = previousbet
- }
- }
- if (!win && limitbet == 2) {
- nextbet = previousbet
- }
- if (nextbet < basebet){nextbet = basebet}
- if (nextbet < minimum_bet) { nextbet = minimum_bet }
- if (ctlose > maxstreak && maxstreak > 0 ){stopwin = true}
- if (balance > target && target > 0) { stopnow = true }
- if (balance < maxlose && maxlose > 0) {
- nextbet = minimum_bet
- stopnow = true
- }
- previousbet = nextbet
- Object.keys(data.config).forEach(function(key){data.config[key] = eval(key)})
- if(data.betroll){get_place_bet(data.coin,data.config.chance,data.config.nextbet,data.config.bethigh,use)}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement