i've now captured all number locations on the table so i can add dozens/odds/evens and 1-18/19-36 if i want....thanks damagex for your nudge ,..its betting collumns as i want it to aswell,.still not right sure how to implement the martingale to kick in after i've betted on either red or black or the collumns or any other bet when not betting on red and black and lost...here's the code this far Code: function("spin") begin Mouse.Click at coordinate("632", "598", "left") Macro.Pause("9000") // Set the amount of time the roulette table needs before it shows which color won end function
function("clear") begin Mouse.Click at coordinate("466", "596", "left") Macro.Pause("100") // You might have to adjust this wait time, I don't know if the game has any movement detection end function
function("bet on red") begin Mouse.Click at coordinate("593", "485", "left") Macro.Pause("100") end function
function("bet on black") begin Mouse.Click at coordinate("640", "529", "left") Macro.Pause("100") end function
function("check wins") begin if Color.At coordinate is (RGB)("208", "208", "208", "643", "526") and Color.At coordinate is (RGB)("255", "252", "245", "511", "406") begin Variable.Increment (Math)("black won") Variable.Set("red won", "0") end if Color.At coordinate is (RGB)("207", "207", "207", "597", "483") and Color.At coordinate is (RGB)("235", "209", "149", "512", "410") begin Variable.Increment (Math)("red won") Variable.Set("black won", "0") end if Color.At coordinate is (RGB)("89", "89", "89", "89", "312") begin Variable.Set("red won", "0") Variable.Set("black won", "0") end end function begin Variable.Set("red won", "0") Variable.Set("black won", "0") Variable.Set("collumn 1 won", "0") Variable.Set("collumn 2 won", "0") Variable.Set("collumn 3 won", "0") begin loop("") if Variable.Is less than (Math)("red won", "5") begin Function.Execute("bet on red") end if Variable.Is less than (Math)("black won", "5") begin Function.Execute("bet on black") end if Variable.Is equal to("collumn 1 won", "3") begin Function.Execute("bet on collumn 2") Function.Execute("bet on collumn 3") end if Variable.Is equal to("collumn 2 won", "3") begin Function.Execute("bet on collumn 1") Function.Execute("bet on collumn 3") end if Variable.Is equal to("collumn 3 won", "3") begin Function.Execute("bet on collumn 1") Function.Execute("bet on collumn 2") end Function.Execute("spin") Function.Execute("check wins") Function.Execute("check collumn wins") Function.Execute("clear") end end
function("bet on collumn 1") begin Mouse.Click at coordinate("853", "607", "left") Macro.Pause("100") end function
function("bet on collumn 2") begin Mouse.Click at coordinate("902", "557", "left") Macro.Pause("100") end function
function("bet on collumn 3") begin Mouse.Click at coordinate("948", "513", "left") Macro.Pause("100") end function
function("check collumn wins") // COLLUMN 1 if Color.At coordinate is (RGB)("61", "61", "61", "819", "581") // 34 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "789", "558") // 31 BLACK ODD or Color.At coordinate is (RGB)("61", "61", "61", "762", "534") // 28 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "734", "510") // 25 RED ODD or Color.At coordinate is (RGB)("61", "61", "61", "707", "488") // 22 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "684", "470") // 19 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "659", "447") // 16 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "638", "433") // 13 BLACK ODD or Color.At coordinate is (RGB)("61", "61", "61", "613", "410") // 10 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "591", "391") // 7 RED ODD or Color.At coordinate is (RGB)("61", "61", "61", "571", "376") // 4 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "550", "358") // 1 RED ODD begin Variable.Increment (Math)("collumn 1 won") Variable.Set("collumn 2 won", "0") Variable.Set("collumn 3 won", "0") end // COLLUMN 2 if Color.At coordinate is (RGB)("61", "61", "61", "868", "535") // 35 BLACK ODD or Color.At coordinate is (RGB)("61", "61", "61", "839", "511") // 32 RED EVEN or Color.At coordinate is (RGB)("75", "75", "75", "814", "490") // 29 BLACK ODD or Color.At coordinate is (RGB)("61", "61", "61", "783", "469") // 26 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "759", "448") // 23 RED ODD or Color.At coordinate is (RGB)("61", "61", "61", "733", "428") // 20 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "710", "410") // 17 BLACK ODD or Color.At coordinate is (RGB)("61", "61", "61", "686", "391") // 14 RED EVEN or Color.At coordinate is (RGB)("89", "89", "89", "665", "373") // 11 BLACK ODD or Color.At coordinate is (RGB)("61", "61", "61", "641", "356") // 8 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "619", "341") // 5 RED ODD or Color.At coordinate is (RGB)("61", "61", "61", "600", "324") // 2 BLACK EVEN begin Variable.Increment (Math)("collumn 2 won") Variable.Set("collumn 1 won", "0") Variable.Set("collumn 3 won", "0") end // COLLUMN 3 if Color.At coordinate is (RGB)("61", "61", "61", "913", "492") // 36 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "885", "470") // 33 BLACK ODD or Color.At coordinate is (RGB)("61", "61", "61", "857", "453") // 30 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "829", "430") // 27 RED ODD or Color.At coordinate is (RGB)("61", "61", "61", "803", "411") // 24 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "779", "392") // 21 RED ODD or Color.At coordinate is (RGB)("61", "61", "61", "755", "376") // 18 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "731", "357") // 15 RED ODD or Color.At coordinate is (RGB)("61", "61", "61", "706", "342") // 12 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "859", "451") // 30 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "665", "308") // 6 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "646", "294") // 3 RED ODD begin Variable.Increment (Math)("collumn 3 won") Variable.Set("collumn 1 won", "0") Variable.Set("collumn 2 won", "0") end function
i've now captured all number locations on the table so i can add dozens/odds/evens and 1-18/19-36 if i want....thanks damagex for your nudge ,..its betting collumns as i want it to aswell,.still not right sure how to implement the martingale to kick in after i've betted on either red or black or the collumns or any other bet when not betting on red and black and lost...here's the code this far[code]function("spin") begin Mouse.Click at coordinate("632", "598", "left") Macro.Pause("9000") // Set the amount of time the roulette table needs before it shows which color won end function
function("clear") begin Mouse.Click at coordinate("466", "596", "left") Macro.Pause("100") // You might have to adjust this wait time, I don't know if the game has any movement detection end function
function("bet on red") begin Mouse.Click at coordinate("593", "485", "left") Macro.Pause("100") end function
function("bet on black") begin Mouse.Click at coordinate("640", "529", "left") Macro.Pause("100") end function
function("check wins") begin if Color.At coordinate is (RGB)("208", "208", "208", "643", "526") and Color.At coordinate is (RGB)("255", "252", "245", "511", "406") begin Variable.Increment (Math)("black won") Variable.Set("red won", "0") end if Color.At coordinate is (RGB)("207", "207", "207", "597", "483") and Color.At coordinate is (RGB)("235", "209", "149", "512", "410") begin Variable.Increment (Math)("red won") Variable.Set("black won", "0") end if Color.At coordinate is (RGB)("89", "89", "89", "89", "312") begin Variable.Set("red won", "0") Variable.Set("black won", "0") end end function begin Variable.Set("red won", "0") Variable.Set("black won", "0") Variable.Set("collumn 1 won", "0") Variable.Set("collumn 2 won", "0") Variable.Set("collumn 3 won", "0") begin loop("") if Variable.Is less than (Math)("red won", "5") begin Function.Execute("bet on red") end if Variable.Is less than (Math)("black won", "5") begin Function.Execute("bet on black") end if Variable.Is equal to("collumn 1 won", "3") begin Function.Execute("bet on collumn 2") Function.Execute("bet on collumn 3") end if Variable.Is equal to("collumn 2 won", "3") begin Function.Execute("bet on collumn 1") Function.Execute("bet on collumn 3") end if Variable.Is equal to("collumn 3 won", "3") begin Function.Execute("bet on collumn 1") Function.Execute("bet on collumn 2") end Function.Execute("spin") Function.Execute("check wins") Function.Execute("check collumn wins") Function.Execute("clear") end end
function("bet on collumn 1") begin Mouse.Click at coordinate("853", "607", "left") Macro.Pause("100") end function
function("bet on collumn 2") begin Mouse.Click at coordinate("902", "557", "left") Macro.Pause("100") end function
function("bet on collumn 3") begin Mouse.Click at coordinate("948", "513", "left") Macro.Pause("100") end function
function("check collumn wins") // COLLUMN 1 if Color.At coordinate is (RGB)("61", "61", "61", "819", "581") // 34 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "789", "558") // 31 BLACK ODD or Color.At coordinate is (RGB)("61", "61", "61", "762", "534") // 28 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "734", "510") // 25 RED ODD or Color.At coordinate is (RGB)("61", "61", "61", "707", "488") // 22 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "684", "470") // 19 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "659", "447") // 16 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "638", "433") // 13 BLACK ODD or Color.At coordinate is (RGB)("61", "61", "61", "613", "410") // 10 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "591", "391") // 7 RED ODD or Color.At coordinate is (RGB)("61", "61", "61", "571", "376") // 4 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "550", "358") // 1 RED ODD begin Variable.Increment (Math)("collumn 1 won") Variable.Set("collumn 2 won", "0") Variable.Set("collumn 3 won", "0") end // COLLUMN 2 if Color.At coordinate is (RGB)("61", "61", "61", "868", "535") // 35 BLACK ODD or Color.At coordinate is (RGB)("61", "61", "61", "839", "511") // 32 RED EVEN or Color.At coordinate is (RGB)("75", "75", "75", "814", "490") // 29 BLACK ODD or Color.At coordinate is (RGB)("61", "61", "61", "783", "469") // 26 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "759", "448") // 23 RED ODD or Color.At coordinate is (RGB)("61", "61", "61", "733", "428") // 20 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "710", "410") // 17 BLACK ODD or Color.At coordinate is (RGB)("61", "61", "61", "686", "391") // 14 RED EVEN or Color.At coordinate is (RGB)("89", "89", "89", "665", "373") // 11 BLACK ODD or Color.At coordinate is (RGB)("61", "61", "61", "641", "356") // 8 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "619", "341") // 5 RED ODD or Color.At coordinate is (RGB)("61", "61", "61", "600", "324") // 2 BLACK EVEN begin Variable.Increment (Math)("collumn 2 won") Variable.Set("collumn 1 won", "0") Variable.Set("collumn 3 won", "0") end // COLLUMN 3 if Color.At coordinate is (RGB)("61", "61", "61", "913", "492") // 36 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "885", "470") // 33 BLACK ODD or Color.At coordinate is (RGB)("61", "61", "61", "857", "453") // 30 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "829", "430") // 27 RED ODD or Color.At coordinate is (RGB)("61", "61", "61", "803", "411") // 24 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "779", "392") // 21 RED ODD or Color.At coordinate is (RGB)("61", "61", "61", "755", "376") // 18 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "731", "357") // 15 RED ODD or Color.At coordinate is (RGB)("61", "61", "61", "706", "342") // 12 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "859", "451") // 30 RED EVEN or Color.At coordinate is (RGB)("61", "61", "61", "665", "308") // 6 BLACK EVEN or Color.At coordinate is (RGB)("61", "61", "61", "646", "294") // 3 RED ODD begin Variable.Increment (Math)("collumn 3 won") Variable.Set("collumn 1 won", "0") Variable.Set("collumn 2 won", "0") end function [/code]
|