SHOW:
|
|
- or go back to the newest paste.
| 1 | - | //blah |
| 1 | + | |
| 2 | - | // 999Bot by paradocks |
| 2 | + | |
| 3 | - | // Tip Here: 1LuLz9djKFPTfbFuCKedm2FuX1fiSqt5hg |
| 3 | + | var streakcounter = []; |
| 4 | - | var bBase, bamount, bHigh, bLow, bSeed, bData, rData, balance, swapcount, sCookie, swapxrolls, iswin, isloss, betprofit, wmcount, lmcount, loss, losstreak, totalwin, totalloss, totalprofit, loop, loopcount, looptimes, incbasebetcount; |
| 4 | + | |
| 5 | - | loopcount = 0; |
| 5 | + | |
| 6 | - | looptimes = 0; |
| 6 | + | |
| 7 | - | swapcount = 0; |
| 7 | + | |
| 8 | - | swapxrolls = 0; |
| 8 | + | |
| 9 | - | bHigh = 0; |
| 9 | + | |
| 10 | - | bLow = 0; |
| 10 | + | |
| 11 | - | totalwin = 0; |
| 11 | + | |
| 12 | - | totalloss = 0; |
| 12 | + | |
| 13 | - | totalprofit = 0; |
| 13 | + | |
| 14 | - | wmcount = 0; |
| 14 | + | |
| 15 | - | lmcount = 0; |
| 15 | + | |
| 16 | - | losstreak = 0; |
| 16 | + | |
| 17 | - | betstarted = false; |
| 17 | + | |
| 18 | setTimeout(function(){flameBot.initialize.init2();}, 1000);
| |
| 19 | - | swapwincount=0; |
| 19 | + | |
| 20 | init2: function() {
| |
| 21 | - | incbasebetcount=0; |
| 21 | + | |
| 22 | - | cCurrency = 'ltc'; |
| 22 | + | |
| 23 | - | swapxrolls=1; |
| 23 | + | |
| 24 | - | var interval = 150; |
| 24 | + | |
| 25 | $('#flameBot').tabs() & $('button').button().css('font-size', '13px').css('padding', '5px');
| |
| 26 | - | $('<link type="text/css" rel="stylesheet" href="https://jquery-ui.googlecode.com/svn/tags/latest/themes/dot-luv/jquery-ui.css">').appendTo('head');
|
| 26 | + | |
| 27 | - | $('<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.js"></script>').appendTo('head');
|
| 27 | + | |
| 28 | - | $('<style>#parabot table{width: 100%; border-collapse: collapse;}#parabot{font-size: 13px;}#parabot td, #parabot th{padding-top:7px; padding-bottom:7px; border: 1px solid #ccc; text-align: center;}#parabot th{text-align: center !important;}#parabot input{width:100% auto;}#basic{margin:4px !important; padding:4px;}</style>').appendTo('head');
|
| 28 | + | |
| 29 | $('#flameBot #resetorzero').css('font-size', '13px');
| |
| 30 | - | setTimeout(function () {
|
| 30 | + | |
| 31 | - | var UI = ''; |
| 31 | + | |
| 32 | - | UI += '<div id="parabot" style="width:550px"><ul><li>'; |
| 32 | + | $('#stats2 th').css('width', '6.25%');
|
| 33 | - | UI += '<a href="#basic">Basic Settings</a></li>'; |
| 33 | + | |
| 34 | - | UI += '<li><a href="#winloss">Win/Loss</a></li>'; |
| 34 | + | |
| 35 | - | UI += '<li><a href="#advanced">Advanced</a></li>'; |
| 35 | + | |
| 36 | - | UI += '<li><a href="#lastbets">Last Bets</a></li>'; |
| 36 | + | |
| 37 | - | UI += '</ul>'; |
| 37 | + | |
| 38 | - | UI += '<div id="basic">'; |
| 38 | + | |
| 39 | - | 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>'; |
| 39 | + | |
| 40 | - | UI += '<div id="winloss">'; |
| 40 | + | |
| 41 | - | UI += '<table style="display:table;"><thead><tr><th>Multiply on Win: <input type="checkbox" id="wmultenabled"></th><th>Multiply on Loss: <input type="checkbox" id="lmultenabled"></th></tr><tr><th>Multiplier: </th><th>Multiplier: </th></tr></thead><tbody><tr><td><input id="wmultiplier" placeholder="ex. 1.5 for 50%" type="text"></td><td><input id="lmultiplier" placeholder="ex. 1.5 for 50%" type="text"></td></tr></tbody><thead><tr><th>Reset After: </th><th>Multiply After: </th></tr></thead><tbody><tr><td><input id="resetwins" placeholder="# of wins" type="text"></td><td><input id="multiplylosses" placeholder="# of lossess" type="text"></td></tr></tbody><thead><tr><th>Swap On Win: <input type="checkbox" id="swapwinenabled"></th><th>Swap On Loss: <input type="checkbox" id="swaplossenabled"></th></tr></thead><tbody><tr><td><input id="swapwins" placeholder="after # wins" type="text"></td><td><input id="swaplosses" placeholder="after # losses" type="text"></td></tr></tbody></table>'; |
| 41 | + | |
| 42 | - | UI += '</div>'; |
| 42 | + | |
| 43 | - | UI += '<div id="advanced">'; |
| 43 | + | |
| 44 | - | UI += '<table style="display:table;"><thead><tr><th>Increase Basebet: </th><th>Increase By: </th></tr></thead><tbody><tr><td><input id="incbasebeten" type="checkbox"></td><td><input id="incbasebetby" placeholder="ex. 0.00000100 BTC" type="text"></td></tr></tbody><thead><tr><th>Every X Wins: </th><th>Max Basebet: </th></tr></thead><tbody><tr><td><input id="incbasebetxwins" type="text"></td><td><input id="incbasebetmax" type="text"></td></tr></tbody></table>'; |
| 44 | + | |
| 45 | - | UI += '</div>'; |
| 45 | + | |
| 46 | - | UI += '<div id="controlstat">'; |
| 46 | + | |
| 47 | - | 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>'; |
| 47 | + | |
| 48 | - | UI += '<table id="stats">'; |
| 48 | + | |
| 49 | - | 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>'; |
| 49 | + | |
| 50 | - | UI += '</div>'; |
| 50 | + | |
| 51 | - | UI += '</div>'; |
| 51 | + | |
| 52 | - | $('div#BetActionBoxSet > div:nth(0)').remove() & $('div#BetActionBoxSet > div:nth(0)').remove() & $('div#BetActionBoxSet > div:nth(0)').remove() & $('<center>' + UI + '</center>').insertBefore('#AutoBetsActionTabButton') & $('#parabot').tabs() & $('#BetActionBoxSet br:first').remove();
|
| 52 | + | for (i = 0; i < $('#stats2 th').length; i++) {
|
| 53 | - | $('#hilo').buttonset();
|
| 53 | + | streakcounter.push(0); |
| 54 | - | $('#buttonz button').button();
|
| 54 | + | |
| 55 | - | var UI2 = ''; |
| 55 | + | for (i = 0; i < $('#stats2 th').length; i++) {
|
| 56 | - | UI2 += '<div id="lastbets">'; |
| 56 | + | var lol=$('#stats2 th')[i];
|
| 57 | - | UI2 += '<table id="lastbet">'; |
| 57 | + | lol.textContent = (i+1).toString() + "(" + streakcounter[i] + ")";
|
| 58 | - | UI2 += '<thead><tr><th>ID</th><th>Bet</th><th>Game</th><th>Roll</th><th>Profit</th></tr></thead><tbody></tbody></table>'; |
| 58 | + | |
| 59 | - | UI2 += '</div>'; |
| 59 | + | |
| 60 | - | $(UI2).insertBefore('#BetActionBoxSet center:first') & $('#lastbets').css('display', 'inline-block');
|
| 60 | + | |
| 61 | - | }, 1000); |
| 61 | + | |
| 62 | if (loopenabled === false) {
| |
| 63 | - | function getCookie(cname) {
|
| 63 | + | |
| 64 | - | var name = cname + "="; |
| 64 | + | |
| 65 | - | var ca = document.cookie.split(';');
|
| 65 | + | |
| 66 | - | for (var i = 0; i < ca.length; i++) {
|
| 66 | + | |
| 67 | - | var c = ca[i]; |
| 67 | + | |
| 68 | - | while (c.charAt(0) == ' ') c = c.substring(1); |
| 68 | + | |
| 69 | - | if (c.indexOf(name) == 0) return c.substring(name.length, c.length); |
| 69 | + | |
| 70 | - | } |
| 70 | + | |
| 71 | - | return ""; |
| 71 | + | |
| 72 | if (betstarted === true) {} else {
| |
| 73 | flameBot.API.bet(); | |
| 74 | - | sCookie = getCookie('SessionId');
|
| 74 | + | |
| 75 | } | |
| 76 | - | function toJSONObj(a) {
|
| 76 | + | |
| 77 | - | c = JSON.parse('{"' + decodeURI(a).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"') + '"}');
|
| 77 | + | |
| 78 | - | return c; |
| 78 | + | |
| 79 | ||
| 80 | }); | |
| 81 | - | function swap() {
|
| 81 | + | |
| 82 | - | a = $('#chance').val() * 0.01;
|
| 82 | + | |
| 83 | - | a = (999999 * a); |
| 83 | + | |
| 84 | - | if (bHigh == 999999) {
|
| 84 | + | |
| 85 | - | bHigh = Math.floor(a); |
| 85 | + | |
| 86 | - | bLow = 0; |
| 86 | + | |
| 87 | - | } else {
|
| 87 | + | |
| 88 | - | bHigh = 999999; |
| 88 | + | |
| 89 | - | bLow = Math.floor(999999 - a); |
| 89 | + | |
| 90 | - | } |
| 90 | + | |
| 91 | tools: {
| |
| 92 | dec2Sat: function(decimal) {
| |
| 93 | - | function calcChance(percent) {
|
| 93 | + | |
| 94 | - | a = percent * 0.01; |
| 94 | + | |
| 95 | - | a = (999999 * a); |
| 95 | + | |
| 96 | - | if ($('input:radio[name=hilo]:checked').val() == 'hi') {
|
| 96 | + | |
| 97 | - | bHigh = 999999; |
| 97 | + | |
| 98 | - | bLow = Math.floor(999999 - a); |
| 98 | + | |
| 99 | - | } else if ($('input:radio[name=hilo]:checked').val() == 'lo') {
|
| 99 | + | |
| 100 | - | bHigh = Math.floor(a); |
| 100 | + | |
| 101 | - | bLow = 0; |
| 101 | + | |
| 102 | - | } else if ($('input:radio[name=hilo]:checked').val() == 'swap') {
|
| 102 | + | |
| 103 | - | |
| 103 | + | |
| 104 | - | swapcount++; |
| 104 | + | |
| 105 | - | if (swapcount >= swapxrolls) {
|
| 105 | + | |
| 106 | - | swap(); |
| 106 | + | |
| 107 | - | swapxrolls=Math.floor(Math.random()*2); |
| 107 | + | |
| 108 | - | swapcount = 0; |
| 108 | + | |
| 109 | - | } |
| 109 | + | |
| 110 | - | } |
| 110 | + | |
| 111 | flameBot.API.swap(); | |
| 112 | swaplosscount=0; | |
| 113 | - | function setParams() {
|
| 113 | + | |
| 114 | - | a = $('#chance').val() * 0.01;
|
| 114 | + | |
| 115 | - | a = (999999 * a); |
| 115 | + | |
| 116 | - | if ($('input:radio[name=hilo]:checked').val() == 'swap' && bHigh == 0 && bLow == 0) {
|
| 116 | + | |
| 117 | - | bHigh = 999999; |
| 117 | + | |
| 118 | - | bLow = 999999 - a; |
| 118 | + | |
| 119 | - | } else {
|
| 119 | + | |
| 120 | - | calcChance($('#chance').val());
|
| 120 | + | |
| 121 | - | } |
| 121 | + | |
| 122 | aftermanualtrigger=false; | |
| 123 | - | bBase = Math.floor($('#basebet').val() * 1e8);
|
| 123 | + | |
| 124 | - | bamount = bBase; |
| 124 | + | |
| 125 | - | lmcount=0; |
| 125 | + | |
| 126 | - | wmcount=0; |
| 126 | + | |
| 127 | - | losstreak=0; |
| 127 | + | |
| 128 | - | swapcount=0; |
| 128 | + | |
| 129 | } | |
| 130 | ||
| 131 | - | function seedGen() {
|
| 131 | + | |
| 132 | - | seedlength = 2; |
| 132 | + | |
| 133 | - | charset = '1230'; |
| 133 | + | |
| 134 | - | var seed = ''; |
| 134 | + | |
| 135 | losscount=0; | |
| 136 | - | for (var i = 0; i <= seedlength; i++) |
| 136 | + | |
| 137 | } | |
| 138 | - | seed += charset.charAt(Math.floor(Math.random() * charset.length)); |
| 138 | + | |
| 139 | ||
| 140 | - | return seed; |
| 140 | + | |
| 141 | if (losscount == $('#startlosses').val()) {
| |
| 142 | currentbet = currentbet * $('#initialmultiplier').val();
| |
| 143 | - | function bet() {
|
| 143 | + | |
| 144 | - | betstarted = true; |
| 144 | + | |
| 145 | - | bSeed = seedGen(); |
| 145 | + | |
| 146 | - | bData = 'a=PlaceBet&s=' + sCookie + '&PayIn=' + bamount + '&Low=' + bLow + '&High=' + bHigh + '&ClientSeed=' + bSeed + '&Currency='+cCurrency; |
| 146 | + | |
| 147 | - | $.ajax({
|
| 147 | + | |
| 148 | - | url: '/api/web.aspx', |
| 148 | + | |
| 149 | - | type: 'POST', |
| 149 | + | |
| 150 | - | data: toJSONObj(bData), |
| 150 | + | |
| 151 | - | datatype: 'jsonp', |
| 151 | + | |
| 152 | - | async: true, |
| 152 | + | |
| 153 | - | success: function (data) {
|
| 153 | + | |
| 154 | - | rData = JSON.parse(data); |
| 154 | + | |
| 155 | - | if ($('input:radio[name=hilo]:checked').val() == 'swap') {
|
| 155 | + | |
| 156 | - | |
| 156 | + | |
| 157 | - | swapcount++; |
| 157 | + | |
| 158 | - | if (swapcount >= swapxrolls) {
|
| 158 | + | |
| 159 | - | swap(); |
| 159 | + | |
| 160 | - | swapxrolls+=4; |
| 160 | + | var streak = losscount; |
| 161 | - | swapcount = 0; |
| 161 | + | streakcounter[losscount-1]++; |
| 162 | - | $('#stop').click();
|
| 162 | + | |
| 163 | - | interval=Math.floor(Math.random()*150); |
| 163 | + | |
| 164 | - | while (interval < 75) {
|
| 164 | + | |
| 165 | - | interval = Math.floor(Math.random()*150); |
| 165 | + | |
| 166 | - | } |
| 166 | + | |
| 167 | losscount=0; | |
| 168 | - | setTimeout(function(){$('#start').click();},575);
|
| 168 | + | |
| 169 | - | } |
| 169 | + | |
| 170 | - | } |
| 170 | + | |
| 171 | - | if (rData.PayOut == 0) {
|
| 171 | + | |
| 172 | - | iswin = false; |
| 172 | + | |
| 173 | - | isloss = true; |
| 173 | + | |
| 174 | - | betprofit = ((0 - bamount) / 1e8).toFixed(8); |
| 174 | + | |
| 175 | - | |
| 175 | + | |
| 176 | - | totalprofit = parseFloat(totalprofit) + parseFloat(betprofit); |
| 176 | + | |
| 177 | - | balance = Math.floor(Math.round(parseFloat(rData.StartingBalance) + parseFloat(betprofit))); |
| 177 | + | |
| 178 | - | $('#BetActionBoxSet .UserBalance').text((balance/1e8));
|
| 178 | + | |
| 179 | - | |
| 179 | + | |
| 180 | - | } else {
|
| 180 | + | |
| 181 | - | iswin = true;swapxrolls=1; |
| 181 | + | |
| 182 | - | isloss = false; |
| 182 | + | |
| 183 | - | betprofit = ((rData.PayOut - bamount) / 1e8).toFixed(8); |
| 183 | + | |
| 184 | - | if (betprofit != 0 && (betprofit > 0) === false) {} else {
|
| 184 | + | |
| 185 | - | totalprofit = parseFloat(totalprofit) + parseFloat(betprofit); |
| 185 | + | |
| 186 | - | |
| 186 | + | |
| 187 | - | balance = Math.floor(Math.round(parseFloat(rData.StartingBalance) + parseFloat(betprofit))); |
| 187 | + | |
| 188 | - | $('#BetActionBoxSet .UserBalance').text((balance/1e8));
|
| 188 | + | |
| 189 | - | } |
| 189 | + | |
| 190 | - | } |
| 190 | + | |
| 191 | - | |
| 191 | + | |
| 192 | - | if (iswin == true) {
|
| 192 | + | |
| 193 | - | win(); |
| 193 | + | |
| 194 | - | |
| 194 | + | |
| 195 | - | } else {
|
| 195 | + | |
| 196 | - | lose(); |
| 196 | + | |
| 197 | - | } |
| 197 | + | |
| 198 | - | }, |
| 198 | + | |
| 199 | - | error: function (errorThrown) {
|
| 199 | + | |
| 200 | - | betstarted = false; |
| 200 | + | |
| 201 | - | |
| 201 | + | |
| 202 | - | } |
| 202 | + | |
| 203 | - | }); |
| 203 | + | |
| 204 | - | |
| 204 | + | |
| 205 | } else if ($(bettab).length < 30) {
| |
| 206 | $(bettab).prepend(bettable); | |
| 207 | - | function win() {
|
| 207 | + | |
| 208 | - | if ($('#incbasebeten').is(':checked') === true) {
|
| 208 | + | |
| 209 | - | incbasebetcount++; |
| 209 | + | for (i = 0; i < $('#stats2 th').length; i++) {
|
| 210 | - | if (incbasebetcount >= $('#incbasebetxwins').val()) {
|
| 210 | + | var lol=$('#stats2 th')[i];
|
| 211 | - | if ((bBase + ($('#incbasebetby').val()*1e8)) > ($('#incbasebetmax').val()*1e8))
|
| 211 | + | lol.textContent = (i+1).toString() + "(" + streakcounter[i] + ")";
|
| 212 | - | {
|
| 212 | + | |
| 213 | - | bBase = Math.floor($('#basebet').val()*1e8);
|
| 213 | + | |
| 214 | - | bamount=bBase; |
| 214 | + | |
| 215 | - | incbasebetcount=0; |
| 215 | + | |
| 216 | - | } else {
|
| 216 | + | |
| 217 | - | bBase = bBase + ($('#incbasebetby').val()*1e8);
|
| 217 | + | |
| 218 | - | bamount = bBase; |
| 218 | + | |
| 219 | - | incbasebetcount=0; |
| 219 | + | |
| 220 | - | } |
| 220 | + | |
| 221 | $('#profit').css('color', 'green');
| |
| 222 | - | } |
| 222 | + | |
| 223 | - | totalwin++; |
| 223 | + | |
| 224 | - | losstreak = 0;swaplosscount=0; |
| 224 | + | |
| 225 | - | if ($('#swapwinenabled').is(':checked') === true) {
|
| 225 | + | |
| 226 | - | swapwincount++; |
| 226 | + | |
| 227 | - | if (swapwincount >= $('#swapwins').val()){
|
| 227 | + | |
| 228 | - | swap(); |
| 228 | + | |
| 229 | - | swapwincount=0; |
| 229 | + | |
| 230 | - | } |
| 230 | + | |
| 231 | - | } |
| 231 | + | |
| 232 | - | if ($('#lmultenabled').is(':checked') === true) {
|
| 232 | + | |
| 233 | - | bamount = bBase; |
| 233 | + | |
| 234 | - | lmcount = 0; |
| 234 | + | |
| 235 | - | } |
| 235 | + | |
| 236 | - | if ($('#wmultenabled').is(':checked') === true) {
|
| 236 | + | |
| 237 | - | wmcount++; |
| 237 | + | |
| 238 | - | if (wmcount <= $('#resetwins').val()) {
|
| 238 | + | |
| 239 | - | bamount = Math.floor(Math.round(bamount * $('#wmultiplier').val()));
|
| 239 | + | |
| 240 | - | |
| 240 | + | |
| 241 | - | } else if (wmcount >= $('#resetwins').val()) {
|
| 241 | + | |
| 242 | - | bamount = bBase; |
| 242 | + | |
| 243 | - | wmcount = 0; |
| 243 | + | |
| 244 | - | |
| 244 | + | |
| 245 | - | } |
| 245 | + | |
| 246 | - | } |
| 246 | + | |
| 247 | - | addRow(); |
| 247 | + | |
| 248 | - | betstarted = false; |
| 248 | + | |
| 249 | swapcount++; | |
| 250 | if (swapcount >= $('#swapevery').val()) {
| |
| 251 | flameBot.API.swap(); | |
| 252 | - | function lose() {
|
| 252 | + | |
| 253 | - | totalloss++; |
| 253 | + | |
| 254 | - | losstreak++; |
| 254 | + | |
| 255 | - | if ($('#swaplossenabled').is(':checked') === true) {
|
| 255 | + | |
| 256 | - | swaplosscount++; |
| 256 | + | |
| 257 | - | if (swaplosscount >= $('#swaplosses').val()){
|
| 257 | + | |
| 258 | - | swap(); |
| 258 | + | |
| 259 | - | swaplosscount=0; |
| 259 | + | |
| 260 | - | } |
| 260 | + | |
| 261 | - | } |
| 261 | + | |
| 262 | - | if ($('#lmultenabled').is(':checked') == true) {
|
| 262 | + | |
| 263 | - | lmcount++; |
| 263 | + | |
| 264 | - | if (lmcount >= $('#multiplylosses').val()) {
|
| 264 | + | |
| 265 | - | bamount = Math.floor(Math.round(bamount * $('#lmultiplier').val()));
|
| 265 | + | |
| 266 | - | lmcount = 0; |
| 266 | + | |
| 267 | - | } |
| 267 | + | |
| 268 | - | } |
| 268 | + | |
| 269 | - | addRow(); |
| 269 | + | |
| 270 | - | betstarted = false; |
| 270 | + | |
| 271 | var seedlength = 10; | |
| 272 | var charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()'; | |
| 273 | for (var i = 0; i <= seedlength; i++) | |
| 274 | - | function addRow() {
|
| 274 | + | |
| 275 | - | var bettable = '', |
| 275 | + | |
| 276 | - | bettab = '#lastbets tbody'; |
| 276 | + | |
| 277 | - | var game; |
| 277 | + | |
| 278 | - | if (bLow > 0) {
|
| 278 | + | |
| 279 | - | game = '> ' + bLow; |
| 279 | + | |
| 280 | - | } else if (bLow == 0) {
|
| 280 | + | |
| 281 | - | game = '<' + bHigh; |
| 281 | + | |
| 282 | - | } |
| 282 | + | |
| 283 | - | bettable += '<tr><td>' + rData.BetId + '</td>'; |
| 283 | + | |
| 284 | - | bettable += '<td>' + (bamount / 1e8).toFixed(8) + '</td>'; |
| 284 | + | |
| 285 | - | bettable += '<td>' + game + '</td>'; /* return bet payout */ |
| 285 | + | |
| 286 | - | bettable += '<td>' + rData.Secret + '</td>'; /* return target*/ |
| 286 | + | |
| 287 | - | bettable += '<td id="bProfit">' + betprofit + '</tr>'; |
| 287 | + | |
| 288 | - | if ($(bettab + ' tr').length >= 3) {
|
| 288 | + | |
| 289 | - | $(bettab + ' tr').last().remove(); |
| 289 | + | |
| 290 | - | $(bettab).prepend(bettable); |
| 290 | + | |
| 291 | - | bettable = ''; |
| 291 | + | |
| 292 | - | } else if ($(bettab).length < 3) {
|
| 292 | + | |
| 293 | - | $(bettab).prepend(bettable); |
| 293 | + | |
| 294 | - | bettable = ''; |
| 294 | + | |
| 295 | - | } |
| 295 | + | |
| 296 | - | var stattable = '', |
| 296 | + | |
| 297 | - | stattab = '#stats tbody'; |
| 297 | + | |
| 298 | - | stattable += '<tr><td style="color:green;">' + (balance / 1e8).toFixed(8) + '</td><td style="color:red;">' + losstreak + '</td><td style="color:green;">' + totalwin + '</td><td style="color:red;">' + totalloss + '</td><td id="profit">' + (totalprofit).toFixed(8) + '</td></tr>'; |
| 298 | + | |
| 299 | - | $(stattab).empty(); |
| 299 | + | |
| 300 | - | $(stattab).prepend(stattable); |
| 300 | + | |
| 301 | - | stattable = ''; |
| 301 | + | |
| 302 | - | if (betprofit > 0) {
|
| 302 | + | |
| 303 | - | $('#bProfit').css('color', 'green');
|
| 303 | + | |
| 304 | - | } else {
|
| 304 | + | |
| 305 | - | $('#bProfit').css('color', 'red');
|
| 305 | + | |
| 306 | - | } |
| 306 | + | |
| 307 | - | if (totalprofit >= 0) {
|
| 307 | + | |
| 308 | - | $('#profit').css('color', 'green');
|
| 308 | + | |
| 309 | - | } else {
|
| 309 | + | |
| 310 | - | $('#profit').css('color', 'red');
|
| 310 | + | |
| 311 | - | } |
| 311 | + | |
| 312 | ||
| 313 | var UI =''; | |
| 314 | - | setTimeout(function () {
|
| 314 | + | |
| 315 | - | $('#start').click(function () {
|
| 315 | + | |
| 316 | UI += '<table style="margin:10px;"id="stats2">'; | |
| 317 | UI += '<thead><tr><th>1 </th><th>2</th><th>3</th><th>4</th><th>5</th><th>6</th><th>7</th><th>8</th><th>9</th><th>10</th><th>11</th><th>12</th><th>13</th><th>14</th><th>15</th><th>16</th></tr></thead><tbody></tbody></table>'; | |
| 318 | - | looptimes = 999999999; |
| 318 | + | |
| 319 | UI += '<tr><th>Bet</th><th>Payout</th><th>Game</th><th>Roll</th><th>Profit</th></tr></table>'; | |
| 320 | UI += '<div style="max-height:390px !important;font-size:11px;overflow-y: scroll;overflow-x: hidden;"><table id="lastbet2"></table></div>'; | |
| 321 | - | if (loopenabled === false) {
|
| 321 | + | |
| 322 | - | loopenabled = true; |
| 322 | + | |
| 323 | UI += '<li><a href="/play#onloss">On Loss</a></li>'; | |
| 324 | - | loop = setInterval(function () {
|
| 324 | + | |
| 325 | UI += '<li style="margin:8px;font-size:12px;margin-left:35px;text-align:center;"><span>FlameBot - v1.0</span></li>'; | |
| 326 | - | if (loopcount >= looptimes) {
|
| 326 | + | |
| 327 | - | clearInterval(loop); |
| 327 | + | |
| 328 | - | loopcount = 0; |
| 328 | + | |
| 329 | - | loopenabled = false; |
| 329 | + | |
| 330 | - | } else {
|
| 330 | + | |
| 331 | - | if (betstarted === true) {} else {
|
| 331 | + | |
| 332 | - | bet(); |
| 332 | + | |
| 333 | - | } |
| 333 | + | |
| 334 | - | } |
| 334 | + | |
| 335 | - | }, interval); |
| 335 | + | |
| 336 | 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>'; | |
| 337 | - | } |
| 337 | + | |
| 338 | UI += '</div>'; | |
| 339 | - | }); |
| 339 | + |