Author |
Message |
|
|
Post subject: |
Re: Roulette bot version 2 |
|
|
I finally figured out what the problem is. There is a variable in the loop that will always place "Place bet on red" after some time, regardless of what came before, because it is the beginning of the "loop". The loop should start with a variable that will determine what the loop ended on - a loss or a win. I have no idea how to do this. Syrifina wrote: I'll take a look at the files. Quote: Is setting of the program important and can it affect the results? for instance, I couldn't install the virtual drive or "DirectX rendered" is in N/A status. Some settings definitely affect the performance, but in this case (for the ones you listed) I would say "no." Virtual Drivers are mainly for games that will not accept the Windows OEM drivers, but you have this working so there really isn't a need for them...and no they wouldn't affect the performance. If the game recognized that the inputs were from a 3rd party and they either wouldn't allow any input or gave you a message that stated something like "a macro has been detected" then that's where you could use the virtual drivers to get around this. In your case you are already running the macro and the game is accepting the inputs so you are fine with the Win API drivers. DirectX is sort of the same way. If the game was rendering in DirectX and you tried to take a screenshot (like with the Investigator tool), it could just give you a blank screen. So if you were unable to take screenshots because the game is rendering in DirectX, then you could enable DirectX capturing in BEM to get the screenshots for the Investigator tool. But again, you seem to have this working also, there's no need to enable DirectX capturing. If it doesn't always recognize the correct color, you just may need to do some adjusting. In your script sometimes you use "to be (RGB)" and sometimes "within (RGB)". Using "within range" is much better if the script is not recognizing the colors correctly; one is exactly that color and the other is a range or more values that are approximately that color. So in your original script (I haven't reviewed your new files yet) you are using a range of "10"...so maybe try "15" or a little more. *Well, first I would review the execution log to see if it's having an issue with one particular color or both and of course only adjust the ones it is having issues with. To be honest, if that's the only problem you are having now, adjusting the color range should fix it. I'll review the files but try that and see if it helps. I'll let you know if I see anything else.
Attachments: |
bet issue.png [ 59.79 KiB | Viewed 80 times ]
|
I finally figured out what the problem is. There is a variable in the loop that will always place "Place bet on red" after some time, regardless of what came before, because it is the beginning of the "loop". The loop should start with a variable that will determine what the loop ended on - a loss or a win. I have no idea how to do this.
[quote="Syrifina"]I'll take a look at the files.
[quote]Is setting of the program important and can it affect the results? for instance, I couldn't install the virtual drive or "DirectX rendered" is in N/A status.[/quote]Some settings definitely affect the performance, but in this case (for the ones you listed) I would say "no."
Virtual Drivers are mainly for games that will not accept the Windows OEM drivers, but you have this working so there really isn't a need for them...and no they wouldn't affect the performance. If the game recognized that the inputs were from a 3rd party and they either wouldn't allow any input or gave you a message that stated something like "a macro has been detected" then that's where you could use the virtual drivers to get around this. In your case you are already running the macro and the game is accepting the inputs so you are fine with the Win API drivers.
DirectX is sort of the same way. If the game was rendering in DirectX and you tried to take a screenshot (like with the Investigator tool), it could just give you a blank screen. So if you were unable to take screenshots because the game is rendering in DirectX, then you could enable DirectX capturing in BEM to get the screenshots for the Investigator tool. But again, you seem to have this working also, there's no need to enable DirectX capturing.
If it doesn't always recognize the correct color, you just may need to do some adjusting. In your script sometimes you use "to be (RGB)" and sometimes "within (RGB)". Using "within range" is much better if the script is not recognizing the colors correctly; one is exactly that color and the other is a range or more values that are approximately that color. So in your original script (I haven't reviewed your new files yet) you are using a range of "10"...so maybe try "15" or a little more. *Well, first I would review the execution log to see if it's having an issue with one particular color or both and of course only adjust the ones it is having issues with.
To be honest, if that's the only problem you are having now, adjusting the color range should fix it. I'll review the files but try that and see if it helps. I'll let you know if I see anything else.[/quote]
|
|
|
|
Posted: Tue Sep 24, 2024 7:36 pm |
|
|
|
|
|
Post subject: |
Re: Roulette bot version 2 |
|
|
Gigus wrote: Hey guys. Here is a small roulette bot, playing online roulette at PKR using the Martingale principle. A complete video tutorial is available on YouTube: http://www.youtube.com/watch?v=dv8ynssbH9wHere is the code for the macro (it is also available in the repository): Code: begin Variable.Set("bet", "{MinimumBet}") Function.Execute("Reset window location") begin loop() 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("PKR - let's play!", "yes", "1", "1") Window.Bring to front("PKR - let's play!", "yes") Macro.Pause("1000") end function
function("Place bet") begin loop("{bet}") Mouse.Click at coordinate("364", "403", "left") end begin Mouse.Click at coordinate("510", "697", "left") Macro.Pause("500") Color.Wait for color at coordinate to be within (RGB range)("10", "1", "1", "10", "1010", "312") Macro.Pause("500") end function
function("Check if we won") begin Variable.Set("won", "no") if Color.At coordinate is not within (RGB range)("2", "65", "64", "10", "978", "159") begin Variable.Set("won", "yes") end end function
You will need to create the following two variables: Code: {MinimumBet} 1 {MaximumBet} 64
Enjoy. I SEE
[quote="Gigus"]Hey guys.
Here is a small roulette bot, playing online roulette at PKR using the Martingale principle.
A complete video tutorial is available on [b]You[color=#BF0000]Tube[/color][/b]: http://www.youtube.com/watch?v=dv8ynssbH9w
Here is the code for the macro (it is also available in the repository): [code] begin Variable.Set("bet", "{MinimumBet}") Function.Execute("Reset window location") begin loop() 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("PKR - let's play!", "yes", "1", "1") Window.Bring to front("PKR - let's play!", "yes") Macro.Pause("1000") end function
function("Place bet") begin loop("{bet}") Mouse.Click at coordinate("364", "403", "left") end begin Mouse.Click at coordinate("510", "697", "left") Macro.Pause("500") Color.Wait for color at coordinate to be within (RGB range)("10", "1", "1", "10", "1010", "312") Macro.Pause("500") end function
function("Check if we won") begin Variable.Set("won", "no") if Color.At coordinate is not within (RGB range)("2", "65", "64", "10", "978", "159") begin Variable.Set("won", "yes") end end function [/code]
You will need to create the following two variables: [code] {MinimumBet} 1 {MaximumBet} 64 [/code]
Enjoy.[/quote]
:) :) :) I SEE
|
|
|
|
Posted: Mon Mar 21, 2022 3:27 am |
|
|
|
|
|
Post subject: |
Re: Roulette bot version 2 |
|
|
Hi Guestnick, I hope you are doing well with your Strategy by doubling 8 times on a Colour Please don't get me wrong if I do questions on behalf, but to be honest I'm Math is not an opinion Right? Why is the maximum bet 64 if we take 1 and double it 8 times Attachment: The Calculator says 256 should be the maximum Bet Subsequently you need a Wallet of 256 * 2 - 1 = 511 Units to cover 9 Steps for One Color Whenever you Hit.... you are getting 1 Unit Profit but if you lose once you will never recover again Now just to clarify if your Max Bet should be 64 it is appropriate to say..... we take 1 and we double 6 Times to cover 7 Steps Subsequently we need a Wallet of 64 * 2 - 1 = 127 Units to cover 7 Steps for One Colour * 6 Colours (Black/Red/Even/Odd/High/Low) = 762 Pretending to get 10% profit out of it....This could be a real scenario Attachment:
Martingale_Test_Results.txt [37.3 KiB]
Downloaded 266 times
Please try yourself and let me know Attachment:
test;martingale.bem [182.59 KiB]
Downloaded 253 times
Predifine the variables like this Attachment:
Martingale.PNG [ 8.15 KiB | Viewed 1480 times ]
A friendly Advise..... Never double when we lose But when we Win Cheers
Hi Guestnick,
I hope you are doing well with your Strategy by doubling [b]8[/b] times on a Colour 8-)
Please don't get me wrong if I do questions on behalf, but to be honest I'm :? :? :?
Math is not an opinion Right? Why is the maximum bet [b]64[/b] if we take [b]1[/b] and double it [b]8[/b] times :?:
[attachment=3]Martingale_8.mp4[/attachment]
The Calculator says [b][size=150]256[/size][/b] should be the maximum Bet :!:
Subsequently you need a Wallet of [b]256[/b] * [b]2[/b] - 1 = [b]511[/b] Units to cover 9 Steps for [b][size=150]One Color[/size][/b] :!: :?:
Whenever you Hit.... you are getting [b]1 Unit Profit[/b] but if you lose once you will never recover again :!: :!:
Now just to clarify if your Max Bet should be [b][size=150]64[/size][/b] it is appropriate to say.....
we take [b][size=150]1[/size][/b] and we double [b][size=150]6[/size][/b] Times to cover [b][size=150]7 Steps[/size][/b] :!:
Subsequently we need a Wallet of [b][size=150]64 * 2 - 1 = 127[/size][/b] Units to cover [b][size=150]7 Steps[/size][/b] for One Colour [b][size=150]* 6 Colours[/size][/b] (Black/Red/Even/Odd/High/Low) [b][size=150]= 762[/size][/b] :!: :?:
[b]Pretending to get 10% profit out of it....[/b] This could be a real scenario :shock: [attachment=2]Martingale_Test_Results.txt[/attachment]
Please try yourself and let me know
[attachment=0]test;martingale.bem[/attachment]
Predifine the variables like this
[attachment=1]Martingale.PNG[/attachment]
A friendly Advise..... [b][size=200]Never double when we lose [/size][/b] :!: :!: But when we Win ;) Cheers
|
|
|
|
Posted: Thu Mar 17, 2022 7:58 am |
|
|
|
|
|
Post subject: |
Re: Roulette bot version 2 |
|
|
Hi Guestnick, I hope you are doing well with your Strategy by doubling 8 times on a Colour Please don't get me wrong if I do questions on behalf, but to be honest I'm Math is not an opinion Right? Why is the maximum bet 64 if we take 1 and double it 8 times Attachment: Martingale_8.mp4
Hi Guestnick,
I hope you are doing well with your Strategy by doubling 8 times on a Colour 8-)
Please don't get me wrong if I do questions on behalf, but to be honest I'm :? :? :?
Math is not an opinion Right? Why is the maximum bet 64 if we take 1 and double it 8 times :?:
[attachment=0]Martingale_8.mp4[/attachment]
|
|
|
|
Posted: Thu Mar 17, 2022 7:37 am |
|
|
|
|
|
Post subject: |
Re: Roulette bot version 2 |
|
|
In the script you provided, you have functions for both place bet and double bet. - "place bet" has a loop that will loop "bet" times - "double bet" does not have a loop and will only run once
It looks like the way you are using it you need to reverse this. Use "place bet" to only bet once at the beginning and "double bet" in a loop for "bet" times (or as you have it, "double" times)...It doesn't look like you're using the variables "double" or "doubleButton".
It also looks like you're missing the math to increase "MinimumBet". In the original code it's at the top in the "if Variable.Is equal to("won", "no")" part. You need to multiply it by 2 there...or use those variables for double/button.
In the script you provided, you have functions for both place bet and double bet. - "place bet" has a loop that will loop "bet" times - "double bet" does not have a loop and will only run once
It looks like the way you are using it you need to reverse this. Use "place bet" to only bet once at the beginning and "double bet" in a loop for "bet" times (or as you have it, "double" times)...It doesn't look like you're using the variables "double" or "doubleButton".
It also looks like you're missing the math to increase "MinimumBet". In the original code it's at the top in the "if Variable.Is equal to("won", "no")" part. You need to multiply it by 2 there...or use those variables for double/button.
|
|
|
|
Posted: Sat Feb 05, 2022 9:52 am |
|
|
|
|
|
Post subject: |
Re: Roulette bot version 2 |
|
|
Hi there,
Hopefully someone will still read this, it's been a while. I have been trying to implement the source code and it works amazing! However, since this is a perfect way to 'grind' roulette, doubling by multiplying the minimumbet simply takes a while. I mean, if I double 8 times, it has to place the minimumbet 64 times.
So I tried to write a new function to make use of the automated double bet button. This works. It reads when I lost and then doubles it, but only once. If I lose again it just skips back to minimumbet.
Am I doing something wrong with looping my double bet function?
Thanks in advance!
begin Variable.Set("bet", "{MinimumBet}") Variable.Set("double", "{DoubleButton}") Function.Execute("Reset window location") begin loop() 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") Function.Execute("Double bet") end end end
function("Reset window location") begin Window.Set location("Playtech - 0AR8584234 - Classic Roulette - Google Chrome", "yes", "1", "1") Window.Bring to front("Playtech - 0AR8584234 - Classic Roulette - Google Chrome", "yes") Macro.Pause("6000") end function
function("Place bet") begin loop("{bet}") Mouse.Click at coordinate relative to window("547", "567", "left", "Playtech - 0AR8584234 - Classic Roulette - Google Chrome", "yes") Variable.Set random number("ms", "700", "1500") Macro.Pause("{ms}") end begin Mouse.Click at coordinate relative to window("516", "734", "left", "Playtech - 0AR8584234 - Classic Roulette - Google Chrome", "yes") Macro.Pause("4000") end function
function("Double bet") begin Mouse.Click at coordinate relative to window("415", "735", "left", "Playtech - 0AR8584234 - Classic Roulette - Google Chrome", "yes") Variable.Set random number("ms", "2000", "2200") Macro.Pause("{ms}") end function
function("Check if we won") begin Variable.Set("won", "no") if Color.At coordinate is within (RGB range)("61", "61", "61", "10", "884", "162") begin Variable.Set("won", "yes") end end function
Hi there,
Hopefully someone will still read this, it's been a while. I have been trying to implement the source code and it works amazing! However, since this is a perfect way to 'grind' roulette, doubling by multiplying the minimumbet simply takes a while. I mean, if I double 8 times, it has to place the minimumbet 64 times.
So I tried to write a new function to make use of the automated double bet button. This works. It reads when I lost and then doubles it, but only once. If I lose again it just skips back to minimumbet.
Am I doing something wrong with looping my double bet function?
Thanks in advance!
begin Variable.Set("bet", "{MinimumBet}") Variable.Set("double", "{DoubleButton}") Function.Execute("Reset window location") begin loop() 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") Function.Execute("Double bet") end end end
function("Reset window location") begin Window.Set location("Playtech - 0AR8584234 - Classic Roulette - Google Chrome", "yes", "1", "1") Window.Bring to front("Playtech - 0AR8584234 - Classic Roulette - Google Chrome", "yes") Macro.Pause("6000") end function
function("Place bet") begin loop("{bet}") Mouse.Click at coordinate relative to window("547", "567", "left", "Playtech - 0AR8584234 - Classic Roulette - Google Chrome", "yes") Variable.Set random number("ms", "700", "1500") Macro.Pause("{ms}") end begin Mouse.Click at coordinate relative to window("516", "734", "left", "Playtech - 0AR8584234 - Classic Roulette - Google Chrome", "yes") Macro.Pause("4000") end function
function("Double bet") begin Mouse.Click at coordinate relative to window("415", "735", "left", "Playtech - 0AR8584234 - Classic Roulette - Google Chrome", "yes") Variable.Set random number("ms", "2000", "2200") Macro.Pause("{ms}") end function
function("Check if we won") begin Variable.Set("won", "no") if Color.At coordinate is within (RGB range)("61", "61", "61", "10", "884", "162") begin Variable.Set("won", "yes") end end function
|
|
|
|
Posted: Fri Feb 04, 2022 11:18 pm |
|
|
|
|
|
Post subject: |
Re: Roulette bot version 2 |
|
|
|
|
|
Posted: Mon Nov 16, 2020 2:31 am |
|
|
|
|
|
Post subject: |
Re: Roulette bot version 2 |
|
|
Example of bot working on live roulette
https://www.youtube.com/watch?v=cDNAbrO0jsY
|
|
|
|
Posted: Tue Oct 27, 2020 12:32 pm |
|
|
|
|
|
Post subject: |
Re: Roulette bot version 2 |
|
|
Gigus wrote: Hey guys. Here is a small roulette bot, playing online roulette at PKR using the Martingale principle. A complete video tutorial is available on YouTube: http://www.youtube.com/watch?v=dv8ynssbH9wHere is the code for the macro (it is also available in the repository): Code: begin Variable.Set("bet", "{MinimumBet}") Function.Execute("Reset window location") begin loop() 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("PKR - let's play!", "yes", "1", "1") Window.Bring to front("PKR - let's play!", "yes") Macro.Pause("1000") end function
function("Place bet") begin loop("{bet}") Mouse.Click at coordinate("364", "403", "left") end begin Mouse.Click at coordinate("510", "697", "left") Macro.Pause("500") Color.Wait for color at coordinate to be within (RGB range)("10", "1", "1", "10", "1010", "312") Macro.Pause("500") end function
function("Check if we won") begin Variable.Set("won", "no") if Color.At coordinate is not within (RGB range)("2", "65", "64", "10", "978", "159") begin Variable.Set("won", "yes") end end function
You will need to create the following two variables: Code: {MinimumBet} 1 {MaximumBet} 64
Enjoy. Is it complete or only an example? Thank you
[quote="Gigus"]Hey guys.
Here is a small roulette bot, playing online roulette at PKR using the Martingale principle.
A complete video tutorial is available on [b]You[color=#BF0000]Tube[/color][/b]: http://www.youtube.com/watch?v=dv8ynssbH9w
Here is the code for the macro (it is also available in the repository): [code] begin Variable.Set("bet", "{MinimumBet}") Function.Execute("Reset window location") begin loop() 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("PKR - let's play!", "yes", "1", "1") Window.Bring to front("PKR - let's play!", "yes") Macro.Pause("1000") end function
function("Place bet") begin loop("{bet}") Mouse.Click at coordinate("364", "403", "left") end begin Mouse.Click at coordinate("510", "697", "left") Macro.Pause("500") Color.Wait for color at coordinate to be within (RGB range)("10", "1", "1", "10", "1010", "312") Macro.Pause("500") end function
function("Check if we won") begin Variable.Set("won", "no") if Color.At coordinate is not within (RGB range)("2", "65", "64", "10", "978", "159") begin Variable.Set("won", "yes") end end function [/code]
You will need to create the following two variables: [code] {MinimumBet} 1 {MaximumBet} 64 [/code]
Enjoy.[/quote]
Is it complete or only an example? Thank you
|
|
|
|
Posted: Thu Oct 08, 2020 6:41 am |
|
|
|
|
|
Post subject: |
Re: Roulette bot version 2 |
|
|
I'll take a look at the files. Quote: Is setting of the program important and can it affect the results? for instance, I couldn't install the virtual drive or "DirectX rendered" is in N/A status. Some settings definitely affect the performance, but in this case (for the ones you listed) I would say "no." Virtual Drivers are mainly for games that will not accept the Windows OEM drivers, but you have this working so there really isn't a need for them...and no they wouldn't affect the performance. If the game recognized that the inputs were from a 3rd party and they either wouldn't allow any input or gave you a message that stated something like "a macro has been detected" then that's where you could use the virtual drivers to get around this. In your case you are already running the macro and the game is accepting the inputs so you are fine with the Win API drivers. DirectX is sort of the same way. If the game was rendering in DirectX and you tried to take a screenshot (like with the Investigator tool), it could just give you a blank screen. So if you were unable to take screenshots because the game is rendering in DirectX, then you could enable DirectX capturing in BEM to get the screenshots for the Investigator tool. But again, you seem to have this working also, there's no need to enable DirectX capturing. If it doesn't always recognize the correct color, you just may need to do some adjusting. In your script sometimes you use "to be (RGB)" and sometimes "within (RGB)". Using "within range" is much better if the script is not recognizing the colors correctly; one is exactly that color and the other is a range or more values that are approximately that color. So in your original script (I haven't reviewed your new files yet) you are using a range of "10"...so maybe try "15" or a little more. *Well, first I would review the execution log to see if it's having an issue with one particular color or both and of course only adjust the ones it is having issues with. To be honest, if that's the only problem you are having now, adjusting the color range should fix it. I'll review the files but try that and see if it helps. I'll let you know if I see anything else.
I'll take a look at the files.
[quote]Is setting of the program important and can it affect the results? for instance, I couldn't install the virtual drive or "DirectX rendered" is in N/A status.[/quote]Some settings definitely affect the performance, but in this case (for the ones you listed) I would say "no."
Virtual Drivers are mainly for games that will not accept the Windows OEM drivers, but you have this working so there really isn't a need for them...and no they wouldn't affect the performance. If the game recognized that the inputs were from a 3rd party and they either wouldn't allow any input or gave you a message that stated something like "a macro has been detected" then that's where you could use the virtual drivers to get around this. In your case you are already running the macro and the game is accepting the inputs so you are fine with the Win API drivers.
DirectX is sort of the same way. If the game was rendering in DirectX and you tried to take a screenshot (like with the Investigator tool), it could just give you a blank screen. So if you were unable to take screenshots because the game is rendering in DirectX, then you could enable DirectX capturing in BEM to get the screenshots for the Investigator tool. But again, you seem to have this working also, there's no need to enable DirectX capturing.
If it doesn't always recognize the correct color, you just may need to do some adjusting. In your script sometimes you use "to be (RGB)" and sometimes "within (RGB)". Using "within range" is much better if the script is not recognizing the colors correctly; one is exactly that color and the other is a range or more values that are approximately that color. So in your original script (I haven't reviewed your new files yet) you are using a range of "10"...so maybe try "15" or a little more. *Well, first I would review the execution log to see if it's having an issue with one particular color or both and of course only adjust the ones it is having issues with.
To be honest, if that's the only problem you are having now, adjusting the color range should fix it. I'll review the files but try that and see if it helps. I'll let you know if I see anything else.
|
|
|
|
Posted: Thu Jul 23, 2020 11:35 pm |
|
|
|
|