Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - madroller

Pages: [1]
1
Code Samples / How do I.... / Sample for new function getStartBet
« on: February 22, 2015, 02:49:51 am »
Code: [Select]
function getStartBet(multipliers,balance,safepercent){
var safeAmount = balance / 100 * safepercent;
    var maxPalyBalance = balance - safeAmount;
    baseBet = 0.00000001;
    theBet = baseBet;
    totalBet = theBet; 
    for (var i = 0; i <multipliers.length -1; i++) {
   theBet = theBet * multipliers[i]
       totalBet += Number(theBet);
}
    return Number(baseBet * Number(maxPalyBalance / totalBet)).toFixed(8);
}




StartUp Code Box
Code: [Select]
chances = [6.01, 26.38, 34.13, 43.81, 49.72];
multis = [1.35, 1.45,1.9,2.23];
safeperf = 40;
lossRounds = 5;
botBaseBet = getStartBet(multis,botCurrBalance,safeperf);
botBaseGame = chances[0];
botBaseMulti = multis[0];
botBaseType=0;
resetToBase();

Main Bot Code

Code: [Select]
if(botDidWin){
    botCurrGame = chances[0];
    botCurrMulti = multis[0];
    botCurrBet = getStartBet(multis,botCurrBalance,safeperf);
} else {
    if(botCurrLossRun < lossRounds){
        botCurrGame = chances[botCurrLossRun-1];
        botCurrMulti = multis[botCurrLossRun-1];
        botCurrBet = (botCurrBet * botCurrMulti);   
    } else {
        botCurrGame = chances[0];
        botCurrMulti = multis[0];
        botCurrBet = getStartBet(multis,botCurrBalance,safeperf);
        botCurrLossRun = 0;
    }
}
if(rand(1,2)==1) flipGame();

2
Code Samples / How do I.... / How to change up win chance.
« on: February 19, 2015, 10:16:20 am »
Code: [Select]

if(botDidWin){
    resetToBase();
    if(botTotalRuns % 10 == 1){
botCurrGame = 49.5;botCurrBet = 1;botCurrMulti = 1.1;botCurrType = 1;
}
if(botTotalRuns % 10 == 3){
botCurrGame = 60;botCurrBet = 1;botCurrMulti = 1.6;botCurrType = 1;
}
if(botTotalRuns % 10 == 5){
botCurrGame = 70;botCurrBet = 1;botCurrMulti = 2.5;botCurrType = 1;
}
if(botTotalRuns % 10 == 7){
botCurrGame = 70;botCurrBet = 1;botCurrMulti = 2.5;botCurrType = 0;
}
if(botTotalRuns % 10 == 9){
botCurrGame = 60;botCurrBet = 1;botCurrMulti = 1.6;botCurrType = 0;
}    
    if(botTotalRuns % 1000 === 0){
pauseBot(120000);
}   
} else {
    botCurrBet = (botCurrBet * botCurrMulti) + botCurrBet;
}


3
Code Samples / How do I.... / How to ZigZag (switch hi/lo)
« on: February 19, 2015, 09:59:08 am »
Depending on how you want to ZipZag here are a couple examples.

ZigZag on Loss
This will flip on each loss, but on win will reset back to default in the Startup Bot Code

Code: [Select]

if(botDidWin){
    resetToBase();
} else {
    botCurrBet = (botCurrBet * botCurrMulti) + botCurrBet;
    flipGame();
}


ZigZag on Win
This will flip on each win. Here you need to remove the helper function resetToBase(); and do it your self.

Code: [Select]

if(botDidWin){
    botCurrBet = botBaseBet;
    botCurrGame = botBaseGame;
    botCurrMulti = botBaseMulti;
    flipGame();
} else {
    botCurrBet = (botCurrBet * botCurrMulti) + botCurrBet;
}


ZigZag every roll
This will flip every roll. Here you need to remove the helper function resetToBase(); and do it your self.

Code: [Select]

if(botDidWin){
    botCurrBet = botBaseBet;
    botCurrGame = botBaseGame;
    botCurrMulti = botBaseMulti;
} else {
    botCurrBet = (botCurrBet * botCurrMulti) + botCurrBet;
}
flipGame();


ZigZag every X number of rolls
This will flip every roll. Here you need to remove the helper function resetToBase(); and do it your self.

Code: [Select]
flipEveryRolls = 10;

if(botDidWin){
    botCurrBet = botBaseBet;
    botCurrGame = botBaseGame;
    botCurrMulti = botBaseMulti;
} else {
    botCurrBet = (botCurrBet * botCurrMulti) + botCurrBet;
}
if(botTotalBets % flipEveryRolls === 0){
    flipGame();
}

4
Code Samples / How do I.... / Helper functions
« on: February 19, 2015, 09:57:47 am »
There are a few helper functions in the bot that you can call with your code.

  • resetToBase(); - reset bet setting to settings in Startup Code
  • pauseBot(pauseAmount); - pause the bot for xxx ms  1000=1 sec
  • flipGame(); - toggles hi/lo bet
  • stopBotCode(); - stops the bot
  • rand(min,max) - get a random number between

I will add more as needed.

5
General Instructions for Use / Getting Started! Let the fun begin!
« on: February 19, 2015, 08:29:38 am »


After you install the extention, you should see the Dice Icon above in your browser.
You will need to reload any open dice site pages for it to take effect.



Once you reload the page, you should see this toolbar closed icon. Click it to open the toolbar.



Toolbar Opened with Buttons. Check the tooltips for for each button.



System Variable These variables are available to your code, they are updated after each roll, and after you code runs.



Startup Bot Code Editor This code is executed once when you first press the Execute button on the Main Bot Code Editor and then executes the first roll.



Main Bot Code Editor This is where your magic happens. Any code in here will be run after each roll.

What you are doing is running code that modifies 4 bot variables:

  • botCurrBet: what the next bet will be.
  • botBaseGame: what the next win chance will be.
  • botCurrType: what the next roll will be High (1) or Low (0).
  • botCurrMulti: what the next loss multiplier will be. (optional but included anyways)

You do NOT create a loop in your code, the code is already run in a loop!

The other windows, currently, are information display only.

Runs/Heights are a series of Wins or Losses in a row.

I will add new features and sites as quick as I can.

This bot is a labor of love.

When the bot is first loaded, it is loaded with code that plays a simple 49.5 martingale system with 100% increase on loss.

If you use this bot you take full responsibility for any losses you may have. The code for the bot is fully viewable so you can see it does nothing "funky", it just does rolls.

Do not copy this bot and call it your own, that is just rude.

Do not ever beg for coins on my forum or I will ban you instantly.

Do not advertise anything that is not related to Dice.

Faucets, Dice sites etc are fine, please use your common sense.

The bot will always be 100% Free

You can usually find me on bitdice.me, drop by and say hello!

thanks, and happy botting

madroller


6
General Dice Discussion / Welcome to MadRollers Dice forums!
« on: February 19, 2015, 08:10:08 am »
Thanks for stopping by!

This board is dedicated to anything Dice.

All support for my bot will be handled here. Just getting started so make a post and say hello!

Thanks!
madroller

Pages: [1]