gui
gui
  • Threads: 1
  • Posts: 15
Joined: Oct 27, 2021
October 27th, 2021 at 10:37:50 PM permalink
hello everyone, new and new to programming, need help programming autobet wincraps.
I try but do not understand, so charitable soul, please, besides I am not bilingual and French, it does not help.
my wish, to increase and decrease the bets automatically in the event of gain or loss, so far no problem.
but I would like all bets to follow this progression, not just the bet that won.
example, I bet $ 1 on each place 4,5,6,8,9,10.
if 7 comes out all lost then everything increases. it works great with autoplay.
but if the 6 comes out, he lowers the bet of the 6, I would like all the bets to drop?
here I hope someone can help me, thank you in advance
BleedingChipsSlowly
BleedingChipsSlowly
  • Threads: 23
  • Posts: 1033
Joined: Jul 9, 2010
Thanked by
gui
October 28th, 2021 at 2:23:40 AM permalink
Welcome to the forum, gui! I don’t use WinCraps myself, but this web site offers many examples of WinCraps auto-bet scripts you might find helpful:

https://www.cloudcitysoftware.com/brfiles.htm
“You don’t bring a bone saw to a negotiation.” - Robert Jordan, former U.S. ambassador to Saudi Arabia
gui
gui
  • Threads: 1
  • Posts: 15
Joined: Oct 27, 2021
October 28th, 2021 at 3:24:34 AM permalink
thanks i looked but my lack of knowledge doesn't help me at all
Dieter
Administrator
Dieter
  • Threads: 16
  • Posts: 5541
Joined: Jul 23, 2014
October 28th, 2021 at 5:30:55 AM permalink
Our wincraps experts may be asleep for some hours still, please be patient.
May the cards fall in your favor.
gui
gui
  • Threads: 1
  • Posts: 15
Joined: Oct 27, 2021
October 28th, 2021 at 6:43:22 AM permalink
a wincraps expert, the dream, I am waiting, thank you
gui
gui
  • Threads: 1
  • Posts: 15
Joined: Oct 27, 2021
October 29th, 2021 at 4:01:56 AM permalink
Is a wincraps expert available to help me?
DeMango
DeMango
  • Threads: 36
  • Posts: 2958
Joined: Feb 2, 2010
October 29th, 2021 at 6:16:05 AM permalink
So who is this sleepyhead? Steen?
When a rock is thrown into a pack of dogs, the one that yells the loudest is the one who got hit.
Dieter
Administrator
Dieter
  • Threads: 16
  • Posts: 5541
Joined: Jul 23, 2014
October 29th, 2021 at 7:27:26 AM permalink
Quote: DeMango

So who is this sleepyhead? Steen?
link to original post



I merely noted the time difference between the post and daytime where most of the members are.

Hopefully someone can jump in with some experience scripting autobets in wincraps classic.

As far as old posts, https://wizardofvegas.com/forum/gambling/betting-systems/16954-craps-field2place-strategy/2/#post325170 may be helpful. I don't know if YCBOT still comes online, but the example bet helped me understand the format a bit. (I am not a WinCraps expert.)

I think there are other people around here who use WinCraps scripting.
May the cards fall in your favor.
gui
gui
  • Threads: 1
  • Posts: 15
Joined: Oct 27, 2021
October 29th, 2021 at 8:10:38 AM permalink
thank you for the link, but nothing to do I must be very very stupid
gui
gui
  • Threads: 1
  • Posts: 15
Joined: Oct 27, 2021
October 29th, 2021 at 11:11:24 AM permalink
I did that but obviously does not work
When . . .
A point is decided "against" any number
then . . .
Bet $ 1 on all Place bets
When . . .
Place 4 has won each time
Place 5 has won each time
Place 6 has won each time
Place 8 has won each time
Place 9 has won each time
Place 10 has won each time
Do this . . .
Subtract $ 5 from all Place bets
When . . .
Place 4 has lost each time
Place 5 has lost each time
Place 6 has lost each time
Place 8 has lost each time
Place 9 has lost each time
Place 10 has lost each time
Do this . . .
Add $ 10 to all Place bets
gui
gui
  • Threads: 1
  • Posts: 15
