View difference between Paste ID: Lak9g40w and id7nnWAG
SHOW: | | - or go back to the newest paste.
1
//Bustabit script Made by Supatreynikova
2
//please donate to: 3ExPJEktuXHsHtF7vYuK7H1SNaqY9LLzeE
3
4
var config = {
5
basebet: { value: 10000, type: 'balance', label: 'Base bet' },
6
payout: { value: 1.33, type: 'multiplier' },
7
increaseonloss: { value: 3.79, type: 'multiplier' ,label: 'Increase on Loss' },
8
decreaseonwin: { value: 2.79, type: 'multiplier' ,label: 'Decrease on Win' },
9
change: { value: 1.33, type: 'multiplier', label: 'Change payout to'},
10
limit: { value: 88888888, type: 'number' , label: ' If current bet >'}
11
};
12
13
14
log('Script is running..');
15
var currentbet = config.basebet.value;
16
var currentPayout = config.payout.value;
17
var onloss = config.increaseonloss.value;
18
var onwin = config.decreaseonwin.value;
19
var threshold = config.limit.value;
20
threshold=threshold*100
21
var startingBalance = userInfo.balance;
22
var BR = userInfo.balance;
23
var changepayout = config.change.value;
24
var roundprofit = 0;
25
var profit = 0;
26
var rd = 0;
27
28
29
30
31
32
engine.on('GAME_STARTING', onGameStarted);
33
engine.on('GAME_ENDED', onGameEnded);
34
35
function onGameStarted() {
36
engine.bet(roundBit(currentbet), currentPayout);
37
}
38
39
function onGameEnded() {
40
var lastGame = engine.history.first()
41
var currentBalance=userInfo.balance;
42
rd =(currentBalance- startingBalance)/100;
43
roundprofit+=rd;
44
startingBalance=currentBalance;
45
profit = (currentBalance-BR)/100
46
if(roundprofit>=0) roundprofit=0;
47
48
// If we wagered, it means we played
49
if (!lastGame.wager) {
50
return;
51
}
52
53
// we won..
54
if (lastGame.cashedAt) {
55
if(roundprofit < 0){
56
currentbet=Math.ceil(currentbet/onwin);
57
if(currentbet > threshold){
58
currentPayout=changepayout;
59
log('-------------------------')
60
log('WIN-Recovery mode, Currentbet*',onwin,'=',currentbet/100, 'bits | Profit:',profit,'bits | ',currentPayout,'x')
61
}
62
else{
63
currentPayout=config.payout.value;
64
log('-------------------------')
65
log('WIN-Recovery mode, Currentbet*',onwin,'=',currentbet/100, 'bits | Profit:',profit,'bits | ',currentPayout,'x')
66
}
67
68
}
69
else{
70
currentbet=config.basebet.value;
71
currentPayout=config.payout.value;
72
log('-------------------------')
73
log('WIN, Currentbet =',currentbet/100, 'bits | Profit:',profit,'bits | ',currentPayout,'x')
74
}
75
log('Round profit:', roundprofit,'bits')
76
} else {
77
currentbet=Math.round(currentbet*onloss);
78
if(currentbet > threshold){
79
currentPayout=changepayout;
80
log('-------------------------')
81
log('LOST, Currentbet*',onloss,'=',currentbet/100, 'bits | Profit:',profit,'bits | ',currentPayout,'x')
82
} else{
83
currentPayout=config.payout.value;
84
log('-------------------------')
85
log('LOST, Currentbet*',onloss,'=',currentbet/100, 'bits | Profit:',profit,'bits | ',currentPayout,'x')
86
}
87
log('Round profit:', roundprofit,'bits')
88
}
89
90
}
91
function roundBit(bet) {
92
return Math.round(bet / 100) * 100;
93
}