SHOW:
|
|
- or go back to the newest paste.
| 1 | - | var flameBot, betspeed, aftermanualtrigger, loop, loopenabled, betData, condition, profit, target, losscount, totalloss, totalwin, currentbet, basebet, mainmult, initmult, result, UI = '', |
| 1 | + | var flameBot, betspeed, aftermanualtrigger,swaplosscount, swapcount, loop, loopenabled, betData, condition,profit, target, losscount, totalloss, totalwin, currentbet, basebet, mainmult, initmult, result, UI ='', UI2=''; |
| 2 | - | UI2 = ''; |
| 2 | + | profit=0; |
| 3 | - | profit = 0; |
| 3 | + | betspeed=500; |
| 4 | - | betspeed = 500; |
| 4 | + | loopcount=0; |
| 5 | - | loopcount = 0; |
| 5 | + | betstarted=false; |
| 6 | - | betstarted = false; |
| 6 | + | loopenabled=false; |
| 7 | - | loopenabled = false; |
| 7 | + | aftermanualtrigger=false; |
| 8 | - | aftermanualtrigger = false; |
| 8 | + | swaplosscount=0; |
| 9 | swapcount=0; | |
| 10 | - | initialize: {
|
| 10 | + | |
| 11 | - | init1: function() {
|
| 11 | + | initialize: {
|
| 12 | - | var lib = '<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" /><script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>'; |
| 12 | + | init1: function() {
|
| 13 | - | $(lib).appendTo('head');
|
| 13 | + | var lib = '<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" /><script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>'; |
| 14 | - | setTimeout(function() {
|
| 14 | + | $(lib).appendTo('head');
|
| 15 | - | flameBot.initialize.init2(); |
| 15 | + | setTimeout(function(){flameBot.initialize.init2();}, 1000);
|
| 16 | - | }, 1000); |
| 16 | + | }, |
| 17 | - | }, |
| 17 | + | init2: function() {
|
| 18 | - | init2: function() {
|
| 18 | + | losscount=0; |
| 19 | - | losscount = 0; |
| 19 | + | totalloss=0; |
| 20 | - | totalloss = 0; |
| 20 | + | totalwin=0; |
| 21 | - | totalwin = 0; |
| 21 | + | $('.hero__main').empty().css('width', '550px') & $('.hero__main').css("padding", "0") & $(UI).appendTo('.hero__main') &
|
| 22 | - | $('.hero__main').empty().css('width', '550px') & $('.hero__main').css("padding", "0") & $(UI).appendTo('.hero__main') &
|
| 22 | + | $('#flameBot').tabs() & $('button').button().css('font-size', '13px').css('padding', '5px');
|
| 23 | - | $('#flameBot').tabs() & $('button').button().css('font-size', '13px').css('padding', '5px');
|
| 23 | + | $('#stats th').css("width", "20%").css("font-size", "15px");
|
| 24 | - | $('#stats th').css("width", "20%").css("font-size", "15px");
|
| 24 | + | $('#hilo, #resetorzero').buttonset();
|
| 25 | - | $('#hilo, #resetorzero').buttonset();
|
| 25 | + | $('#flameBot li').css('font-size', '15px');
|
| 26 | - | $('#flameBot li').css('font-size', '15px');
|
| 26 | + | $('#flameBot #resetorzero').css('font-size', '13px');
|
| 27 | - | $('#flameBot #resetorzero').css('font-size', '13px');
|
| 27 | + | $('#flameBot div[role=tabpanel] td').css('padding', 1);
|
| 28 | - | $('#flameBot div[role=tabpanel] td').css('padding', 1);
|
| 28 | + | $('.hero__main').css('margin-top', '-75px')
|
| 29 | - | $('#start').click(function() {
|
| 29 | + | $('#start').click(function () {
|
| 30 | ||
| 31 | - | looptimes = 999999999; |
| 31 | + | looptimes=999999999; |
| 32 | - | if (loopenabled === false) {
|
| 32 | + | if (loopenabled === false) {
|
| 33 | - | loopenabled = true; |
| 33 | + | loopenabled = true; |
| 34 | ||
| 35 | - | loop = setInterval(function() {
|
| 35 | + | loop = setInterval(function () {
|
| 36 | ||
| 37 | - | if (loopcount >= looptimes) {
|
| 37 | + | if (loopcount >= looptimes) {
|
| 38 | - | clearInterval(loop); |
| 38 | + | clearInterval(loop); |
| 39 | - | loopcount = 0; |
| 39 | + | loopcount = 0; |
| 40 | - | loopenabled = false; |
| 40 | + | loopenabled = false; |
| 41 | - | } else {
|
| 41 | + | } else {
|
| 42 | - | if (betstarted === true) {} else {
|
| 42 | + | if (betstarted === true) {} else {
|
| 43 | - | flameBot.API.bet(); |
| 43 | + | flameBot.API.bet(); |
| 44 | - | } |
| 44 | + | } |
| 45 | - | } |
| 45 | + | } |
| 46 | - | }, betspeed); |
| 46 | + | }, betspeed); |
| 47 | ||
| 48 | - | } |
| 48 | + | } |
| 49 | ||
| 50 | - | }); |
| 50 | + | }); |
| 51 | - | $('#stop').click(function() {
|
| 51 | + | $('#stop').click(function () {
|
| 52 | - | clearInterval(loop); |
| 52 | + | clearInterval(loop); |
| 53 | - | loopenabled = false; |
| 53 | + | loopenabled = false; |
| 54 | - | loopcount = 0; |
| 54 | + | loopcount = 0; |
| 55 | - | }); |
| 55 | + | }); |
| 56 | - | $('#setparams').click(function() {
|
| 56 | + | $('#setparams').click(function(){
|
| 57 | - | flameBot.API.setParams(); |
| 57 | + | flameBot.API.setParams(); |
| 58 | - | }) |
| 58 | + | }) |
| 59 | - | } |
| 59 | + | } |
| 60 | - | }, |
| 60 | + | }, |
| 61 | - | tools: {
|
| 61 | + | tools: {
|
| 62 | - | dec2Sat: function(decimal) {
|
| 62 | + | dec2Sat: function(decimal) {
|
| 63 | - | return (Math.floor(decimal * 1e8)); |
| 63 | + | return (Math.floor(decimal*1e8)); |
| 64 | - | }, |
| 64 | + | }, |
| 65 | - | token: function() {
|
| 65 | + | token: function() {
|
| 66 | - | return localStorage.token; |
| 66 | + | return localStorage.token; |
| 67 | - | }, |
| 67 | + | }, |
| 68 | - | satToDec: function(satoshi) {
|
| 68 | + | satToDec: function(satoshi) {
|
| 69 | - | return ((satoshi / 1e8).toFixed(8)); |
| 69 | + | return ((satoshi/1e8).toFixed(8)); |
| 70 | - | }, |
| 70 | + | }, |
| 71 | ||
| 72 | - | }, |
| 72 | + | }, |
| 73 | - | API: {
|
| 73 | + | API: {
|
| 74 | - | onLoss: function() {
|
| 74 | + | onLoss: function() {
|
| 75 | - | totalloss++; |
| 75 | + | totalloss++; |
| 76 | - | losscount++; |
| 76 | + | losscount++; |
| 77 | - | if ($('#afterlossesenabled').is(':checked') === true) {
|
| 77 | + | if ($('#afterlossesenabled').is(':checked') === true) {
|
| 78 | - | if (losscount >= $('#afterlosses').val()) {
|
| 78 | + | if (losscount >= $('#afterlosses').val()){
|
| 79 | - | if ($('#aftermanualenabled').is(':checked') === true) {
|
| 79 | + | if ($('#aftermanualenabled').is(':checked') === true) {
|
| 80 | ||
| 81 | - | if (aftermanualtrigger === true) {} else {
|
| 81 | + | if (aftermanualtrigger === true) { } else {
|
| 82 | - | var r = confirm("Click Okay to reset to base. Click cancel to bet 0 until win.");
|
| 82 | + | var r = confirm("Click Okay to reset to base. Click cancel to bet 0 until win.");
|
| 83 | - | if (r == true) {
|
| 83 | + | if (r == true) {
|
| 84 | - | aftermanualtrigger = false; |
| 84 | + | aftermanualtrigger=false; |
| 85 | - | currentbet = basebet; |
| 85 | + | currentbet=basebet; |
| 86 | - | losscount = 0; |
| 86 | + | losscount=0; |
| 87 | - | } else {
|
| 87 | + | } else {
|
| 88 | - | aftermanualtrigger = true; |
| 88 | + | aftermanualtrigger=true; |
| 89 | - | currentbet = 0; |
| 89 | + | currentbet=0; |
| 90 | - | } |
| 90 | + | } |
| 91 | - | } |
| 91 | + | } |
| 92 | ||
| 93 | - | } else {
|
| 93 | + | } else {
|
| 94 | - | if ($('input:radio[name=resetorzero]:checked').val() == 'orzero') {
|
| 94 | + | if ($('input:radio[name=resetorzero]:checked').val() == 'orzero') {
|
| 95 | - | currentbet = 0; |
| 95 | + | currentbet=0; |
| 96 | - | } else if ($('input:radio[name=resetorzero]:checked').val() == 'resetor') {
|
| 96 | + | } else if ($('input:radio[name=resetorzero]:checked').val() == 'resetor') {
|
| 97 | - | losscount = 0; |
| 97 | + | losscount=0; |
| 98 | - | currentbet = basebet; |
| 98 | + | currentbet=basebet; |
| 99 | - | } |
| 99 | + | } |
| 100 | - | } |
| 100 | + | } |
| 101 | ||
| 102 | - | } else {
|
| 102 | + | } else {
|
| 103 | - | if (losscount == $('#startlosses').val()) {
|
| 103 | + | if (losscount == $('#startlosses').val()) {
|
| 104 | - | currentbet = currentbet * $('#initialmultiplier').val();
|
| 104 | + | currentbet = currentbet * $('#initialmultiplier').val();
|
| 105 | - | } else if (losscount > $('#startlosses').val()) {
|
| 105 | + | } else if (losscount > $('#startlosses').val()) {
|
| 106 | - | currentbet = currentbet * $('#mainmultiplier').val();
|
| 106 | + | currentbet = currentbet * $('#mainmultiplier').val();
|
| 107 | - | } |
| 107 | + | } |
| 108 | - | } |
| 108 | + | } |
| 109 | - | } else {
|
| 109 | + | } else {
|
| 110 | - | if (losscount == $('#startlosses').val()) {
|
| 110 | + | if (losscount == $('#startlosses').val()) {
|
| 111 | - | currentbet = currentbet * $('#initialmultiplier').val();
|
| 111 | + | currentbet = currentbet * $('#initialmultiplier').val();
|
| 112 | - | } else if (losscount > $('#startlosses').val()) {
|
| 112 | + | } else if (losscount > $('#startlosses').val()) {
|
| 113 | - | currentbet = currentbet * $('#mainmultiplier').val();
|
| 113 | + | currentbet = currentbet * $('#mainmultiplier').val();
|
| 114 | - | } |
| 114 | + | } |
| 115 | - | } |
| 115 | + | } |
| 116 | - | flameBot.API.addRow(); |
| 116 | + | flameBot.API.addRow(); |
| 117 | - | }, |
| 117 | + | }, |
| 118 | - | onWin: function() {
|
| 118 | + | onWin: function() {
|
| 119 | - | if (aftermanualtrigger === true) {
|
| 119 | + | if (aftermanualtrigger === true) { aftermanualtrigger = false }
|
| 120 | - | aftermanualtrigger = false |
| 120 | + | totalwin++; |
| 121 | - | } |
| 121 | + | losscount=0; |
| 122 | - | totalwin++; |
| 122 | + | currentbet = basebet; |
| 123 | - | losscount = 0; |
| 123 | + | flameBot.API.addRow(); |
| 124 | - | currentbet = basebet; |
| 124 | + | }, |
| 125 | - | flameBot.API.addRow(); |
| 125 | + | setParams: function () {
|
| 126 | - | }, |
| 126 | + | losscount=0; |
| 127 | - | setParams: function() {
|
| 127 | + | aftermanualtrigger=false; |
| 128 | - | losscount = 0; |
| 128 | + | swaplosscount=0; |
| 129 | - | initmult = $('#initialmultiplier').val();
|
| 129 | + | swapcount=0; |
| 130 | - | mainmult = $('#mainmultiplier').val();
|
| 130 | + | initmult = $('#initialmultiplier').val();
|
| 131 | - | basebet = flameBot.tools.dec2Sat($('#basebet').val());
|
| 131 | + | mainmult = $('#mainmultiplier').val();
|
| 132 | - | currentbet = basebet; |
| 132 | + | basebet = flameBot.tools.dec2Sat($('#basebet').val());
|
| 133 | - | if ($('input:radio[name=hilo]:checked').val() == 'hi') {
|
| 133 | + | currentbet = basebet; |
| 134 | - | condition = '>'; |
| 134 | + | if ($('input:radio[name=hilo]:checked').val() == 'hi') {
|
| 135 | - | target = (99.99 - (99 / $('#chance').val())).toFixed(2);
|
| 135 | + | condition = '>'; |
| 136 | - | } else if ($('input:radio[name=hilo]:checked').val() == 'lo') {
|
| 136 | + | target = (99.99 - (99 / $('#chance').val())).toFixed(2);
|
| 137 | - | condition = '<'; |
| 137 | + | } else if ($('input:radio[name=hilo]:checked').val() == 'lo') {
|
| 138 | - | target = (99 / $('#chance').val()).toFixed(2);
|
| 138 | + | condition = '<'; |
| 139 | - | } else if ($('input:radio[name=hilo]:checked').val() == 'swap') {
|
| 139 | + | target = (99 / $('#chance').val()).toFixed(2);
|
| 140 | - | condition = '<'; |
| 140 | + | } else if ($('input:radio[name=hilo]:checked').val() == 'swap') {
|
| 141 | - | target = 0 + (99 / $('#chance').val()).toFixed(2);
|
| 141 | + | condition = '<'; |
| 142 | - | } |
| 142 | + | target = 0 + (99 / $('#chance').val()).toFixed(2);
|
| 143 | - | }, |
| 143 | + | } |
| 144 | - | addRow: function() {
|
| 144 | + | }, |
| 145 | - | var bettable = '', |
| 145 | + | addRow: function () {
|
| 146 | - | bettab = '#lastbet2'; |
| 146 | + | var bettable = '', |
| 147 | - | bettable += '<tr><td>' + flameBot.tools.satToDec(result.bet.amount) + '</td>'; |
| 147 | + | bettab = '#lastbet2'; |
| 148 | - | bettable += '<td>' + result.bet.multiplier + 'x' + '</td>'; /* return bet payout */ |
| 148 | + | bettable += '<tr><td>' + flameBot.tools.satToDec(result.bet.amount) + '</td>'; |
| 149 | - | bettable += '<td>' + (result.bet.target).toFixed(2) + '</td>'; /* return target*/ |
| 149 | + | bettable += '<td>' + result.bet.multiplier + 'x' + '</td>'; /* return bet payout */ |
| 150 | - | bettable += '<td>' + result.bet.roll + '</td>'; /* return roll */ |
| 150 | + | bettable += '<td>' + (result.bet.target).toFixed(2) + '</td>'; /* return target*/ |
| 151 | - | bettable += '<td id="proff">' + flameBot.tools.satToDec(result.bet.profit) + '</td></tr>'; |
| 151 | + | bettable += '<td>' + result.bet.roll + '</td>'; /* return roll */ |
| 152 | bettable += '<td id="proff">' + flameBot.tools.satToDec(result.bet.profit) + '</td></tr>'; | |
| 153 | - | var stattable = '', |
| 153 | + | |
| 154 | - | stattab = '#lastbet3'; |
| 154 | + | var stattable = '', |
| 155 | - | stattable += '<tr><td style="color:green;">' + flameBot.tools.satToDec(result.user.balance) + '</td><td style="color:red;">' + losscount + '</td><td style="color:green;">' + totalwin + '</td><td style="color:red;">' + totalloss + '</td><td id="profit">' + (profit).toFixed(8) + '</td></tr>'; |
| 155 | + | stattab = '#lastbet3'; |
| 156 | - | $(stattab).empty(); |
| 156 | + | stattable += '<tr><td style="color:green;">' + flameBot.tools.satToDec(result.user.balance) + '</td><td style="color:red;">' + losscount + '</td><td style="color:green;">' + totalwin + '</td><td style="color:red;">' + totalloss + '</td><td id="profit">' + (profit).toFixed(8) + '</td></tr>'; |
| 157 | - | $(stattab).prepend(stattable); |
| 157 | + | $(stattab).empty(); |
| 158 | - | stattable = ''; |
| 158 | + | $(stattab).prepend(stattable); |
| 159 | - | if ($(bettab + ' tbody tr').length >= 30) {
|
| 159 | + | stattable = ''; |
| 160 | - | $(bettab + ' tr').last().remove(); |
| 160 | + | if ($(bettab + ' tbody tr').length >= 30) {
|
| 161 | - | $(bettab).prepend(bettable); |
| 161 | + | $(bettab + ' tr').last().remove(); |
| 162 | - | bettable = ''; |
| 162 | + | $(bettab).prepend(bettable); |
| 163 | - | } else if ($(bettab).length < 30) {
|
| 163 | + | bettable = ''; |
| 164 | - | $(bettab).prepend(bettable); |
| 164 | + | } else if ($(bettab).length < 30) {
|
| 165 | - | bettable = ''; |
| 165 | + | $(bettab).prepend(bettable); |
| 166 | - | } |
| 166 | + | bettable = ''; |
| 167 | } | |
| 168 | - | $('#lastbet2 *, #lastbet3 *, #lastbet *, #proff').css('text-align', 'center');
|
| 168 | + | |
| 169 | - | $('#lastbet2 *, #lastbet3 *, #lastbet *').css('width', '20%');
|
| 169 | + | $('#lastbet2 *, #lastbet3 *, #lastbet *, #proff').css('text-align', 'center');
|
| 170 | - | $('#lastbet *').css('padding', '5px');
|
| 170 | + | $('#lastbet2 *, #lastbet3 *, #lastbet *').css('width', '20%');
|
| 171 | - | $('#lastbet *').css('border-bottom', '1px solid #ccc');
|
| 171 | + | $('#lastbet *').css('padding', '5px');
|
| 172 | - | $('#result-1').css('padding', '5px');
|
| 172 | + | $('#lastbet *').css('border-bottom', '1px solid #ccc');
|
| 173 | - | $('#lastbet2 *, #lastbet3 *, #proff').css('padding', '5px');
|
| 173 | + | $('#result-1').css('padding', '5px');
|
| 174 | - | $('#lastbet > tbody > tr > th:nth-child(2)').css('border-top', '1px solid #ddd');
|
| 174 | + | $('#lastbet2 *, #lastbet3 *, #proff').css('padding', '5px');
|
| 175 | - | if (profit >= 0) {
|
| 175 | + | $('#lastbet > tbody > tr > th:nth-child(2)').css('border-top', '1px solid #ddd');
|
| 176 | - | $('#profit').css('color', 'green');
|
| 176 | + | if (profit >= 0) {
|
| 177 | - | } else {
|
| 177 | + | $('#profit').css('color', 'green');
|
| 178 | - | $('#profit').css('color', 'red');
|
| 178 | + | } else {
|
| 179 | - | } |
| 179 | + | $('#profit').css('color', 'red');
|
| 180 | - | if (result.bet.win === true) {
|
| 180 | + | } |
| 181 | - | $('#proff:first').css('color', 'green');
|
| 181 | + | if (result.bet.win === true) {
|
| 182 | - | } else {
|
| 182 | + | $('#proff:first').css('color', 'green');
|
| 183 | - | $('#proff:first').css('color', 'red');
|
| 183 | + | } else {
|
| 184 | - | } |
| 184 | + | $('#proff:first').css('color', 'red');
|
| 185 | - | betstarted = false; |
| 185 | + | } |
| 186 | - | }, |
| 186 | + | betstarted=false; |
| 187 | }, | |
| 188 | - | bet: function() {
|
| 188 | + | |
| 189 | - | betstarted = true; |
| 189 | + | bet: function() {
|
| 190 | - | var betData = {
|
| 190 | + | betstarted=true; |
| 191 | - | amount: currentbet, |
| 191 | + | var betData = {
|
| 192 | - | condition: condition, |
| 192 | + | amount: currentbet, |
| 193 | - | target: target, |
| 193 | + | condition: condition, |
| 194 | - | }; |
| 194 | + | target: target, |
| 195 | - | $.ajax({
|
| 195 | + | |
| 196 | - | url: 'https://api.primedice.com/api/bet?access_token=' + flameBot.tools.token(), |
| 196 | + | $.ajax({
|
| 197 | - | type: 'POST', |
| 197 | + | url: 'https://api.primedice.com/api/bet?access_token='+flameBot.tools.token(), |
| 198 | - | data: betData, |
| 198 | + | type: 'POST', |
| 199 | - | datatype: 'jsonp', |
| 199 | + | data: betData, |
| 200 | - | success: function(data) {
|
| 200 | + | datatype: 'jsonp', |
| 201 | - | result = data; |
| 201 | + | success: function (data) {
|
| 202 | - | profit = parseFloat(profit) + parseFloat(flameBot.tools.satToDec(data.bet.profit)); |
| 202 | + | result = data; |
| 203 | - | if (data.bet.win === true) {
|
| 203 | + | profit = parseFloat(profit) + parseFloat(flameBot.tools.satToDec(data.bet.profit)); |
| 204 | - | flameBot.API.onWin(); |
| 204 | + | if (data.bet.win === true) {
|
| 205 | - | } else {
|
| 205 | + | flameBot.API.onWin(); |
| 206 | - | flameBot.API.onLoss(); |
| 206 | + | } else {
|
| 207 | - | } |
| 207 | + | flameBot.API.onLoss(); |
| 208 | - | }, |
| 208 | + | } |
| 209 | - | error: function(errorThrown) {
|
| 209 | + | }, |
| 210 | - | betstarted = false; |
| 210 | + | error: function (errorThrown) {
|
| 211 | - | } |
| 211 | + | betstarted=false; |
| 212 | - | }); |
| 212 | + | } |
| 213 | - | }, |
| 213 | + | }); |
| 214 | - | seedChange: function() {
|
| 214 | + | }, |
| 215 | - | function seedgen() {
|
| 215 | + | seedChange: function () {
|
| 216 | - | var seed = ''; |
| 216 | + | function seedgen() {
|
| 217 | - | var seedlength = 10; |
| 217 | + | var seed = ''; |
| 218 | - | var charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()'; |
| 218 | + | var seedlength = 10; |
| 219 | - | for (var i = 0; i <= seedlength; i++) |
| 219 | + | var charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()'; |
| 220 | for (var i = 0; i <= seedlength; i++) | |
| 221 | - | seed += charset.charAt(Math.floor(Math.random() * charset.length)); |
| 221 | + | |
| 222 | seed += charset.charAt(Math.floor(Math.random() * charset.length)); | |
| 223 | - | return seed; |
| 223 | + | |
| 224 | - | } |
| 224 | + | return seed; |
| 225 | - | var s = seedgen(), |
| 225 | + | } |
| 226 | - | url = 'https://api.primedice.com/api/seed?access_token=' + localStorage.token, |
| 226 | + | var s = seedgen(), |
| 227 | - | sData = {
|
| 227 | + | url = 'https://api.primedice.com/api/seed?access_token=' + localStorage.token, |
| 228 | - | seed: s |
| 228 | + | sData = {
|
| 229 | seed: s | |
| 230 | }; | |
| 231 | - | $.ajax({
|
| 231 | + | |
| 232 | - | url: url, |
| 232 | + | $.ajax({
|
| 233 | - | type: 'POST', |
| 233 | + | url: url, |
| 234 | - | data: sData, |
| 234 | + | type: 'POST', |
| 235 | - | datatype: 'json', |
| 235 | + | data: sData, |
| 236 | - | success: function(data, textStatus, jqXHR) {
|
| 236 | + | datatype: 'json', |
| 237 | - | data2 = data; |
| 237 | + | success: function (data, textStatus, jqXHR) {
|
| 238 | - | $('#currentseed').val(data2.seeds.client);
|
| 238 | + | data2 = data; |
| 239 | $('#currentseed').val(data2.seeds.client);
| |
| 240 | ||
| 241 | - | }, |
| 241 | + | |
| 242 | - | error: function(jqXHR, textStatus, errorThrown) {
|
| 242 | + | }, |
| 243 | - | return false; |
| 243 | + | error: function (jqXHR, textStatus, errorThrown) {
|
| 244 | - | } |
| 244 | + | return false; |
| 245 | - | }); |
| 245 | + | } |
| 246 | - | }, |
| 246 | + | }); |
| 247 | - | swap: function() {
|
| 247 | + | }, |
| 248 | - | if (condition2 == '<') {
|
| 248 | + | swap: function () {
|
| 249 | - | condition2 = '>'; |
| 249 | + | if (condition2 == '<') {
|
| 250 | - | target2 = (99.99 - (99 / $('#payout').val())).toFixed(2);
|
| 250 | + | condition2 = '>'; |
| 251 | - | } else if (condition2 == '>') {
|
| 251 | + | target2 = (99.99 - (99 / $('#payout').val())).toFixed(2);
|
| 252 | - | condition2 = '<'; |
| 252 | + | } else if (condition2 == '>') {
|
| 253 | - | target2 = (99 / $('#payout').val()).toFixed(2);
|
| 253 | + | condition2 = '<'; |
| 254 | - | } |
| 254 | + | target2 = (99 / $('#payout').val()).toFixed(2);
|
| 255 | - | }, |
| 255 | + | } |
| 256 | - | } |
| 256 | + | }, |
| 257 | } | |
| 258 | } | |
| 259 | - | var UI = ''; |
| 259 | + | |
| 260 | var UI =''; | |
| 261 | UI += '<table id="lastbet">'; | |
| 262 | - | UI += '<div style="max-height:120px !important;overflow-y: scroll;overflow-x: hidden;"><table id="lastbet2"></table></div>'; |
| 262 | + | |
| 263 | UI += '<div style="max-height:390px !important;font-size:11px;overflow-y: scroll;overflow-x: hidden;"><table id="lastbet2"></table></div>'; | |
| 264 | UI += '<div id="flameBot" style="width:550px"><ul><li>'; | |
| 265 | UI += '<a href="/play#basic">Basic Settings</a></li>'; | |
| 266 | UI += '<li><a href="/play#onloss">On Loss</a></li>'; | |
| 267 | UI += '<li><a href="/play#onlosstreak">Loss - Adv.</a></li>'; | |
| 268 | UI += '<li style="margin:8px;font-size:12px;margin-left:35px;text-align:center;"><span>FlameBot - v1.0</span></li>'; | |
| 269 | UI += '</ul>'; | |
| 270 | UI += '<div id="basic" style="font-size:17.5px;"><center>'; | |
| 271 | UI += '<table style="display:table;"><thead><tr><th>Basebet: </th><th>Chance:</th></tr></thead><tbody><tr><td><input id="basebet" type="text"></td><td><input id="chance" type="text"></td></tr></tbody><thead><tr><th>High/Low/Swap:</th><th>Swap Every:</th></tr></thead><tbody><tr><td><div id="hilo"><input type="radio" id="hi" value="hi" name="hilo"><label for="hi">High</label> <input type="radio" id="lo" value="lo" name="hilo" checked="checked"><label for="lo">Low</label> <input type="radio" id="swap" value="swap" name="hilo"><label for="swap">Swap</label> </div></td><td><input id="swapevery" type="text"></td></tr></tbody></table></div></center>'; | |
| 272 | UI += '<div id="onloss" style="font-size:17.5px;"><center>'; | |
| 273 | UI += '<table style="display:table;"><thead><tr><th>Start Multipling: </th><th>Main Multiplier:</th></tr></thead><tbody><tr><td><input id="startlosses" style="text-align:center;" placeholder="after # of losses"type="text"></td><td><input id="mainmultiplier" style="text-align:center;" placeholder="2, 4, etc."type="text"></td></tr></tbody><thead><tr><th>Initial Multiplier</th><th>Max Bet:</th></tr></thead><tbody><tr><td><input id="initialmultiplier" style="text-align:center;" placeholder="2, 4, etc."type="text"></td><td><input id="maxbet" style="text-align:center;" placeholder="ex. 0.001" type="text"></td></tr></tbody></table>'; | |
| 274 | UI += '</center></div>'; | |
| 275 | UI += '<div id="onlosstreak" style="font-size:17.5px;"><center>'; | |
| 276 | UI += '<table style="display:table;"><thead><tr><th>After: <input type="checkbox" id="afterlossesenabled"></th><th>Either: </th></tr></thead><tbody><tr><td><input id="afterlosses" style="text-align:center;" placeholder="# of losses"type="text"></td><td><div id="resetorzero"><input type="radio" id="resetor" value="resetor" name="resetorzero"><label for="resetor">Reset to Base</label><input type="radio" id="orzero" value="orzero" name="resetorzero" checked="checked"><label for="orzero">Roll 0 to Win</label></div></td></tr></tbody><thead><tr><th>Manualy Choose?</th><th>Swap After: <input id="swaplossesenabled" type="checkbox"></th></tr></thead><tbody><tr><td><center><input id="aftermanualenabled" type="checkbox"></center></td><td><input id="swaplosses" style="text-align:center;" placeholder="# of losses" type="text"></td></tr></tbody></table>'; | |
| 277 | UI += '</center></div>'; | |
| 278 | UI += '<div id="controlstat">'; | |
| 279 | UI += '<center><div id="toolbar" class="ui-widget-header ui-corner-all"><div id="buttonz"><span id="startstop"><button id="start">Start</button><button id="stop">Stop</button></span><span id="set"><button id="setparams">Set Params</button><button id="save">Save Settings</button><button id="load">Load Settings</button></div></center><br>'; | |
| 280 | UI += '<table style="margin:10px;"id="stats">'; | |
| 281 | UI += '<thead><tr><th>Balance</th><th>Loss Streak</th><th>Total Wins</th><th>Total Losses</th><th>Total Profit</th></tr></thead><tbody></tbody><table id="lastbet3"></table></table>'; | |
| 282 | UI += '</div>'; | |
| 283 | UI += '</div>'; | |
| 284 | flameBot.initialize.init1(); |