Joined: Oct 27, 2021
October 29th, 2021 at 10:41:05 PM permalink
I did better last night but still problems:
-I ask to go down $ 5 but how not to go below $ 1?
-how to do autoroll on wincraps pro?
thank you
If A Point is decided AGAINST any(4, 5, 6, 8, 9, 10)
Or Initializing script
Then
Bet $1 on Place4, Place5, Place6, Place8, Place9, Place10 :
AutoHandle Winning Bets = "Same bet"
EndIf
If Place4 wins Or Place5 wins Or Place6 wins Or Place8 wins Or Place9 wins Or Place10 wins Then
Subtract $5 on Place4, Place5, Place6, Place8, Place9, Place10
EndIf
If Place4 losses Or Place5 losses Or Place6 losses Or Place8 losses Or Place9 losses Or Place10 losses Then
Add $10 on Place4, Place5, Place6, Place8, Place9, Place10
EndIf
gui
gui
  • Threads: 1
  • Posts: 15
Joined: Oct 27, 2021
October 30th, 2021 at 2:29:54 AM permalink
modification but still problems
If A point is established on any(4, 5, 6, 8, 9, 10)
Or Initializing script Then

EndIf
If Place4 losses Or Place5 losses Or Place6 losses Or Place8 losses Or Place9 losses Or Place10 losses Then
Add $15 on Place4, Place5, Place6, Place8, Place9, Place10
EndIf
If Place4 > $6 Or Place5 > $6 Or Place6 > $6 Or Place8 > $6 Or Place9 > $6 Or Place10 > $6
And Place4 wins Or Place5 wins Or Place6 wins Or Place8 wins Or Place9 wins Or Place10 wins Then
Subtract $5 on Place4, Place5, Place6, Place8, Place9, Place10
EndIf
If Place4 < $6 Or Place5 < $6 Or Place6 < $6 Or Place8 < $6 Or Place9 < $6 Or Place10 < $6
And Place4 wins Or Place5 wins Or Place6 wins Or Place8 wins Or Place9 wins Or Place10 wins Then
Bet $1 on all(Place bets)
EndIf
Tanko
Tanko
  • Threads: 0
  • Posts: 1199
Joined: Apr 22, 2013
October 30th, 2021 at 6:26:57 AM permalink
Try using the checkstacks.

To save time, I only coded for for place6 and place8 bets, and limited the max bet to $42. You can easily change that.

Starting with $6 bets. Increase by $6 after every loss, and decrease by $6 after every win, to a minimum $6 bet.

I ran it with the 35k Zumma rolls. It held up well for the first 15k rolls, but ended up losing $15K

If

   initializing script

Then

   cs1 = 0

EndIf

If

   cs1 =< 0

Then

   cs1 = 0

EndIf


If

   dice total = any(7)

Then

   add 1 on cs1

EndIf


If

   cs1 = 0

Then

   place6 = 6

EndIf

If

   cs1 = 0

Then

   place8 = 6

EndIf

If

   cs1 = 1

Then

   place6 = 12

EndIf

If

   cs1 = 1

Then

   place8 = 12

EndIf

If

   cs1 = 2

Then

   place6 = 18

EndIf

If

   cs1 = 2

Then

   place8 = 18

EndIf

If

   cs1 = 3

Then

   place6 = 24

EndIf

If

   cs1 = 3

Then

   place8 = 24

EndIf

If

   cs1 = 4

Then

   place6 = 30

EndIf

If

   cs1 = 4

Then

   place8 = 30

EndIf

If

   cs1 = 5

Then

   place6 = 36

EndIf

If

   cs1 = 5

Then

   place8 = 36

EndIf

If

   cs1 > 5

Then

   place6 = 42

EndIf

If

   cs1 > 5

Then

   place8 = 42

EndIf

