ganze charstats, angepasst:[php]
$charstat=appoencode(templatereplace("statstart")
.templatereplace("stathead",array("title"=>"Vital Info"))
.templatereplace("statrow",array("title"=>"Avatar","value"=>($u['avatar']?"<img src=\"{$u['avatar']}\" alt=\"Avatar\" border=\"0\">":"(kein Bild)")))
.templatereplace("statrow",array("title"=>"Name","value"=>appoencode($u[name],false)))
,true);
if($session['user']['dragonanaus']==0){
$charstat.=appoencode(
templatereplace("statrow",array("title"=>"Inventar","value"=>$bag))
.templatereplace("statrow",array("title"=>"Notausgang","value"=>$bag2))
,true);
}else{
$charstat.=appoencode(
templatereplace("statrow",array("title"=>"Inventar","value"=>$bag3))
.templatereplace("statrow",array("title"=>"Notausgang","value"=>$bag3))
,true);
}
$charstat.=appoencode(
templatereplace("statrow",array("title"=>"Kampfart","value"=>"`b".$kampfkunst[(string)$u['kunst']]."`b"))
.templatereplace("statrow",array("title"=>"Gottheit","value"=>"`b".$gott[(string)$u['gott']]."`b"))
.templatereplace("statrow",array("title"=>"Inventar","value"=>$bag))
.templatereplace("statrow",array("title"=>"Notausgang","value"=>$bag2))
.templatereplace("statrow",array("title"=>"Gilde","value"=>$u['gilde']))
,true);
if ($session['user']['alive']){
$charstat.=appoencode(
templatereplace("statrow",array("title"=>"Lebenspunkte","value"=>"$u[hitpoints]`0/$u[maxhitpoints]".grafbar($u[maxhitpoints],$u[hitpoints])))
.templatereplace("statrow",array("title"=>"Runden","value"=>$u['turns']))
,true);
}else{
$charstat.=appoencode(
templatereplace("statrow",array("title"=>"Seelenpunkte","value"=>"$u[soulpoints]".grafbar((5*$u[level]+50),$u[soulpoints])))
.templatereplace("statrow",array("title"=>"Foltern","value"=>$u['gravefights']))
,true);
}
$charstat.=appoencode(
templatereplace("statrow",array("title"=>"Stimmung","value"=>"`b".$spirits[(string)$u['spirits']]."`b"))
.templatereplace("statrow",array("title"=>"Level","value"=>"`b".$u['level']."`b"))
.($session['user']['alive']?
templatereplace("statrow",array("title"=>"Angriff","value"=>$atk))
.templatereplace("statrow",array("title"=>"Verteidigung","value"=>$def))
:
templatereplace("statrow",array("title"=>"Psyche","value"=>10 + round(($u['level']-1)*1.5)))
.templatereplace("statrow",array("title"=>"Geist","value"=>10 + round(($u['level']-1)*1.5)))
)
.templatereplace("statrow",array("title"=>"Edelsteine","value"=>$u['gems']))
.templatereplace("stathead",array("title"=>"Weitere Infos"))
.templatereplace("statrow",array("title"=>"Gold","value"=>$u['gold']))
.templatereplace("statrow",array("title"=>"Erfahrung","value"=>expbar()))
.templatereplace("statrow",array("title"=>"Waffe","value"=>$u['weapon']))
.templatereplace("statrow",array("title"=>"Rüstung","value"=>$u['armor']))
,true);
if (getsetting("dispnextday",0)){
$time = gametime();
$tomorrow = strtotime(date("Y-m-d H:i:s",$time)." + 1 day");
$tomorrow = strtotime(date("Y-m-d 00:00:00",$tomorrow));
$secstotomorrow = $tomorrow-$time;
$realsecstotomorrow = round($secstotomorrow / (int)getsetting("daysperday",4));
$charstat.=appoencode(templatereplace("statrow",array("title"=>"Nächster Tag","value"=>date("G\\h, i\\m, s\\s \\",strtotime("1980-01-01 00:00:00 + $realsecstotomorrow seconds")))),true);
}
if (!is_array($session[bufflist])) $session[bufflist]=array();
$charstat.=appoencode(templatereplace("statbuff",array("title"=>"Aktionen","value"=>$buffs)),true);
$charstat.=appoencode(templatereplace("statend"),true);
return $charstat;
[/php]
_________________ R.I.P.
†26.7.2004 - 20.3.2006†
†MeteorA†
|