i want to make a custom stat that calculates my VIP-Points on Betfred Poker (BFP), that i earn per MGR. But as i'm completely new to custom stats, i'm a little bit lost ^^. Maybe you can help me out (i only want to calculate for the highest Level "Diamond")?
GOAL: Calculate the BFP for every hand (if nessesary) and display them as a sum in the "General" tab behind each played limit.
I can describe how the stat should look in general, but i don't know how to translate it to the correct syntax and how to implement that in PT3:
- there are 8 different level of rake (MGR) taken
- for each level different BFP amounts are granted
- as i only need it for the VIP level diamond, the BFP are fix for each level
so the general calculation should look like this, right (the amounts are real values, taken from the betfred site)?
- Code: Select all
if[holdem_hand_summary.amt_mgr >= 0.1 AND holdem_hand_summary.amt_mgr <= 0.25] -> BFP = 0.25
if[holdem_hand_summary.amt_mgr >= 0.26 AND holdem_hand_summary.amt_mgr <= 0.50] -> BFP = 2
if[holdem_hand_summary.amt_mgr >= 0.51 AND holdem_hand_summary.amt_mgr <= 1.00] -> BFP = 4
if[holdem_hand_summary.amt_mgr >= 1.01 AND holdem_hand_summary.amt_mgr <= 1.50] -> BFP = 7
if[holdem_hand_summary.amt_mgr >= 1.51 AND holdem_hand_summary.amt_mgr <= 2.00] -> BFP = 9
if[holdem_hand_summary.amt_mgr >= 2.01 AND holdem_hand_summary.amt_mgr <= 2.50] -> BFP = 13
if[holdem_hand_summary.amt_mgr >= 2.51 AND holdem_hand_summary.amt_mgr <= 3.00] -> BFP = 15
if[holdem_hand_summary.amt_mgr >= 3.01 AND holdem_hand_summary.amt_mgr <= 5.00] -> BFP = 15
What do i have to do to convert this to a real stat and how do i do it?
Thank you very much for your help in advance!