If

   place6 wins

Then

   subtract 1 from cs1

EndIf

If

   place8 wins

Then

   subtract 1 from cs1


EndIf
gui
gui
  • Threads: 1
  • Posts: 15
Joined: Oct 27, 2021
October 30th, 2021 at 6:33:49 AM permalink
thank you i try
gui
gui
  • Threads: 1
  • Posts: 15
Joined: Oct 27, 2021
October 30th, 2021 at 7:04:28 AM permalink
better and better thank you very much, a problem always present, if the 7 comes out outside the point is not established, the stakes increase anyway
Steen
Steen
  • Threads: 0
  • Posts: 126
Joined: Apr 7, 2014
Thanked by
Dieter
October 31st, 2021 at 5:37:22 AM permalink
Quote: gui

modification but still problems
If A point is established on any(4, 5, 6, 8, 9, 10)
Or Initializing script Then

EndIf
If Place4 losses Or Place5 losses Or Place6 losses Or Place8 losses Or Place9 losses Or Place10 losses Then
Add $15 on Place4, Place5, Place6, Place8, Place9, Place10
EndIf
If Place4 > $6 Or Place5 > $6 Or Place6 > $6 Or Place8 > $6 Or Place9 > $6 Or Place10 > $6
And Place4 wins Or Place5 wins Or Place6 wins Or Place8 wins Or Place9 wins Or Place10 wins Then
Subtract $5 on Place4, Place5, Place6, Place8, Place9, Place10
EndIf
If Place4 < $6 Or Place5 < $6 Or Place6 < $6 Or Place8 < $6 Or Place9 < $6 Or Place10 < $6
And Place4 wins Or Place5 wins Or Place6 wins Or Place8 wins Or Place9 wins Or Place10 wins Then
Bet $1 on all(Place bets)
EndIf
link to original post



I'd be happy to give you a hand here. Let's break it down one auto-bet at a time.

Your first auto-bet tests some conditions but takes no action:
If A point is established on any(4, 5, 6, 8, 9, 10) 
Or Initializing script Then

EndIf

You should enter one or more actions between "Then" and "EndIf" otherwise these lines are useless and unnecessary. In an earlier post you had some actions listed there, so I'll assume you accidentally deleted them and add them back:
If A point is established on any(4, 5, 6, 8, 9, 10) 
Or Initializing script Then
Bet $1 on Place4, Place5, Place6, Place8, Place9, Place10 :
AutoHandle Winning Bets = "Same bet"
EndIf

There's nothing wrong with this per se but it's probably not doing what you expect. As written, the conditions will be satisfied and action taken on every roll as long as a point is established. This is the same as the "While" condition you used in WinCraps Classic. Did you perhaps only want to take these actions when a point is first established? Or perhaps only when you have no Place bets?

Let's simplify it a bit. Since you're including all the points, you can just say "a point is established" or even simpler, you can just say "point", and since you're including all the Place bets, you can just say "all(Place bets)" as follows:
If point Or Initializing script Then
Bet $1 on all(Place bets) :
AutoHandle Winning Bets = "Same bet"
EndIf

Assuming you only want to take these actions when a point is first established, you should add a condition like this:
If (point and last roll was a comeout roll) Or Initializing script Then
Bet $1 on all(Place bets) :
AutoHandle Winning Bets = "Same bet"
EndIf

Another thing to think about: you've set the "Autohandle winning bets" feature here but not the "Autohandle losing bets" feature. Not that it's necessary. You certainly don't have to set either one in your script but if your script depends on them (see below) then you have to open the Auto-play screen yourself each time you play and ensure they're properly set. Sometimes it's just easier to include them both in the script so you don't have to remember to check them all the time.

I'm assuming you've set the "Adjust Bet Amounts" feature to one of the auto modes (Auto-play screen) and therefore your $1 Place bets will adjust to 5,5,6,6,5,5 across.

Next,
If Place4 losses Or Place5 losses Or Place6 losses Or Place8 losses Or Place9 losses Or 
Place10 losses Then
Add $15 on Place4, Place5, Place6, Place8, Place9, Place10
EndIf

