Apologies for bringing up an old thread. Boris's suggestion of altering lib/pageparts.php did not work. Unless I did it wrong that is. This is what I did:
Original code:
addcharstat("Vital Info");
addcharstat("Name", $u['name']);
addcharstat("Level", "`b".$u['level'].check_temp_stat("level",1)."`b");
if ($u['alive']) {
addcharstat("Hitpoints", $u['hitpoints'].check_temp_stat("hitpoints",1).
"`0/".$u['maxhitpoints'].check_temp_stat("maxhitpoints",1));
addcharstat("Turns", $u['turns'].check_temp_stat("turns",1));
addcharstat("Attack", $atk.check_temp_stat("attack",1));
addcharstat("Defense", $def.check_temp_stat("defense",1));
} else {
$maxsoul = $u['level'] * 5 + 50;
addcharstat("Soulpoints", $u['soulpoints'].check_temp_stat("soulpoints",1)."`0/".$maxsoul);
addcharstat("Torments", $u['gravefights'].check_temp_stat("gravefights",1));
addcharstat("Psyche", 10+round(($u['level']-1)*1.5));
addcharstat("Spirit", 10+round(($u['level']-1)*1.5));
}
addcharstat("Spirits", translate_inline("`b".$spirits[(int)$u['spirits']]."`b"));
if ($u['race'] != RACE_UNKNOWN) {
addcharstat("Race", translate_inline($u['race'],"race"));
}else {
addcharstat("Race", translate_inline(RACE_UNKNOWN,"race"));
}
Modified code:
addcharstat("Vital Info");
addcharstat("Attack", $atk.check_temp_stat("attack",1));
addcharstat("Defense", $def.check_temp_stat("defense",1));
if ($u['alive']) {
addcharstat("Hitpoints", $u['hitpoints'].check_temp_stat("hitpoints",1).
"`0/".$u['maxhitpoints'].check_temp_stat("maxhitpoints",1));
addcharstat("Turns", $u['turns'].check_temp_stat("turns",1));
} else {
$maxsoul = $u['level'] * 5 + 50;
addcharstat("Soulpoints", $u['soulpoints'].check_temp_stat("soulpoints",1)."`0/".$maxsoul);
addcharstat("Torments", $u['gravefights'].check_temp_stat("gravefights",1));
addcharstat("Psyche", 10+round(($u['level']-1)*1.5));
addcharstat("Spirit", 10+round(($u['level']-1)*1.5));
}
addcharstat("Name", $u['name']);
addcharstat("Level", "`b".$u['level'].check_temp_stat("level",1)."`b");
addcharstat("Spirits", translate_inline("`b".$spirits[(int)$u['spirits']]."`b"));
if ($u['race'] != RACE_UNKNOWN) {
addcharstat("Race", translate_inline($u['race'],"race"));
}else {
addcharstat("Race", translate_inline(RACE_UNKNOWN,"race"));
}
The lines did not move, the template did not change. Help?
URL for viewing:
http://www.dragonsofmyth.com/test/home.php? Thanks,
~Rayn