Discuss how to create custom stats, reports and HUD profiles and share your creations.
Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators
by NastyRabbit » Wed May 30, 2012 11:25 am
Hi, i'm playing on winamax .fr and want to create a custom rakeback stat.
The ususal rakeback expression is this one : amt_rake_contributed * 4 * (your status coefficient)
But during happy hours ( 7pm>8.30pm and 0am>1.30am) rakeback is multiplicate by 1.5.
Is there a way i can create that custom stat ?
-
NastyRabbit
-
- Posts: 22
- Joined: Fri Dec 16, 2011 12:32 am
by kraada » Wed May 30, 2012 2:02 pm
Yes, the date a hand was played is cash_hand_player_statistics.date_played - you can extract the time from there.
date_played is between the intervals you want when the following is true:
extract(hour from cash_hand_player_statistics.date_played) = 19 OR extract(hour from cash_hand_player_statistics.date_played) = 0 OR
(extract(hour from cash_hand_player_statistics.date_played) = 20 AND extract(minute from cash_hand_player_statistics.date_played) < 30) OR (extract(hour from cash_hand_player_statistics.date_played) = 1 AND extract(minute from cash_hand_player_statistics.date_played) < 30)
The easiest thing to do is probably create a separate rakeback column using the normal rakeback value and the above addition just for happy hour bonus then you can track it separately or create a separate statistic to add it to the non-happy hour values.
-
kraada
- Moderator
-
- Posts: 54431
- Joined: Wed Mar 05, 2008 2:32 am
- Location: NY
Return to Custom Stats, Reports and HUD Profiles
Users browsing this forum: No registered users and 18 guests