Hi guys, I'm in the process of customizing a macro I found on this forum.
The macro was originally designed for use with PKR casino using the Martingale system. I'm trying to get it to work with 32red's Online Casino. "Premier Roulette" game.
The process I'm trying to get to work is:
1. Reset window location
2. Click $2.00 chip
3. Bet on both red and black
4. Click .25c chip
5. Bet on Black
6. Click "PLAY"
7. Check all black squares on board for marker
8. If there is no marker on any black squares, this means I lost
9. If any black square has a marker on it, this means I won.
10. If I lost, put $2.00 on Red and Black again and double .25c bet.
11. If I won, place original bet again.
12. Repeat
The reason for the $2.00 on Red and Black is because this particular casino has a minimum $2.00 bet on outside bets. Putting $2.00 on Red and Black means I get that money back regardless of whether it lands on Red or Black, cancelling out the minimum bet. (except if it's green obviously)
Anyway, here's the code. So far I can get steps 1 to 6 to work, but that's as far as I can get. If anyone can help me figure this out that would be great. Thankyou.
Code:
begin
Variable.Set("bet", "{MinimumBet}")
Function.Execute("Reset window location")
begin loop()
Function.Execute("default bet")
Function.Execute("Place bet")
Function.Execute("Check if we won")
if Variable.Is equal to("won", "yes")
begin
Macro.Report progress("We won! Resetting bet")
Variable.Set("bet", "{MinimumBet}")
end
if Variable.Is equal to("won", "no")
begin
Macro.Report progress("We lost! Doubling bet")
Variable.Multiply (Math)("bet", "2")
if Variable.Is greater than (Math)("bet", "{MaximumBet}")
begin
Macro.Report progress("Giving up and resetting bet")
Variable.Set("bet", "{MinimumBet}")
end
end
end
end
function("Reset window location")
begin
Window.Set location("32Red Flash Casino - Mozilla Firefox: IBM Edition", "yes", "1", "1")
Window.Bring to front("32Red Flash Casino - Mozilla Firefox: IBM Edition", "yes")
Macro.Pause("1000")
end
function
function("default bet")
begin
Mouse.Click at coordinate("425", "726", "left")
end
begin
Mouse.Click at coordinate("494", "666", "left")
end
begin
Mouse.Click at coordinate("581", "662", "left")
end
function
function("Place bet")
begin
Mouse.Click at coordinate("265", "725", "left")
end
begin
Mouse.Click at coordinate("590", "665", "left")
end
begin
Mouse.Click at coordinate("926", "702", "left")
Macro.Pause("500")
Color.Wait for color at coordinate to be (RGB)("0", "199", "0", "138", "286")
Macro.Pause("500")
end
function
function("Check if we won")
begin
Variable.Set("won", "no")
if Color.At coordinate is (RGB)("0", "0", "0", "305", "522")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "347", "475")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "348", "575")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "390", "524")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "433", "519")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "434", "566")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "476", "464")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "475", "572")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "520", "519")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "561", "524")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "606", "472")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "605", "568")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "649", "522")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "690", "522")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "690", "572")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "732", "463")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "733", "568")
begin
if Color.At coordinate is (RGB)("0", "0", "0", "774", "522")
begin
Variable.Set("won", "yes")
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
function
Code:
Variables:
{MinimumBet} 0.25
{MaximumBet} 64
{DefaultBet} 2