diff --git a/characterprofile.php b/characterprofile.php index 2c01f1a..c8bb383 100644 --- a/characterprofile.php +++ b/characterprofile.php @@ -61,7 +61,7 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) {
  • Death List:
    This player has never died.'; } //Done. + } else if ($config['TFSVersion'] == 'TFS_10') { + $deaths = mysql_select_multi("SELECT + `player_id`, `time`, `level`, `killed_by`, `is_player`, + `mostdamage_by`, `mostdamage_is_player`, `unjustified`, `mostdamage_unjustified` + FROM `player_deaths` + WHERE `player_id`=$user_id ORDER BY `time` DESC LIMIT 10;"); + + if (!$deaths) echo 'This player has never died.'; + else { + foreach ($deaths as $d) { + ?> +
  • + ".getClock($d['time'], true, true).""; + $lasthit = ($d['is_player']) ? "".$d['killed_by']."" : $d['killed_by']; + echo ": Killed at level ".$d['level']." by $lasthit"; + if ($d['unjustified']) echo " (unjustified)"; + $mostdmg = ($d['mostdamage_by'] !== $d['killed_by']) ? true : false; + if ($mostdmg) { + $mostdmg = ($d['mostdamage_is_player']) ? "".$d['mostdamage_by']."" : $d['mostdamage_by']; + echo "
    and by $mostdmg."; + if ($d['mostdamage_unjustified']) echo " (unjustified)"; + } else echo " (soloed)"; + ?> +
  • +