Here's a function for calculating VPP for "limit full-ring games" ONLY.
It does it for all limits (from $0.02/$0.04 to $50/$100 or whatever..., they
just have to be limit games and full ring)
I haven't tested this function yet, its just a template. But i think it should work...
Reason i posted this was in case anyone wanted to turn this template into a
general VPP function for all holdem games (limit, no-lmit, six max, heads up, etc).
Probably best approach is to decipher the numbering convetion of holdem_limit.limit_id,
but this approach below can work as well, but it may make for a very long function once u
add all those variants in (instead of simplying using greater or less than signs once
u decipher the limit_id scheme).
Once u get the function for calculating VPPs, calculating FPPs is just a matter of multiplying
your VPPs by your tier (e.g. gold 2, Platinum 2.5, supernova 3.5, etc).
sum(if[(
holdem_limit.limit_name = '$0.02/$0.04' OR
holdem_limit.limit_name = '$0.05/$0.10' OR
holdem_limit.limit_name = '$0.10/$0.20' OR
holdem_limit.limit_name = '$0.25/$0.50' OR
holdem_limit.limit_name = '$0.50/$1' OR
holdem_limit.limit_name = '$1/$2') And
holdem_hand_summary.amt_rake >= .40 OR
holdem_hand_summary.amt_rake >= 1, 1, 0] +
if[holdem_hand_summary.amt_rake >= 3, 1, 0] +
if[holdem_hand_summary.amt_rake >= 5, 1, 0])
