diff --git a/system/libs/pot/OTS_Base_DB.php b/system/libs/pot/OTS_Base_DB.php
index 2a2c1507..d5d6cd98 100644
--- a/system/libs/pot/OTS_Base_DB.php
+++ b/system/libs/pot/OTS_Base_DB.php
@@ -28,7 +28,7 @@ abstract class OTS_Base_DB extends PDO implements IOTS_DB
*
* @var string
*/
- private $prefix = '';
+ protected $prefix = '';
/**
* Query counter
diff --git a/system/pages/characters.php b/system/pages/characters.php
index b7f3e361..4621ee9d 100644
--- a/system/pages/characters.php
+++ b/system/pages/characters.php
@@ -229,22 +229,19 @@ if($player->isLoaded() && !$player->isDeleted())
}
$dead_add_content = '';
+ $deaths = array();
if(tableExist('killers')) {
$player_deaths = $db->query('SELECT `id`, `date`, `level` FROM `player_deaths` WHERE `player_id` = '.$player->getId().' ORDER BY `date` DESC LIMIT 0,10;');
if(count($player_deaths))
{
- $dead_add_content = '
Character Deaths | |
'.date("j M Y, H:i", $death['date']).' | -'; $killers = $db->query("SELECT environment_killers.name AS monster_name, players.name AS player_name, players.deleted AS player_exists FROM killers LEFT JOIN environment_killers ON killers.id = environment_killers.kill_id LEFT JOIN player_killers ON killers.id = player_killers.kill_id LEFT JOIN players ON players.id = player_killers.player_id WHERE killers.death_id = '".$death['id']."' ORDER BY killers.final_hit DESC, killers.id ASC")->fetchAll(); + $description = ''; $i = 0; $count = count($killers); foreach($killers as $killer) @@ -253,41 +250,36 @@ WHERE killers.death_id = '".$death['id']."' ORDER BY killers.final_hit DESC, kil if($killer['player_name'] != "") { if($i == 1) - $dead_add_content .= "Killed at level ".$death['level'].""; + $description .= "Killed at level ".$death['level'].""; else if($i == $count) - $dead_add_content .= " and"; + $description .= " and"; else - $dead_add_content .= ","; + $description .= ","; - $dead_add_content .= " by "; + $description .= " by "; if($killer['monster_name'] != "") - $dead_add_content .= $killer['monster_name']." summoned by "; + $description .= $killer['monster_name']." summoned by "; if($killer['player_exists'] == 0) - $dead_add_content .= getPlayerLink($killer['player_name']); + $description .= getPlayerLink($killer['player_name']); else - $dead_add_content .= $killer['player_name']; + $description .= $killer['player_name']; } else { if($i == 1) - $dead_add_content .= "Died at level ".$death['level'].""; + $description .= "Died at level ".$death['level'].""; else if($i == $count) - $dead_add_content .= " and"; + $description .= " and"; else - $dead_add_content .= ","; + $description .= ","; - $dead_add_content .= " by ".$killer['monster_name']; + $description .= " by ".$killer['monster_name']; } } - $dead_add_content .= ". |
Character Deaths | |
'.date("j M Y, H:i", $death['time']).' | -'; - $lasthit = ($death['is_player']) ? getPlayerLink($death['killed_by']) : $death['killed_by']; - $dead_add_content .= 'Killed at level ' . $death['level'] . ' by ' . $lasthit; + $description = 'Killed at level ' . $death['level'] . ' by ' . $lasthit; if($death['unjustified']) { - $dead_add_content .= " (unjustified)"; + $description .= " (unjustified)"; } $mostdmg = ($death['mostdamage_by'] !== $death['killed_by']) ? true : false; if($mostdmg) { $mostdmg = ($death['mostdamage_is_player']) ? getPlayerLink($death['mostdamage_by']) : $death['mostdamage_by']; - $dead_add_content .= ' and by ' . $mostdmg; + $description .= ' and by ' . $mostdmg; if ($death['mostdamage_unjustified']) { - $dead_add_content .= " (unjustified)"; + $description .= " (unjustified)"; } } else { - $dead_add_content .= " (soloed)"; + $description .= " (soloed)"; } - $dead_add_content .= ". |
Victims | |
' . date("j M Y, H:i", $frag['date']) . ' | -Fragged ' . $frag[name] . ' at level ' . $frag[level]; - - $frag_add_content .= ". (".(($frag['unjustified'] == 0) ? "Justified" : "Unjustified").") |
Character Deaths | +||
{{ death.time|date("j M Y, H:i") }} | +{{ death.description }} | +
Victims | +|
{{ frag.time|date("j M Y, H:i") }} | +{{ frag.description }} | +