Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////////////////////////////////////////
- //Simple Bot Example 2 //
- /////////////////////////////////////////
- //A slightly more advanced version with very few gui alterations.
- //Base Bet Settings//
- basebet =1; // Amount in satoshi
- basecondition ='<'; // '<' for under '>' for over
- winchance =0.01;// 49.5 has 2x payout...if your rolling under,
- //Other Settings////
- win_increment =0; //Increase bet by this amount(in satoshi) when you win.
- win_multiplier =1; //Multiply bet by this amount when you win.(1 is no change)
- win_reset =false;//If true when you win bet amount goes back to base bet.
- loss_increment =0; //Increase bet by this amount(in satoshi) when you lose.
- loss_multiplier=1; //Multiply bet by this amount when you lose.(1 is no change)
- loss_reset =false;//If true when you lose bet amount goes back to base bet.
- min_wager =0; //Bet will never go lower then this.(satoshi)
- max_wager =10000;//Bet will never go higher then this.(satoshi)
- roll_remaining =true; //When true if your balance is too low to make a bet then you bet what you have left.
- betspeed =500; // 1000 = 1 second, this is still limited by server speed.
- //Assign Base Values////
- truebet=basebet;truecondition=basecondition;pause=false;balance=0;
- ////////////////////////
- setInterval(function (){
- if(pause===false){
- $('.btn__text.select div').html("<button style='background-color:green' onclick='pause=!pause;'>Pause Bot</button><br>"+"<button onclick='truebet++;')>+</button><button onclick='truebet--;')>-</button>Bet:"+Math.floor(truebet)+"<br>"+"Balance:"+(balance / 100000000).toFixed(8));
- if(truebet>max_wager){truebet=max_wager;}
- if(truebet<min_wager){truebet=min_wager;}
- if(roll_remaining===true && balance<truebet && balance>1){
- betData = {
- amount: Math.floor(balance),
- condition: truecondition,
- target: winchance
- }
- }else{
- betData = {
- amount: Math.floor(truebet),
- condition: truecondition,
- target: winchance
- }
- }
- $.ajax({
- url: 'https://api.primedice.com/api/bet?access_token=' + localStorage.token,
- type: 'POST',
- data: betData,
- datatype: 'json',
- async: true,
- success: function (data, textStatus, jqXHR) {
- balance=data.user.balance-1;
- if(data.bet.win===true){ //Bet Won://
- truebet*=win_multiplier;
- truebet+=win_increment;
- if(win_reset===true){truebet=basebet;}
- }else{ //Bet Lost://
- truebet*=loss_multiplier;
- truebet+=loss_increment;
- if(loss_reset===true){truebet=basebet;}
- }
- }
- });
- }else{
- $('.btn__text.select div').html("<button style='background-color:red' onclick='pause=!pause;'>Start Bot</button><br>"+"<button onclick='truebet++;')>+</button><button onclick='truebet--;')>-</button>Bet:"+Math.floor(truebet)+"<br>"+"Balance:"+(balance / 100000000).toFixed(8));
- }
- }, betspeed);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement