hatte noch keine zeit... aber vielleicht kann sich da ja jemand von euch reindenken...
- Code: Alles auswählen
$reg_date = (time()-$userinfo[signin])/86400; //Levelhack
if ($reg_date < 1) $postsperday = $userinfo[user_posts]; //Levelhack
else $postsperday = $userinfo[user_posts] / $reg_date; //levelhack
$level = pow (log10 ($userinfo[user_posts]), 3); //Levelhack
$ep = floor (100 * ($level - floor ($level))); //Levelhack
$exp = ceil($userinfo[user_posts]*$reg_date); //Levelhack
if($exp!=0) $level = pow(log10($exp),2); //Levelhack
else $level = 0; //Levelhack
$showlevel = floor ($level + 1); //Levelhack
$nextexp = ceil(pow(10,pow($showlevel,0.5))); //Levelhack
$hpmulti =round ($postsperday / 6, 1); //Levelhack
if ($hpmulti > 1.5) { //Levelhack
$hpmulti = 1.5;
$exp = number_format($exp,0,"","."); //Levelhack
$nextexp = number_format($nextexp,0,"","."); //Levelhack
} //Levelhack
if ($hpmulti < 1) { //Levelhack
$hpmulti = 1; //Levelhack
} //Levelhack
$maxhp = $level * 25 * $hpmulti; //Levelhack
$hp= $postsperday / 5; //Levelhack
if ($hp >= 1) { //Levelhack
$hp= $maxhp; //Levelhack
} else { //Levelhack
$hp= floor ($hp * $maxhp); //Levelhack
} //Levelhack
$hp= floor ($hp); //Levelhack
$maxhp= floor ($maxhp); //Levelhack
if ($maxhp <= 0) { //Levelhack
$zhp = 1; //Levelhack
} else { //Levelhack
$zhp = $maxhp; //Levelhack
} //Levelhack
$hpf= floor (100 * ($hp / $zhp)) - 1; //Levelhack
$maxmp= ($reg_date * $level) / 5; //Levelhack
$mp= $userinfo[user_posts] / 3; //Levelhack
if ($mp >= $maxmp) { //Levelhack
$mp = $maxmp; //Levelhack
} //Levelhack
$maxmp = floor ($maxmp); //Levelhack
$mp = floor ($mp); //Levelhack
if ($maxmp <= 0) { //Levelhack
$zmp = 1; //Levelhack
} else { //Levelhack
$zmp = $maxmp; //Levelhack
} //Levelhack
$mpf= floor (100 * ($mp / $zmp)) - 1; //Levelhack
Level: $showlevel
Aktivit?t: $hp / $maxhp
Bekanntheit: $mp / $maxmp
Erfahrung: $ep%