Professional Documents
Culture Documents
00000032;
initialChance = 96;
bethigh = true;
nextbet = initialBetSize;
chance = initialChance;
else -- 'profit'
if( conditionsOn.profitType == 'balance' ) then
variableToUse = balance;
elseif( conditionsOn.profitType == 'loss' ) then
variableToUse = -profit;
elseif( conditionsOn.profitType == 'profit' ) then
variableToUse = profit;
else
printf('error in conditions, not recognized condition on profitType
"%s"', conditionsOn.profitType);
stop();
end
function execute(doAction)
if( doAction.type == 'increaseByPercentage' ) then
nextbet *= 1 + doAction.value / 100;
elseif( doAction.type == 'decreaseByPercentage' ) then
nextbet *= 1 - doAction.value / 100;
elseif( doAction.type == 'increaseWinChanceBy' ) then
chance *= 1 + doAction.value / 100;
elseif( doAction.type == 'decreaseWinChanceBy' ) then
chance *= 1 - doAction.value / 100;
elseif( doAction.type == 'addToAmount' ) then
nextbet += doAction.value;
elseif( doAction.type == 'subtractFromAmount' ) then
nextbet -= doAction.value;
elseif( doAction.type == 'addToWinChance' ) then
chance += doAction.value;
elseif( doAction.type == 'subtractFromWinChance' ) then
chance -= doAction.value;
elseif( doAction.type == 'setAmount' ) then
nextbet = doAction.value;
elseif( doAction.type == 'setWinChance' ) then
chance = doAction.value;
elseif( doAction.type == 'switchOverUnder' ) then
bethigh = !bethigh;
elseif( doAction.type == 'resetAmount' ) then
nextbet = initialBetSize;
elseif( doAction.type == 'resetWinChance' ) then
chance = initialChance;
elseif( doAction.type == 'stop' ) then
stop();
else
print('error in conditions, not recognized action type "%s"',
doAction.type);
stop();
end
end
function dobet()