View difference between Paste ID: 98W0Ex78 and 8AdHmsQX
SHOW: | | - or go back to the newest paste.
1
(main script)
2
 
3
var config = {
4
    msg: { type: 'noop', label: 'Created By HotAsian' },
5
};
6
 
7
var betArray = [1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192]; // 0 is skip and other is in Bits.
8
var cashArray =[2,2,2,2,2,2,2,2,2,2,2,2,2,2]; // must have 0 in same place as in betArray to cashout nicely.
9
 
10
var index = 0;
11
var bet = betArray[index];
12
var cashout = cashArray[index];
13
var roundCounter = 0;
14
 
15
var losestreak=0;
16
var maxLosestreak=6;
17
 
18
var skippedRounds=0;
19
var maxSkippedRounds=1000000;
20
 
21
var skipAfterGreen=0;
22
var maxFirstSkipAfterGreen=3;
23
var maxSkipAfterGreen = maxFirstSkipAfterGreen -1;
24
 
25
log('Welcome script is running...');
26
log('Your balance is...' + (userInfo.balance / 100) + ' bits');
27
log('Good Luck!');
28
 
29
 
30
// Main:
31
engine.on("GAME_STARTING", function() {
32
   
33
    if(losestreak<maxLosestreak){
34
        engine.bet(bet * 100, cashout);
35
    }else if (skipAfterGreen > maxSkipAfterGreen) {
36
        engine.bet(bet * 100, cashout);
37
        skipAfterGreen=0;
38
        losestreak=0;
39
} else {
40
        if(losestreak>=maxLosestreak){
41
           skippedRounds+=1;
42
           if(skippedRounds>=maxSkippedRounds){
43
             skippedRounds=0;
44
             losestreak=0;
45
           }
46
        }
47
        log('Skipping the Next Round');
48
    }
49
       
50
});
51
 
52
engine.on("GAME_ENDED", function() {
53
 
54
    var lastGame = engine.history.first();
55
 
56
   
57
    if (!lastGame.wager & roundCounter !== 0) {
58
        if(lastGame.bust >= cashout){
59
skipAfterGreen++;  
60
            log('The red streak ended, waiting for ' + maxFirstSkipAfterGreen + ' greens before betting. ' + skipAfterGreen);        
61
 
62
        }
63
       
64
        return;
65
    }
66
   
67
   
68
    if(!lastGame.cashedAt) {
69
            log('We lost.');
70
            index++;
71
            bet = betArray[index];
72
            cashout = cashArray[index];
73
            losestreak++;
74
roundCounter++;
75
           
76
        }
77
    else{
78
            log('We won.');
79
            index = 0;
80
            bet = betArray[index];
81
            losestreak = 0;
82
            cashout = cashArray[index];
83
     roundCounter++;
84
      }
85
   
86
 
87
   
88
});
89
 
90
 
91
 
92
 
93
(4x script)
94
 
95
 
96
 
97
var config = {
98
    baseBet: { value: '100', type: 'balance', label: 'Base Bet'},
99
    minBet: { value: '100', type: 'balance', label: 'Min Bet'},
100
    maxBet: { value: '1e8', type: 'balance', label: 'Max Bet'},
101
    protectBal: { value: '100000', type: 'balance', label: 'Protect Balance'},
102
};
103
 
104
var baseBet = config.baseBet.value/100;
105
var baseMultiplier = 4;
106
 
107
 
108
var minBet = config.minBet.value;
109
var maxBet = config.maxBet.value;
110
var protectBal = config.protectBal.value;
111
 
112
 
113
// DO NOT CHANGE
114
var currentBet = baseBet;
115
var currentMultiplier = baseMultiplier;
116
var currentMinBet = minBet;
117
var currentMaxBet = maxBet;
118
 
119
// LOCKERS
120
var betUnlock = true;
121
var putBet = currentBet;
122
var putMultiplier = currentMultiplier;
123
var OktoGo = true;
124
 
125
 
126
 
