anyone who could help me ?
Code: Select all
// The risk and jail time depends on the total value of what's stealed.
$successRate = ceil($userStats["Dexterity"]->value * $userStats["Dexterity"]->value) / ($total / 3);
$res = rand(0, 100);
// Player is lucky and got it
if ($res < $successRate)