gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
76793 Posts in 13502 Topics by 1651 Members - Latest Member: Arnold99 November 21, 2024, 12:47:06 pm
*
gfx*gfx
gfx
WinMX World :: Forum  |  Metis Scripts and Help  |  Games  |  Pontoon
gfx
gfxgfx
 

Author Topic: Pontoon  (Read 5773 times)

0 Members and 1 Guest are viewing this topic.

Offline F£¥è®

  • Forum Member
Pontoon
« on: September 16, 2008, 04:30:43 pm »
Recently Gypsyroadhog commented on here that all the blackjack scripts he'd tried had faults,
so I thought I'd do a simple version that works.
OS Microsoft® Windows Vista™ Home Premium, Processor Intel(R) Core(TM)2 Quad CPU  Q8200  @ 2.33GHz, 2331 Mhz, 4 Core(s), 4 Logical Processor(s), Installed Physical Memory (RAM) 6.00 GB

Offline gypsyroadhog

  • Forum Member
Re: Pontoon
« Reply #1 on: September 18, 2008, 03:45:08 pm »
Well Done looks very good
will try it out later....thanks  :thumbs:

Offline gypsyroadhog

  • Forum Member
Re: Pontoon
« Reply #2 on: September 18, 2008, 07:15:16 pm »
Works fantastic and well layed out  :-D
Could you tell me where the scores file is kept as i couldnt see any directory in the script.
Apart from that...Well Done!!!

Offline p2p rules

  • Forum Member
Re: Pontoon
« Reply #3 on: September 18, 2008, 09:50:12 pm »
Yea I agree it works great. I changed the trigger word from !twist to !hit.
Thanks Flyer. :)

Offline F£¥è®

  • Forum Member
Re: Pontoon
« Reply #4 on: September 18, 2008, 10:11:14 pm »
!hi gypsy,
The scores are not stored they are just held in the variables 'punterscore' and dealerscore' until a new player starts the game.
If you need a permenant record and can't do it yourself please post back and I'll modify the script for you,

ps. glad you and P2P like the game cheers  :-D
OS Microsoft® Windows Vista™ Home Premium, Processor Intel(R) Core(TM)2 Quad CPU  Q8200  @ 2.33GHz, 2331 Mhz, 4 Core(s), 4 Logical Processor(s), Installed Physical Memory (RAM) 6.00 GB

Offline gypsyroadhog

  • Forum Member
Re: Pontoon
« Reply #5 on: September 19, 2008, 12:35:06 pm »
Hi Flyer
That would be great if you could do a permanant idividual score(so it keeps record of each players score)
also could you include !mystats
so when a player types that in it displays their wins/losses
Well Done!!!!

Offline F£¥è®

  • Forum Member
Re: Pontoon
« Reply #6 on: September 19, 2008, 04:27:05 pm »
Hi Gypsy,
As promised an updated version with all you asked for.
You will need to place a folder in your plugins/addons folder called blackjack,
also the path to it will need to be altered near the top of the script and also
in the !conclude section of the script.The stats are accessed by !bjstats,
hope this is what you needed   F£¥è®
OS Microsoft® Windows Vista™ Home Premium, Processor Intel(R) Core(TM)2 Quad CPU  Q8200  @ 2.33GHz, 2331 Mhz, 4 Core(s), 4 Logical Processor(s), Installed Physical Memory (RAM) 6.00 GB

Offline F£¥è®

  • Forum Member
Re: Pontoon
« Reply #7 on: September 19, 2008, 06:06:14 pm »
Ps. forgot to add, the path needs changing in the !bjstats section
OS Microsoft® Windows Vista™ Home Premium, Processor Intel(R) Core(TM)2 Quad CPU  Q8200  @ 2.33GHz, 2331 Mhz, 4 Core(s), 4 Logical Processor(s), Installed Physical Memory (RAM) 6.00 GB

Offline gypsyroadhog

  • Forum Member
Re: Pontoon
« Reply #8 on: September 19, 2008, 07:11:15 pm »
Thankyou Flyer
I will try it out tonight and i'm sure it will work fine
Thanks again  :-D

Offline F£¥è®

  • Forum Member
Re: Pontoon
« Reply #9 on: September 20, 2008, 11:33:55 am »
My apologise to Gypsy and anyone else who d/loaded this file,
You have probably noticed than when the win levels rise above 9 the stats output goes haywire.
please d/load the updated version and delete all the files in the blackjack folder for a fresh start

F£¥è®  :oops: 
OS Microsoft® Windows Vista™ Home Premium, Processor Intel(R) Core(TM)2 Quad CPU  Q8200  @ 2.33GHz, 2331 Mhz, 4 Core(s), 4 Logical Processor(s), Installed Physical Memory (RAM) 6.00 GB

Offline gypsyroadhog

  • Forum Member
Re: Pontoon
« Reply #10 on: September 20, 2008, 09:07:07 pm »
Well done Flyer
Works sweet as a nut  :smooth:

Offline gypsyroadhog

  • Forum Member
Re: Pontoon
« Reply #11 on: October 01, 2008, 09:57:55 pm »
Sorry to complain
but recently the pontoon has been adding up wrong and i deas?
here's an example

<Tekno> gypsyroadhog_ Cards = A Hs + 6 Ds = 7 or 17
<Tekno>  
<Tekno> !twist or !stay
 
 
<gypsyroadhog_> !twist
<Tekno> gypsyroadhog_ Cards = A Hs + 6 Ds + 10 Cs = 17
<Tekno>  
<Tekno> !twist or !stay
 
 
<gypsyroadhog_> !stay
<Tekno>  
<Tekno> Dealers Cards = 8 Ss + 4 Ss = 12
<Tekno> The Dealer has twisted and now has 8 Ss + 4 Ss + 9 Ss = 21
<Tekno>  
<Tekno> gypsyroadhog_ hand is higher than the Dealers and wins

Offline F£¥è®

  • Forum Member
Re: Pontoon
« Reply #12 on: October 02, 2008, 02:10:38 pm »
Hi Gypsy,
It's not that the game is adding wrong it's when the first 2 cards contain a 'ace' the selectwinner
section isn't functioning correctly.I've rearranged the order of it and hopefully this will remedy the
situation.Please replace the selectwinner section with this and post back with anymore probs.

Code: [Select]
<command type = "script" users = "_BOT_SELF_TRIGGER_">
<in>!selectwinner</in>
<out condition = "1" lvalue = "$AcardtotalA2$" rvalue = "21">#c21#The Dealer has #c7#'Pontoon' #c21#and wins</out>
<out type = "push" extdata = "dealerscore" condition = "1" lvalue = "$AcardtotalA2$" rvalue = "21"><operator type = "+" lvalue = "$dealerscore$" rvalue = "1"/></out>
<out type = "self" condition = "1" lvalue = "$AcardtotalA2$" rvalue = "21">!conclude</out>
<out type = "break" condition = "1" lvalue = "$AcardtotalA2$" rvalue = "21"/>
<out condition = "1" lvalue = "$AcardtotalA$" rvalue = "21">#c16#$punter$ #c21#has #c7#'Pontoon' #c21#and wins</out>
<out type = "push" extdata = "punterscore" condition = "1" lvalue = "$AcardtotalA$" rvalue = "21"><operator type = "+" lvalue = "$punterscore$" rvalue = "1"/></out>
<out type = "self" condition = "1" lvalue = "$AcardtotalA$" rvalue = "21">!conclude</out>
<out type = "break" condition = "1" lvalue = "$AcardtotalA$" rvalue = "21"/>
<out condition = "1" lvalue = "$twist2$" rvalue = "3">#c21#The Dealer has a #c7#five card trick #c21#and wins</out>
<out type = "push" extdata = "dealerscore" condition = "1" lvalue = "$twist2$" rvalue = "3"><operator type = "+" lvalue = "$dealerscore$" rvalue = "1"/></out>
<out type = "self" condition = "1" lvalue = "$twist2$" rvalue = "3">!conclude</out>
<out type = "break" condition = "1" lvalue = "$twist2$" rvalue = "3"/>
<out condition = "1" lvalue = "$twist$" rvalue = "3">#c16#$punter$ has a #c7#five card trick #c21#and wins</out>
<out type = "push" extdata = "punterscore" condition = "1" lvalue = "$twist$" rvalue = "3"><operator type = "+" lvalue = "$punterscore$" rvalue = "1"/></out>
<out type = "self" condition = "1" lvalue = "$twist$" rvalue = "3">!conclude</out>
<out type = "break" condition = "1" lvalue = "$twist$" rvalue = "3"/>
<out condition = "1" lvalue = "$AcardtotalA2$" rvalue = "$cardtotal$">#c21#Both players have the same total the dealer has the #c7#advantage #c21#and wins</out>
<out type = "push" extdata = "dealerscore" condition = "1" lvalue = "$AcardtotalA2$" rvalue = "$cardtotal$"><operator type = "+" lvalue = "$dealerscore$" rvalue = "1"/></out>
<out type = "self" condition = "1" lvalue = "$AcardtotalA2$" rvalue = "$cardtotal$">!conclude</out>
<out type = "break" condition = "1" lvalue = "$AcardtotalA2$" rvalue = "$cardtotal$"/>
<out condition = "3" lvalue = "$AcardtotalA$" rvalue = "$cardtotal2$">#c16#$punter$ #c21#hand is higher than the Dealers #c21#and wins</out>
<out type = "push" extdata = "punterscore" condition = "3" lvalue = "$AcardtotalA$" rvalue = "$cardtotal2$"><operator type = "+" lvalue = "$punterscore$" rvalue = "1"/></out>
<out type = "self" condition = "3" lvalue = "$AcardtotalA$" rvalue = "$cardtotal2$">!conclude</out>
<out type = "break" condition = "3" lvalue = "$AcardtotalA$" rvalue = "$cardtotal2$"/>
<out condition = "3" lvalue = "$cardtotal2$" rvalue = "$cardtotal$">#c21#The Dealers hand is higher than #c16#$punter$  #c21#and wins</out>
<out type = "push" extdata = "dealerscore" condition = "3" lvalue = "$cardtotal2$" rvalue = "$cardtotal$"><operator type = "+" lvalue = "$dealerscore$" rvalue = "1"/></out>
<out type = "self" condition = "3" lvalue = "$cardtotal2$" rvalue = "$cardtotal$">!conclude</out>
<out type = "break" condition = "3" lvalue = "$cardtotal2$" rvalue = "$cardtotal$"/>
<out condition = "1" lvalue = "$cardtotal2$" rvalue = "$cardtotal$">#c21#Both players have the same total the dealer has the #c7#advantage #c21#and wins</out>
<out type = "push" extdata = "dealerscore" condition = "1" lvalue = "$cardtotal2$" rvalue = "$cardtotal$"><operator type = "+" lvalue = "$dealerscore$" rvalue = "1"/></out>
<out type = "self" condition = "1" lvalue = "$cardtotal2$" rvalue = "$cardtotal$">!conclude</out>
<out type = "break" condition = "1" lvalue = "$cardtotal2$" rvalue = "$cardtotal$"/>
<out condition = "2" lvalue = "$cardtotal2$" rvalue = "$cardtotal$">#c16#$punter$ #c21#hand is higher than the Dealers #c21#and wins</out>
<out type = "push" extdata = "punterscore" condition = "2" lvalue = "$cardtotal2$" rvalue = "$cardtotal$"><operator type = "+" lvalue = "$punterscore$" rvalue = "1"/></out>
<out type = "self" condition = "2" lvalue = "$cardtotal2$" rvalue = "$cardtotal$">!conclude</out>
<out type = "break" condition = "2" lvalue = "$cardtotal2$" rvalue = "$cardtotal$"/>
<out condition = "2" lvalue = "$AcardtotalA2$" rvalue = "$AcardtotalA$">#c16#$punter$ #c21#hand is higher than the Dealers #c21#and wins</out>
<out type = "push" extdata = "punterscore" condition = "2" lvalue = "$AcardtotalA2$" rvalue = "$AcardtotalA$"><operator type = "+" lvalue = "$punterscore$" rvalue = "1"/></out>
<out type = "self" condition = "2" lvalue = "$AcardtotalA2$" rvalue = "$AcardtotalA$">!conclude</out>
<out type = "break" condition = "2" lvalue = "$AcardtotalA2$" rvalue = "$AcardtotalA$"/>
<out condition = "3" lvalue = "$AcardtotalA2$" rvalue = "$cardtotal$">#c21#The Dealers hand is higher than #c16#$punter$  #c21#and wins</out>
<out type = "push" extdata = "dealerscore" condition = "3" lvalue = "$AcardtotalA2$" rvalue = "$cardtotal$"><operator type = "+" lvalue = "$dealerscore$" rvalue = "1"/></out>
<out type = "self" condition = "3" lvalue = "$AcardtotalA2$" rvalue = "$cardtotal$">!conclude</out>
<out type = "break" condition = "3" lvalue = "$AcardtotalA2$" rvalue = "$cardtotal$"/>
<out condition = "3" lvalue = "$AcardtotalA2$" rvalue = "$AcardtotalA$">#c21#The Dealers hand is higher than #c16#$punter$ #c21#and wins</out>
<out type = "push" extdata = "dealerscore" condition = "3" lvalue = "$AcardtotalA2$" rvalue = "$AcardtotalA$"><operator type = "+" lvalue = "$dealerscore$" rvalue = "1"/></out>
<out type = "self" condition = "3" lvalue = "$AcardtotalA2$" rvalue = "$AcardtotalA$">!conclude</out>
<out type = "break" condition = "3" lvalue = "$AcardtotalA2$" rvalue = "$AcardtotalA$"/>
</command>

cheers F£¥è®
OS Microsoft® Windows Vista™ Home Premium, Processor Intel(R) Core(TM)2 Quad CPU  Q8200  @ 2.33GHz, 2331 Mhz, 4 Core(s), 4 Logical Processor(s), Installed Physical Memory (RAM) 6.00 GB

Offline gypsyroadhog

  • Forum Member
Re: Pontoon
« Reply #13 on: October 02, 2008, 03:56:20 pm »
Hi ive changed the scropt as you said and am trying it out again
Thanks for your help and time Flyer  :-D

Offline gypsyroadhog

  • Forum Member
Re: Pontoon
« Reply #14 on: October 07, 2008, 08:07:03 pm »
Hi another minor problem

<Tekno> The Dealer is now handing out the cards
<Tekno>  
<Tekno> gypsyroadhog_ Cards = A Hs + 7 Cs = 8 or 18
<Tekno>  
<Tekno> !twist or !stay
 
 
<gypsyroadhog_> !stay
<Tekno>  
<Tekno> Dealers Cards = A Cs + 8 Ss = 9 or 19
<Tekno> gypsyroadhog_ hand is higher than the Dealers and wins
<Tekno> gypsyroadhog_ wins = 58  .....  Dealers wins = 68

and i did change what you said Flyer  :cry:

Offline F£¥è®

  • Forum Member
Re: Pontoon
« Reply #15 on: October 08, 2008, 08:32:25 am »
Hi Gypsy,
It looks like I may need to rewrite the selectwinner section.I'm busy with other things at the mo,
but will definitely post an updated version in the next few days.
cheers F£¥è®.
OS Microsoft® Windows Vista™ Home Premium, Processor Intel(R) Core(TM)2 Quad CPU  Q8200  @ 2.33GHz, 2331 Mhz, 4 Core(s), 4 Logical Processor(s), Installed Physical Memory (RAM) 6.00 GB

Offline F£¥è®

  • Forum Member
Re: Pontoon
« Reply #16 on: October 18, 2008, 04:29:20 pm »
Sorry about the late reply but other projects have kept me pre-occupied
Added a few extra lines to the script and changed some around,also fixed a 'bug' that made the bot crash in certain conditions if the dealer has a 'five card trick'.
I've tested this for over 400 games abd it's worked flawlessley, but please post back if you find any bugs.

F£¥è®
OS Microsoft® Windows Vista™ Home Premium, Processor Intel(R) Core(TM)2 Quad CPU  Q8200  @ 2.33GHz, 2331 Mhz, 4 Core(s), 4 Logical Processor(s), Installed Physical Memory (RAM) 6.00 GB

Offline gypsyroadhog

  • Forum Member
Re: Pontoon
« Reply #17 on: October 19, 2008, 11:46:43 am »
Hi Flyer
Thanks for your time and effort
Will add this to my room today and start playing again
Thanks again  :-D

WinMX World :: Forum  |  Metis Scripts and Help  |  Games  |  Pontoon
 

gfxgfx
gfx
©2005-2024 WinMXWorld.com. All Rights Reserved.
SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
Page created in 0.006 seconds with 17 queries.
Helios Multi © Bloc
gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!