127
engine.on('GAME_STARTING', function() {
128
   
129
    if (userInfo.balance < protectBal) {
130
        stop('Script was Stopped due to balance is protected. balance is '+ userInfo.balance);
131
    }
132
   
133
    if (putBet >= currentMaxBet/100) {
134
        stop('Script was Stopped due to the bet size exceeded maximum allowed bet size');
135
    }
136
   
137
    if (putBet < currentMinBet/100) {
138
        stop('Script was Stopped due to the bet size is lower than allowed minimum bet size');
139
    }
140
   
141
    if (OktoGo && betUnlock){
142
        putBet = Math.round(putBet);
143
        engine.bet(parseInt(putBet*100), parseFloat(putMultiplier));
144
        log('You are ready to play! ');
145
        log('A bet will be placed:- Bet Size: '+ putBet +' Multiplier: '+ putMultiplier);
146
    }
147
   
148
});
149
 
150
engine.on('GAME_STARTED', function() {
151
    if (engine.getCurrentBet()){
152
        var cbet = engine.getCurrentBet();
153
        log('Game Started with '+ (cbet.wager/100) + ' * ' + cbet.payout+ 'x');
154
    } else {
155
        log('A bet did not placed!');
156
    }
157
});
158
 
159
engine.on('GAME_ENDED', function() {
160
   
161
    var lastGame = engine.history.first();
162
   
163
    log('Game crashed at '+ lastGame.bust);
164
   
165
    log('Last Game wagered at '+ (lastGame.wager)/100);
166
   
167
    if (lastGame.wager > 0){
168
        if (lastGame.cashedAt){
169
            putBet = currentBet;
170
            betUnlock = true;
171
            log('You Won the Last Game');
172
        } else {
173
            putBet = (putBet*1.3333) + (baseBet);
174
            betUnlock = true;
175
            log('You Lost the Last Game');
176
        }
177
    }
178
});
179
 
180
 
181
 
182
 
183
 
184
(10x script)
185
 
186
var config = {
187
    baseBet: { value: '100', type: 'balance', label: 'Base Bet'},
188
    minBet: { value: '100', type: 'balance', label: 'Min Bet'},
189
    maxBet: { value: '1e8', type: 'balance', label: 'Max Bet'},
190
    protectBal: { value: '100000', type: 'balance', label: 'Protect Balance'},
191
};
192
 
193
var baseBet = config.baseBet.value/100;
194
var baseMultiplier = 10;
195
 
196
 
197
var minBet = config.minBet.value;
198
var maxBet = config.maxBet.value;
199
var protectBal = config.protectBal.value;
200
 
201
 
202
// DO NOT CHANGE
203
var currentBet = baseBet;
204
var currentMultiplier = baseMultiplier;
205
var currentMinBet = minBet;
206
var currentMaxBet = maxBet;
207
 
208
// LOCKERS
209
var betUnlock = true;
210
var putBet = currentBet;
211
var putMultiplier = currentMultiplier;
212
var OktoGo = true;
213
 
214
 
215
 
216
engine.on('GAME_STARTING', function() {
217
   
218
    if (userInfo.balance < protectBal) {
219
        stop('Script was Stopped due to balance is protected. balance is '+ userInfo.balance);
220
    }
221
   
222
    if (putBet >= currentMaxBet/100) {
223
        stop('Script was Stopped due to the bet size exceeded maximum allowed bet size');
224
    }
225
   
226
    if (putBet < currentMinBet/100) {
227
        stop('Script was Stopped due to the bet size is lower than allowed minimum bet size');
228
    }
229
   
230
    if (OktoGo && betUnlock){
231
        putBet = Math.round(putBet);
232
        engine.bet(parseInt(putBet*100), parseFloat(putMultiplier));
233
        log('You are ready to play! ');
234
        log('A bet will be placed:- Bet Size: '+ putBet +' Multiplier: '+ putMultiplier);
235
    }
236
   
237
});
238
 
239
engine.on('GAME_STARTED', function() {
240
    if (engine.getCurrentBet()){
241
        var cbet = engine.getCurrentBet();
242
        log('Game Started with '+ (cbet.wager/100) + ' * ' + cbet.payout+ 'x');
243
    } else {
244
        log('A bet did not placed!');
245
    }
246
});
247
 