Again there's nothing wrong with this but it could be simplified for clarity. For example:
If any(Place bets lose) Then
Add $15 on all(Place bets)
EndIf

So here's where your script depends on the "Autohandle Losing Bets" feature. If it's set to "No bet" and a $5 Place bet loses then your "Add $15" command will result in a $15 Place bet but if it's set to "Same bet" then your "Add $15" will result in a $20 Place bet. This is because after each roll WinCraps first deals with winning and losing bets according to settings on the Auto-play screen and then it runs through your auto-bet script.

Next,
If Place4 > $6 Or Place5 > $6 Or Place6 > $6 Or Place8 > $6 Or Place9 > $6 Or Place10 > $6
And Place4 wins Or Place5 wins Or Place6 wins Or Place8 wins Or Place9 wins Or Place10 wins
Then
Subtract $5 on Place4, Place5, Place6, Place8, Place9, Place10
EndIf

Again, this can be simplified and probably should be because it's probably not doing what you think. According to the rules of precedence a logical "And" is evaluated before a logical "Or". Therefore "Place10 > $6 And Place4 wins" are being evaluated first and all the other Or's are evaluated separately. So a Place4 greater than $6 would be enough to make the conditions true. I'm guessing you wanted both a Place bet greater than $6 and a win to satisfy the conditions, so you could place parentheses around them like this:
If (Place4 > $6 Or Place5 > $6 Or Place6 > $6 Or Place8 > $6 Or Place9 > $6 Or Place10 > $6)
And (Place4 wins Or Place5 wins Or Place6 wins Or Place8 wins Or Place9 wins Or Place10 wins)
Then
Subtract $5 on Place4, Place5, Place6, Place8, Place9, Place10
EndIf

or you could simplify it like this:
If any(Place bets > $6) And any(Place bets win) Then
Subtract $5 from all(Place bets)
EndIf

Next,
If Place4 < $6 Or Place5 < $6 Or Place6 < $6 Or Place8 < $6 Or Place9 < $6 Or Place10 < $6
And Place4 wins Or Place5 wins Or Place6 wins Or Place8 wins Or Place9 wins Or Place10 wins
Then
Bet $1 on all(Place bets)
EndIf

This has the same logical problem as above so let's simplify it as follows:
If any(Place bets < $6) And any(Place bets win) Then
Bet $1 on all(Place bets)
EndIf

Lastly, make sure your auto-bets are not working against each other. Consider what happens on a seven-out. Your Place bets lose and your second auto-bet adds $15 to your Place bets. At this point I'm assuming your Place bets are off. Next a point is established and your first auto-bet bets $1 on all Place bets which overrides the $15 bets. So the $15 bets never see any action unless you make them work on the comeout roll. Additionally, your third auto-bet is rendered useless because your bets will never exceed $6.

I've made many assumptions here so you'll have to make adjustments wherever they're incorrect or tell me more specifically what you're trying to do.

Steen
gui
gui
  • Threads: 1
  • Posts: 15
Joined: Oct 27, 2021
October 31st, 2021 at 11:37:02 PM permalink
wow
so already thank you for the time it must have taken to make all this answer, it's huge.
I admit that on first reading I am totally lost. between the coding and my not perfect English, ouch ouch ouch
but I hold on and persevere because I want to get there
I have the impression that my basic script is very confused, so here I put the procedure that I would like to carry out (copy of my last email)
when the point is established
- bet $ 1 on each 4.5.6.8.9.10
-if wins same bet
-if 7 comes out, therefore place lost, increase by $ 10 on each
- if wins decrease by $ 5 on each
the main problem is:
-different descent than the ascent
-that the 7 exit if not established does not increase the stakes
-that the descent remains at a minimum of $ 1
example: mounted loser
$ 1 - $ 10 - $ 20 - $ 30... on each number placed
winning descent
... $ 25 - $ 20 - $ 15 - $ 10 - $ 5 - $ 1 -on each number placed

