PDA

View Full Version : "na" as answer to my custom stat?



brunowillis
12-22-2008, 03:56 AM
Hi there,

im trying to create a custom stat for ipoker points, for example for Pokerplex. You will earn different points based on rake, for example 15 points for rake 2.76-3.00$ and 13.25 pointws for rake 2.51-2.75 (this is different on all ipoker sites and also vip level dependend).

So i tried (for the test only with the 2.51$-3.00$ raked hands):


Stat GroupName="Default" ColumnName="IpokerPoints" ValueExpressions="Sum(case when ph.RakeAmount > 275 then 15 when ph.RakeAmount <= 275 and ph.RakeAmount > 250 then 13.25 else 0 end) as MyIpokerPoints" Evaluate ="MyIpokerPoints" ColumnHeader="IpokerPoints" ColumnFormat="0" ColumnWidth="300" Tooltip="ShowsIpokerPoints" /

but unfortunately it always returns "na" when i add this custom stat inside hem.

Kerith
12-22-2008, 10:36 AM
I am not too familar with how custom stats work myself but I am using similar ones for other iPoker sites that were posted on 2+2. I just looked it it up and it uses "PKH.RakeAmount" (not "ph.") so that might be the problem.

brunowillis
12-22-2008, 01:16 PM
Ok i got it working for ipoker, that is it:


Stat GroupName="Default" ColumnName="Ipoker PPs" ValueExpressions="
Sum((case when PKH.RakeAmount between 301 and 500 then 20 else 0 end) +
(case when PKH.RakeAmount between 276 and 300 then 15 else 0 end) +
(case when PKH.RakeAmount between 251 and 275 then 13.25 else 0 end) +
(case when PKH.RakeAmount between 226 and 250 then 12 else 0 end) +
(case when PKH.RakeAmount between 201 and 225 then 10.75 else 0 end) +
(case when PKH.RakeAmount between 176 and 200 then 9.5 else 0 end) +
(case when PKH.RakeAmount between 151 and 175 then 8.25 else 0 end) +
(case when PKH.RakeAmount between 126 and 150 then 7 else 0 end) +
(case when PKH.RakeAmount between 101 and 125 then 5.75 else 0 end) +
(case when PKH.RakeAmount between 76 and 100 then 5 else 0 end) +
(case when PKH.RakeAmount between 51 and 75 then 4 else 0 end) +
(case when PKH.RakeAmount between 25 and 50 then 3 else 0 end) +
(case when PKH.RakeAmount between 10 and 24 then 1 else 0 end) +
(case when PKH.RakeAmount between 1 and 9 then 0.4 else 0 end))/1.0
as IpokerPPs" Evaluate="IpokerPPs" ColumnHeader="Ipoker\nPlayer Points" ColumnFormat="0.00" ColumnWidth="*" Tooltip="Ipoker Player Points earned" /

You can change it dependend on your Ipoker skin and VIP Level. the above setup is for pokerplex and maximum VIP. What cant be done is that you earn 50% more points when you start a new table.