Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *Aihuman Bot form api
- *Aihuman Bot form api is extremely easy to use, and will start and run in just a few clicks.
- *Aihuman Bot form api works with both big and small bankrolls. The bigger the bankroll, the higher are the chances of you winning
- **/
- var wageredBits = engine.getBalance()/100;var totalWon = 2;/**Aihuman Bot form api Start**/var maxBet = 100000;var maxLosses = 7;/**Aihuman Bot form api**/var baseCashout = 1.02;
- /**Aihuman Bot form api**/var initialWagered = wageredBits;var currentBet;/**Aihuman Bot form api**/var currentCashout = baseCashout;var stopScriptOnLoss = true;var lossStreak = 3;/**Aihuman Bot form api**/var userBalance = engine.getBalance()/100;var divTable = [];var prevLoss = false;
- /**Aihuman Bot form api**/var risingBetPercentage = 0;/**Aihuman Bot form api**/for(let i = 0;i<maxLosses+1;i++)divTable[i] = [];/**Aihuman Bot form api**/function idiotTest(){if(userBalance<wageredBits){throwError("wageredBits is higher than your balance");engine.stop();/**Aihuman Bot form api**/
- }/**Aihuman Bot form apix**/
- if(maxLosses<3 || maxLosses>9){throwError("Use a number between 3 and 9 for maxLosses inclusive.");
- engine.stop();/**Aihuman Bot form apix**/}/**Aihuman Bot form api**/
- if(risingBetPercentage>1 || risingBetPercentage<0){throwError("risingBetPercentage must be between 0 and 1 inclusive.");
- engine.stop();/**Aihuman Bot form apix**/}/**Aihuman Bot form api**/}/**Aihuman Bot form apix**/idiotTest();/**Aihuman Bot form apix**/
- /**Aihuman Bot form apix**/function calcBase(wagered,limit){/**Aihuman Bot form api**/var base = wagered;var multiplier = 0.50;/**Aihuman Bot form api**/if(base>maxBet*1.50)base = maxBet*1.50;
- for(let i=0;i<limit-1;i++){base = (base*multiplier)/(multiplier+1);}/**Aihuman Bot form apix**/if(Math.floor(base)<1){
- throwError(" It seems you have low balance " + wageredBits + " To run on those paramenter You need to have + 2000 Bits if you want to change paramenter please contact https://openai.com .");
- engine.stop();}/**Aihuman Bot form apix**/return Math.floor(base);}
- currentBet = calcBase(wageredBits,maxLosses);/**Aihuman Bot form apix**/
- function calcUnflooredBase(wagered,limit){var base = wagered;var multiplier = 0.50;if(base>maxBet*1.50)base = maxBet*1.50;for(let i=0;i<limit-1;i++){
- base = (base*multiplier)/(multiplier+1);}if(Math.floor(base)<1){throwError("It seems you have low balance " + wageredBits + " To run on those paramenter You need to have + 2000 Bits if you want to change paramenter please contact https://openai.com .");
- engine.stop();}return base;}/**Aihuman Bot form apix**/function createDivTable(){var precise = calcBase(wageredBits,maxLosses);var sum = precise;
- var unprecise = calcUnflooredBase(wageredBits,maxLosses);divTable[0][0] = "RTB";divTable[0][1] = "CB";divTable[0][2] = "NA";
- divTable[1][0] = "↣";for(let i = 1;i<maxLosses;i++)divTable[i+1][0] = " ";for(let i = 1;i<maxLosses+1;i++){divTable[i][1] = parseFloat(unprecise.toFixed(4));if(i==1)unprecise*=2;else
- unprecise*=3;}/**Aihuman Bot form apix**/for(let i = 1;i<maxLosses+1;i++){divTable[i][2] = precise;if(i==1)precise*=2;else
- precise*=3;}}/**Aihuman Bot form apix**/createDivTable();
- /**Aihuman Bot form apix**/
- engine.on('game_starting', function(info) {console.log("Current balance: " + engine.getBalance() + " will bet " + currentBet + " at " + currentCashout);
- engine.placeBet(currentBet*100, Math.round(currentCashout*100));});/**Aihuman Bot form apix**/
- /**Aihuman Bot form apix**/engine.on('game_crash', function(data) {if(engine.lastGamePlay()=='NOT_PLAYED')return;if(engine.lastGamePlay()=='LOST'){currentCashout = 1.50;if(lossStreak==0)currentBet *= 2;else
- currentBet *= 3;lossStreak++;console.log("LOST: new bet is " + currentBet + " new cashout is " + currentCashout);
- divTable[lossStreak][0] = data.game_crash/100;if(lossStreak<maxLosses){divTable[lossStreak+1][0] = "↣";
- }/**Aihuman Bot form apix**/prevLoss = true;updateTable(divTable);}/**Aihuman Bot form apix**/
- else{currentBet = calcBase(Math.floor(wageredBits),maxLosses);currentCashout = baseCashout;lossStreak = 0;
- if(risingBetPercentage!=0 && !prevLoss){wageredBits = initialWagered;totalWon += parseFloat((currentBet*currentCashout-currentBet).toFixed(2));
- console.log("Total won " + totalWon);wageredBits += totalWon*risingBetPercentage;console.log("Wagered Bits " + wageredBits);currentBet = calcBase(Math.floor(wageredBits),maxLosses);
- }prevLoss = false;console.log("WON: "+ "new bet is " + currentBet + " new cashout is " + currentCashout);createDivTable();updateTable(divTable);}
- if(lossStreak==maxLosses){console.log("Max Losses reached")
- engine.stop();}});/**Aihuman Bot form apix**/engine.on('msg', function(data) {if(data.username==engine.getUsername() && data.message=="!kill"){engine.chat("Script remotely terminated.");
- engine.stop();}});/**Aihuman Bot form apix**/var tableData = [];function updateTable(matrix){for(let i=0;i<matrix.length;i++)
- for(let k=0;k<matrix[i].length;k++){tableData[i][k].innerHTML = matrix[i][k];}for(i=1;i<matrix.length;i++){if(tableData[i][0].innerHTML=="?"){
- tableData[i][0].style.color = "Grey";tableData[i][0].style.fontSize = "large";}
- else if(tableData[i][0].innerHTML!=" "){tableData[i][0].style.color = "Grey";tableData[i][0].style.fontSize = "x-small";}}}
- function throwError(message){var error = document.createElement("div");error.style.maxWidth = "400px";error.style.maxHeight = "140px";error.style.top = 0;error.style.left = 0;
- error.style.bottom = 0;error.style.right = 0;error.style.position = "absolute";error.style.margin = "auto";error.style.zIndex = 10000;error.style.background = "black";
- error.style.color = "white";error.style.borderRadius = "10px";error.style.fontFamily = "Verdana";/**Aihuman Bot form apix**/var header = document.createElement("div");
- header.style.borderRadius = "10px 10px 0px 0px";header.style.background = "black";header.style.textAlign = "center";header.innerHTML = "Error!";
- var close = document.createElement("p");close.innerHTML = "☒";close.style.display = "inline";
- close.style.position = "absolute";close.style.right = "10px";close.style.cursor = "pointer";
- header.appendChild(close);close.addEventListener("click", function(){document.body.removeChild(error);});/**Aihuman Bot form apix**/error.appendChild(header);
- /**Aihuman Bot form apix**/var para = document.createElement("p");para.style.padding = "5px";para.innerHTML = message;para.style.textAlign = "center";para.style.top = "500px";
- error.appendChild(para);/**Aihuman Bot form apix**/document.body.appendChild(error);
- }/**Aihuman Bot form apix**/function createTable(matrix){let div = document.createElement("div");div.style.minWidth = "120px";
- div.style.top = "0px";div.style.left = "0px";div.style.zIndex = 10000;/**Aihuman Bot form apix**/
- div.style.color = "white";div.style.position = "absolute";div.style.borderRadius = "10px";div.style.fontFamily = "Verdana";div.style.fontSize = "x-small";div.style.textAlign = "center";/**Aihuman Bot form apix**/
- let header = document.createElement("div");header.style.background = "black";header.style.padding = "5px";
- header.innerHTML = "OpenAi Stats";header.style.borderRadius = "10px 10px 0px 0px";header.style.cursor = "move";
- let close = document.createElement("p");close.innerHTML = "☒";
- close.style.display = "inline";close.style.position = "absolute";close.style.right = "10px";close.style.cursor = "pointer";header.appendChild(close);close.addEventListener("click", function(){document.body.removeChild(div);engine.stop();
- });/**Aihuman Bot form apix**/div.appendChild(header);
- /**Aihuman Bot form apix**/let table = document.createElement("TABLE");/**Aihuman Bot form apix**/
- for(i=0;i<matrix.length;i++){tableData[i] = [];let row = document.createElement("TR");if(i%2!=0)row.style.backgroundColor = "black";else
- row.style.backgroundColor = "black";table.appendChild(row);for(let k = 0;k<matrix[i].length;k++){let elem = document.createElement("TD");
- elem.style.borderLeft = "2px solid Grey";elem.style.borderRight = "2px solid Grey";
- elem.innerHTML = matrix[i][k];elem.style.textAlign = "center";elem.style.padding = "5px";tableData[i][k] = elem;row.appendChild(elem);
- }}/**Aihuman Bot form apix**/for(i=1;i<matrix.length;i++){
- if(tableData[i][0].innerHTML=="?"){tableData[i][0].style.color = "Grey";tableData[i][0].style.fontSize = "large";}
- else if(tableData[i][0].innerHTML!=" "){tableData[i][0].style.color = "DarkRed";tableData[i][0].style.fontSize = "x-small";}
- }/**Aihuman Bot form apix**/table.style.border = "3px solid Grey";div.appendChild(table);/**Aihuman Bot form apix**/let menu = document.createElement("div");
- menu.style.background = "black";menu.innerHTML = "Menu";menu.style.textAlign = "center";menu.style.padding = "5px";
- menu.style.borderRadius = "0px 0px 10px 10px";menu.style.cursor = "pointer";menu.addEventListener("mouseover",function(){
- menu.style.backgroundColor = "black";});/**Aihuman Bot form apix**/menu.addEventListener("mouseout",function(){
- menu.style.backgroundColor = "black";});/**Aihuman Bot form apix**/
- let flag = 0;menu.addEventListener("click",function(){if(flag%2==0){div.appendChild(help);div.appendChild(contact);
- /**Aihuman Bot form apix**/menu.style.borderRadius = "0px 0px 0px 0px";}/**Aihuman Bot form apix**/else{
- div.removeChild(help);div.removeChild(contact);/**Aihuman Bot form apix**/
- menu.style.borderRadius = "0px 0px 10px 10px";}/**Aihuman Bot form apix**/flag++;
- });div.appendChild(menu);/**Aihuman Bot form apix**/let help = document.createElement("div");help.style.background = "black";help.innerHTML = "Help";help.style.padding = "5px";
- help.style.cursor = "pointer";help.addEventListener("mouseover",function(){help.style.backgroundColor = "black";});/**Aihuman Bot form apix**/
- help.addEventListener("click",createHelpBox);
- help.addEventListener("mouseout",function(){help.style.backgroundColor = "black";});/**Aihuman Bot form apix**//**Aihuman Bot form apix**/
- let contact = document.createElement("div");
- contact.style.background = "black";contact.innerHTML = "Contact";contact.style.padding = "5px";contact.style.cursor = "pointer";
- contact.addEventListener("mouseover",function(){contact.style.backgroundColor = "black";
- });/**Aihuman Bot form apix**/contact.addEventListener("click",createContactBox);contact.addEventListener("mouseout",function(){contact.style.backgroundColor = "black";
- });/**Aihuman Bot form apixx**//**Aihuman Bot form apix**/document.body.appendChild(div);
- /**Aihuman Bot form apixx**/document.getElementsByClassName("strategy-stop")[0].addEventListener("click",function inner(){document.body.removeChild(div);
- document.getElementsByClassName("strategy-stop")[0].removeEventListener("click",inner);});/**Aihuman Bot form apixxx**/dragElement(div,header);}
- createTable(divTable);/**Aihuman Bot form apix**/function dragElement(elmnt,header) {var x1 = 0, x2 = 0, y1 = 0, y2 = 0;header.onmousedown = dragMouseDown;
- /**Aihuman Bot form apix**/function dragMouseDown(e) {e = e || window.event;y1 = e.clientX;y2 = e.clientY;document.onmouseup = closeDragElement;document.onmousemove = elementDrag;}/**Aihuman Bot form apix**/
- function elementDrag(e) {e = e || window.event;x1 = y1 - e.clientX;x2 = y2 - e.clientY;y1 = e.clientX;y2 = e.clientY;elmnt.style.top = (elmnt.offsetTop - x2) + "px";elmnt.style.left = (elmnt.offsetLeft - x1) + "px";}
- /**Aihuman Bot form apix**/function closeDragElement() {document.onmouseup = null;document.onmousemove = null;}
- }/**Aihuman Bot form apix**/function createDonateBox(){
- let div = document.createElement("div");div.style.minWidth = "120px";div.style.top = "0px";
- div.style.left = "0px";div.style.zIndex = 10001;div.style.color = "white";
- div.style.position = "absolute";div.style.borderRadius = "10px";div.style.fontFamily = "Verdana";div.style.fontSize = "x-small";
- div.style.textAlign = "center";/**Aihuman Bot form apix**/let header = document.createElement("div");
- header.style.background = "black";header.style.padding = "5px";header.innerHTML = "Donate";
- header.style.borderRadius = "10px 10px 0px 0px";header.style.cursor = "move";let close = document.createElement("p");
- close.innerHTML = "☒";close.style.display = "inline";close.style.position = "absolute";close.style.right = "10px";
- close.style.cursor = "pointer";header.appendChild(close);close.addEventListener("click", function(){document.body.removeChild(div);});/**Aihuman Bot form apix**/div.appendChild(header);
- /**Aihuman Bot form apix**/let para = document.createElement("p");
- para.style.backgroundColor = "black";para.style.padding = "5px";para.style.maxWidth = "350px";para.style.borderRadius = "0px 0px 10px 10px";
- para.innerHTML = "Aihuman Bot form api is build from OpenAi";div.appendChild(para);/**Aihuman Bot form apix**/dragElement(div,header);
- /**Aihuman Bot form apixx**/document.getElementsByClassName("strategy-stop")[0].addEventListener("click",function inner(){document.body.removeChild(div);
- document.getElementsByClassName("strategy-stop")[0].removeEventListener("click",inner);
- });/**Aihuman Bot form apixxx**/document.body.appendChild(div);}
- /**Aihuman Bot form apixxx**/
- function createContactBox(){let div = document.createElement("div");div.style.minWidth = "120px";div.style.top = "0px";div.style.left = "0px";div.style.zIndex = 10001;
- div.style.color = "white";div.style.position = "absolute";div.style.borderRadius = "10px";
- div.style.fontFamily = "Verdana";div.style.fontSize = "x-small";div.style.textAlign = "center";/**Aihuman Bot form apix**/let header = document.createElement("div");header.style.background = "black";header.style.padding = "5px";header.innerHTML = "Contact";header.style.borderRadius = "10px 10px 0px 0px";header.style.cursor = "move";
- let close = document.createElement("p");
- close.innerHTML = "☒";close.style.display = "inline";close.style.position = "absolute";close.style.right = "10px";close.style.cursor = "pointer";
- header.appendChild(close);close.addEventListener("click", function(){document.body.removeChild(div);});div.appendChild(header);
- /**Aihuman Bot form apix**/
- let para = document.createElement("p");para.style.backgroundColor = "black";para.style.padding = "5px";para.style.maxWidth = "350px";para.style.borderRadius = "0px 0px 10px 10px";
- para.innerHTML = "If you have any questions or requests please contact at https:/openai.com ";div.appendChild(para);/**Aihuman Bot form apix**/
- dragElement(div,header);document.getElementsByClassName("strategy-stop")[0].addEventListener("click",function inner(){document.body.removeChild(div);document.getElementsByClassName("strategy-stop")[0].removeEventListener("click",inner);
- });/**Aihuman Bot form apix**/document.body.appendChild(div);}/**Aihuman Bot form apix**/function createHelpBox(){let div = document.createElement("div");div.style.minWidth = "120px";
- div.style.maxWidth = "550px";div.style.top = "0px";div.style.left = "0px";div.style.zIndex = 10001;div.style.color = "white";div.style.position = "absolute";div.style.borderRadius = "10px";div.style.fontFamily = "Verdana";div.style.fontSize = "x-small";div.style.textAlign = "center";
- /**Aihuman Bot form apix**/
- let header = document.createElement("div");header.style.background = "black";header.style.padding = "5px";header.innerHTML = "Help";
- header.style.borderRadius = "10px 10px 0px 0px";
- header.style.cursor = "move";let close = document.createElement("p");close.innerHTML = "☒";close.style.display = "inline";close.style.position = "absolute";close.style.right = "10px";close.style.cursor = "pointer";
- header.appendChild(close);close.addEventListener("click", function(){document.body.removeChild(div);});/**Aihuman Bot form apix**/
- div.appendChild(header);/**Aihuman Bot form apix**/let question1 = document.createElement("h1"); question1.style.fontSize = "small";
- question1.style.backgroundColor = "black";question1.style.padding = "5px";question1.innerHTML = "What is CB";
- div.appendChild(question1);/**Aihuman Bot form apix**/let para1 = document.createElement("p");para1.style.backgroundColor = "black";para1.style.padding = "5px";para1.innerHTML = "The CB is for Current Bet, which is the bet that would be placed on that game";div.appendChild(para1);/**Aihuman Bot form apix**/let question = document.createElement("h1");question.style.fontSize = "small";
- question.style.backgroundColor = "black";question.style.padding = "5px";question.innerHTML = "What is RTB";div.appendChild(question);
- /**Aihuman Bot form apix**/let para = document.createElement("p");para.style.backgroundColor = "black";
- para.style.padding = "5px";para.innerHTML = "The RTB shows the Real Time Bet ";div.appendChild(para);/**Aihuman Bot form apix**/let question2 = document.createElement("h1");
- question2.style.fontSize = "small";question2.style.backgroundColor = "black";/**Aihuman Bot form apix**/question2.style.padding = "5px";
- question2.innerHTML = "What is NA";div.appendChild(question2);/**Aihuman Bot form apix**/
- let para2 = document.createElement("p");para2.style.backgroundColor = "black";para2.style.padding = "5px";para2.innerHTML = "The NA is Next Action that will be placed that current game.";div.appendChild(para2);
- /**Aihuman Bot form apix**/let last = document.createElement("p");
- last.style.backgroundColor = "black";last.style.padding = "15px";last.style.borderRadius = "0px 0px 10px 10px";last.innerHTML = "";div.appendChild(last);
- /**Aihuman Bot form apix**/dragElement(div,header);/**Aihuman Bot form apix**/
- document.getElementsByClassName("strategy-stop")[0].addEventListener("click",function inner(){document.body.removeChild(div);document.getElementsByClassName("strategy-stop")[0].removeEventListener("click",inner);});/**Aihuman Bot form apix**/document.body.appendChild(div);
- /**
- *Aihuman Bot form apix Bot is extremely easy to use, and will start and run in just a few clicks.
- *Aihuman Bot works with both big and small bankrolls. The bigger the bankroll, the higher are the chances of you winning
- **/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement