Icon Command?

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

Icon Command?

Postby BeeRanch » Wed Mar 03, 2010 5:57 pm

I am attempting to make my own auto rate system in a custom HUD for cash PL Omaha. Is there a command to return a specific icon?

Lets say that I want to show the money bag icon for tight players:

if( (cnt_vpip / cnt_hands) * 100<20 ,MONEYBAG ICON ,'' )

or maybe format((cnt_vpip / cnt_hands) * 100<20, MONEYBAG ICON)

Thanks
BeeRanch
 
Posts: 6
Joined: Fri Feb 27, 2009 2:50 pm

Re: Icon Command?

Postby WhiteRider » Wed Mar 03, 2010 6:51 pm

You don't need to make a custom stat - you can just change the auto rate rules.
You might be able to do something like you're trying (if you prefer to go that way) but you'll probably find it easiest to duplicate the existing Player Icon stat and change the Format Expression to insert your own number instead of "val_icon+1" - you'll need a pretty complicated IF statement, though.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Icon Command?

Postby BeeRanch » Wed Mar 03, 2010 7:16 pm

The Auto Rate feature would certainly be the easy way to do it, unfortunately is does not function for Omaha players.

Again, Is there a command that returns a specific icon?

Thanks
BeeRanch
 
Posts: 6
Joined: Fri Feb 27, 2009 2:50 pm

Re: Icon Command?

Postby BeeRanch » Wed Mar 03, 2010 7:20 pm

I will try the val_icon+1 command

thanks.
BeeRanch
 
Posts: 6
Joined: Fri Feb 27, 2009 2:50 pm

Re: Icon Command?

Postby WhiteRider » Thu Mar 04, 2010 12:04 pm

Sorry - I didn't notice that you are playing omaha.

"val_icon+1" itself won't work unless you add your own val_icon column, but I don't think a column is the way to go here, since you're wanting to compare other column values. Therefore you'll need a big IF statement in the format expression.
If you can't get it working let us know.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests