Актуализируйте на php для парня)))
^switch[^form:chest_id.int(1)]{
^case[1]{$_fix_1[0.03] $_fix_2[0.07] $_fix_3[0.1] $_fix_4[0.13] $_chest_1[3] $_chest_2[10] $_chest_3[200] $_chest_4[7] $_chest_5[8] $_chest_6[4000]}
^case[2]{$_fix_1[0] $_fix_2[0] $_fix_3[0] $_fix_4[0] $_chest_1[20] $_chest_2[10] $_chest_3[200] $_chest_4[7] $_chest_5[8] $_chest_6[4000]}
^case[3]{$_fix_1[0.03] $_fix_2[0.06] $_fix_3[0.1] $_fix_4[0.13] $_chest_1[3] $_chest_2[12] $_chest_3[500] $_chest_4[5] $_chest_5[7] $_chest_6[10000]}
^case[4]{$_fix_1[0] $_fix_2[0] $_fix_3[0] $_fix_4[0] $_chest_1[10] $_chest_2[10] $_chest_3[285] $_chest_4[5] $_chest_5[7] $_chest_6[5700]}
^case[5]{$_fix_1[0] $_fix_2[0] $_fix_3[0] $_fix_4[0] $_chest_1[80] $_chest_2[10] $_chest_3[500] $_chest_4[5] $_chest_5[7] $_chest_6[10000]}
^case[6]{$_fix_1[0] $_fix_2[0] $_fix_3[0] $_fix_4[0] $_chest_1[30] $_chest_2[5] $_chest_3[30] $_chest_4[5] $_chest_5[7] $_chest_6[600]}
^case[7]{$_fix_1[0] $_fix_2[0] $_fix_3[0] $_fix_4[0] $_chest_1[180] $_chest_2[5] $_chest_3[30] $_chest_4[5] $_chest_5[7] $_chest_6[600]}
}
^switch[^form:arena_id.int(2)]{
^case[2]{$_cc(1)}
^case[3]{$_cc(1.35)}
^case[4]{$_cc(1.7 - $_fix_1)}
^case[5]{$_cc(2)}
^case[6]{$_cc(2.3 + $_fix_1)}
^case[7]{$_cc(2.6 + $_fix_2)}
^case[8]{$_cc(2.9 + $_fix_3)}
^case[9]{$_cc(3.2 + $_fix_4)}
^case[10]{$_cc(3.8 - $_fix_4)}
}
$_gold_min(^eval(($_chest_1 * $_cc) * $_chest_4)[%.0f])
$_gold_max(^eval(($_chest_1 * $_cc) * $_chest_5)[%.0f])
$_card_all(^eval($_chest_1 * $_cc)[%.0f])
$_card_rary(^eval($_card_all / $_chest_2)[%.2f])
$_card_epic(^eval($_card_all / $_chest_3)[%.2f])
$_card_lega(^eval($_card_all / $_chest_6 * 0.4)[%.4f])