hoping to be a little clearer, thanks again
gui
gui
  • Threads: 1
  • Posts: 15
Joined: Oct 27, 2021
November 1st, 2021 at 12:11:57 AM permalink
after testing always the same problem:
$ 1 on each seat ok
lose goes up to $ 16 on each, perfect
the point is established again, ok
example the 4 comes out, winning, the bets should go down to $ 11 but they go down to $ 1
?????
If any(Place bets >= $6) And any(Place bets win) Then
Subtract $5 from all(Place bets)
EndIf

this line of code does not work
and I do not know why
gui
gui
  • Threads: 1
  • Posts: 15
Joined: Oct 27, 2021
November 1st, 2021 at 9:31:30 AM permalink
better and better, but still just 1 small failure:
when I am at $ 1, and I win, he goes to 0 (withdraws all bets) and puts back $ 1 on each as wanted but on the next roll of the dice so I lose one move each time ?? Why ??
thank you

If
Any(Place bets) less than $5 Then
Bet $1 on all(Place bets)
EndIf
If any(Place bets lose) Then
Add $15 on all(Place bets)
EndIf
If any(Place bets win) Then
Subtract $5 from all(Place bets)
EndIf
Steen
Steen
  • Threads: 0
  • Posts: 126
Joined: Apr 7, 2014
November 1st, 2021 at 11:11:20 AM permalink
Quote: gui

better and better, but still just 1 small failure:
when I am at $ 1, and I win, he goes to 0 (withdraws all bets) and puts back $ 1 on each as wanted but on the next roll of the dice so I lose one move each time ?? Why ??
thank you

If
Any(Place bets) less than $5 Then
Bet $1 on all(Place bets)
EndIf
If any(Place bets lose) Then
Add $15 on all(Place bets)
EndIf
If any(Place bets win) Then
Subtract $5 from all(Place bets)
EndIf
link to original post



Gui, this is happening due to the order of your auto-bets. If you want to enforce a minimum amount then you should do that after you've made adjustments to your bets. So just move your first auto-bet below the other two auto-bets like this:
If any(Place bets lose) Then
Add $15 on all(Place bets)
EndIf
If any(Place bets win) Then
Subtract $5 from all(Place bets)
EndIf
If Any(Place bets) less than $5 Then
Bet $1 on all(Place bets)
EndIf


Of course this is just one way to do it. There are many ways to accomplish the same thing and it depends on what settings you've chosen for other features (like auto-adjust and bias). For example, since you're mentioning $1, $11, and $16 Place bets, I must assume you've set the "Adjust Bet Amounts" feature to manual. This is acceptable, however you'll be shorted on the payoff whenever the amount bet does not square with the payoff ratio.

For example, the Place4 pays 9 to 5, so an $11 bet should pay $19.80. However, you'll only be paid $19 (assuming a table with no less than $1 checks). You'll be gifting the casino an extra 80 cents for every win. Most dealers will try to help you and point this out but if you insist on making your $11 bet then they'll book it.

If you'll make the change I suggested then you should no longer see any $11 or $16 bets. This was happening because your auto-bet setting minimum $1 bets was acted on before your auto-bet which added $15.

Just remember, your Auto-bet script is invoked after each roll and after the Auto-play features have acted. It starts at the top of the script and progresses downward evaluating every line until it reaches the bottom. You can redirect the flow if you like but eventually it must reach the bottom before the next roll can take place. You can easier see this by turning on the "Show steps during play" feature (Options menu) which will walk you through the script so you can see what's happening.

Steen
Last edited by: Steen on Nov 1, 2021
Steen
Steen
  • Threads: 0
  • Posts: 126
Joined: Apr 7, 2014
November 1st, 2021 at 12:09:31 PM permalink
Quote: gui

If any(Place bets >= $6) And any(Place bets win) Then
Subtract $5 from all(Place bets)
EndIf

this line of code does not work
and I do not know why
link to original post