248
engine.on('GAME_ENDED', function() {
249
   
250
    var lastGame = engine.history.first();
251
   
252
    log('Game crashed at '+ lastGame.bust);
253
   
254
    log('Last Game wagered at '+ (lastGame.wager)/100);
255
   
256
    if (lastGame.wager > 0){
257
        if (lastGame.cashedAt){
258
            putBet = currentBet;
259
            betUnlock = true;
260
            log('You Won the Last Game');
261
        } else {
262
            putBet = (putBet*1.1111) + (baseBet);
263
            betUnlock = true;
264
            log('You Lost the Last Game');
265
        }
266
    }
267
});
268
 
269
 
270
 
271
 
272
(same as 1st script but no stop)
273
 
274
 
275
var config = {
276
    baseBet: { value: '100', type: 'balance', label: 'Base Bet'},
277
    minBet: { value: '100', type: 'balance', label: 'Min Bet'},
278
    maxBet: { value: '1e8', type: 'balance', label: 'Max Bet'},
279
    protectBal: { value: '100000', type: 'balance', label: 'Protect Balance'},
280
};
281
 
282
var baseBet = config.baseBet.value;
283
var baseMultiplier = 2;
284
 
285
var minBet = config.minBet.value;
286
var maxBet = config.maxBet.value;
287
var protectBal = config.protectBal.value;
288
 
289
 
290
// DO NOT CHANGE
291
var currentBet = baseBet;
292
var currentMultiplier = baseMultiplier;
293
var currentMinBet = minBet;
294
var currentMaxBet = maxBet;
295
 
296
// LOCKERS
297
var betUnlock = true;
298
var recoveryOn = false;
299
var OktoGo = true;
300
 
301
var putBet = currentBet;
302
var putMultiplier = currentMultiplier;
303
 
304
engine.on('GAME_STARTING', function() {
305
   
306
    if (userInfo.balance < protectBal) {
307
        stop('Script was Stopped due to balance is protected. balance is '+ userInfo.balance);
308
    }
309
    if (putBet >= currentMaxBet) {
310
        stop('Script was Stopped due to the bet size exceeded maximum allowed bet size');
311
    }
312
    if (putBet < currentMinBet) {
313
        stop('Script was Stopped due to the bet size is lower than allowed minimum bet size');
314
    }
315
   
316
    if (OktoGo && betUnlock){
317
        engine.bet(parseInt(putBet), parseFloat(putMultiplier));
318
        log('You are ready to play! ');
319
        log('A bet will be placed:- Bet Size: '+ putBet/100 +' Multiplier: '+ putMultiplier);
320
    }  
321
   
322
});
323
 
324
engine.on('GAME_STARTED', function() {
325
    if (engine.getCurrentBet()){
326
        var cbet = engine.getCurrentBet();
327
        log('Game Started with '+ (cbet.wager/100) + ' * ' + cbet.payout+ 'x');
328
    } else {
329
        log('A bet did not placed!');
330
    }
331
});
332
 
333
 
334
engine.on('GAME_ENDED', function() {
335
   
336
    var lastGame = engine.history.first();
337
   
338
    log('Game crashed at '+ lastGame.bust);
339
   
340
    log('Last Game wagered at '+ (lastGame.wager)/100);
341
   
342
    if (lastGame.wager > 0){
343
        if (lastGame.cashedAt){
344
            putBet = currentBet;
345
            recoveryOn = false;
346
            betUnlock = true;
347
            log('You Won the Last Game');
348
        } else {
349
            recoveryOn = true;
350
            log('You Lost the Last Game. Recovery Mode is Activated');
351
        }
352
    }
353
    if (recoveryOn && (lastGame.wager > 0) && lastGame.cashedAt == false){
354
        putBet *= 2;
355
        betUnlock = false;
356
        log('You are about to skip next game.');
357
    } else{
358
        betUnlock = true;
359
        log('Recovery Mode is Deactivated');
360
    }
361
});