It's working fine for me but it depends on what your other lines are doing, the order they're acted on, and your auto-play settings.

Steen
Steen
Steen
  • Threads: 0
  • Posts: 126
Joined: Apr 7, 2014
November 1st, 2021 at 1:07:59 PM permalink
Quote: gui

wow
so already thank you for the time it must have taken to make all this answer, it's huge.
I admit that on first reading I am totally lost. between the coding and my not perfect English, ouch ouch ouch
but I hold on and persevere because I want to get there
I have the impression that my basic script is very confused, so here I put the procedure that I would like to carry out (copy of my last email)
when the point is established
- bet $ 1 on each 4.5.6.8.9.10
-if wins same bet
-if 7 comes out, therefore place lost, increase by $ 10 on each
- if wins decrease by $ 5 on each
the main problem is:
-different descent than the ascent
-that the 7 exit if not established does not increase the stakes
-that the descent remains at a minimum of $ 1
example: mounted loser
$ 1 - $ 10 - $ 20 - $ 30... on each number placed
winning descent
... $ 25 - $ 20 - $ 15 - $ 10 - $ 5 - $ 1 -on each number placed

hoping to be a little clearer, thanks again
link to original post



Gui, there are again many ways to do this. The easiest I can think of in this case is to use the Auto-play feature and write your script like this:
If Initializing script Then
AutoHandle Winning Bets = "Same bet - 5$" :
Autohandle Losing Bets = "Same bet + 10$"
EndIf

If Any(Place bets) less than $5 Then
Bet $1 on all(Place bets)
EndIf

One slight problem is that you've said you wanted to increase $10 on each loss, but in reality your list shows a $9 increase on the first loss and $10 increases on subsequent losses. To accommodate this you can adjust the first increase by adding an additional auto-bet such as this:
If Any(Place bets) = $11 Then
Bet $10 on all(Place bets)
EndIf


Note: I would again recommend that you play with correctly adjusted amounts to reap your full rewards.

If you want to increase and/or decrease your bets by consistent amounts then it's very easy to do, but if you want to vary your bets by irregular amounts which are not easily defined by some formula then you either have to add more code to test the conditions for which each bet should be made, or you can utilize something like checkstacks to make it easier. WinCraps' help file has a "Discussion and Examples" section which shows how to do this. My web site has a page containing many free scripts which also illustrate how to do this.

https://cloudcitysoftware.com/brfiles.htm

Have fun!

Steen
YouCanBetOnThat
YouCanBetOnThat
  • Threads: 14
  • Posts: 96
Joined: Nov 7, 2012
November 1st, 2021 at 2:39:43 PM permalink
<DELETED>
YouCanBetOnThat.com, a podcast for the recreational gambler
gui
gui
  • Threads: 1
  • Posts: 15
Joined: Oct 27, 2021
November 2nd, 2021 at 8:24:43 AM permalink
thank you and thank you again for the work and the time used to design wincraps and to answer beginners like me
the script works but for all of you unfortunately the wealth is not yet there
thanks again
Steen
Steen
  • Threads: 0
  • Posts: 126
Joined: Apr 7, 2014
November 5th, 2021 at 9:15:12 AM permalink
Quote: gui

thank you and thank you again for the work and the time used to design wincraps and to answer beginners like me
the script works but for all of you unfortunately the wealth is not yet there
thanks again
link to original post


After looking at this again, I see that the last script I suggested only handles winning Place bets individually whereas you wanted them all handled simultaneously. So here's an amended script for you:
If Initializing script Then
AutoHandle Winning Bets = "Same bet" :
Autohandle Losing Bets = "Same bet"
EndIf

If any(Place bets lose) Then
Add $10 on all(Place bets)
ElseIf any(Place bets win) Then
Subtract $5 from all(Place bets)
EndIf

If Any(Place bets) < $5 Then
Bet $1 on all(Place bets)
ElseIf Any(Place bets) = $11 Then
Bet $10 on all(Place bets)
EndIf


Steen
  • Jump to: