• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Good aac for TFS 8.0?

Ronaldino

Esso Eh
Joined
Dec 25, 2007
Messages
745
Reaction score
0
Hello.

Anyone know what account maker is good for The Forgotten Server? I dont want Avarians AAC cuz of this is sux aac :(
 
nicaw then or wait for gesiors
 
Surely Nicaw's.
And if You want deathlist, here is a little tutorial by me ;):

1. Open class/player.php and find (line 140):
Code:
public function getDeaths()
	{
		$query = "SELECT * FROM `deathlist` WHERE (`player` = '".$this->escape_string($this->attrs['id'])."') ORDER BY date DESC LIMIT 10";
		$this->myQuery($query);
		if ($this->failed()) return false;
		$i = 0;
		while($a = $this->fetch_array()){
			$list[$i]['killer'] = $a['killer'];
			$list[$i]['level'] = $a['level'];
			$list[$i]['date'] = $a['date'];
			$i++;
		}
		return $list;
	}
Replace it with:
Code:
public function getDeaths() //TFS compatibility by FightingElf
	{
		$query = "SELECT * FROM `player_deaths` WHERE (`player_id` = '".$this->escape_string($this->attrs['id'])."') ORDER BY time DESC LIMIT 10";
		$this->myQuery($query);
		if ($this->failed()) return false;
		$i = 0;
		while($a = $this->fetch_array()){
			$list[$i]['killer'] = $a['killed_by'];
			$list[$i]['level'] = $a['level'];
			$list[$i]['date'] = $a['time'];
			$list[$i]['player'] = $a['is_player'];
			$i++;
		}
		return $list;
	}
Save and close the file.
2. Open characters.php and find (line 72):
Code:
		if ($cfg['show_deathlist']){
			$deaths = $player->getDeaths();
			if ($deaths !== false && !empty($deaths)){
			echo '<b>Deaths</b><br/>';
				foreach ($deaths as $death){
					$killer = new Player($death['killer']);
					if ($killer->exists())
						$name = '<a href="characters.php?char='.$death['killer'].'">'.$death['killer'].'</a>';
					else
						$name = $death['killer'];
					echo '<i>'.date("jS F Y H:i:s",$player->getAttr('lastlogin')).'</i> Killed at level '.$death['level'].' by '.$name.'<br/>';
				}
			}
		}
Replace it with:
Code:
		if ($cfg['show_deathlist']){ //TFS compatibility by FightingElf
			$deaths = $player->getDeaths();
			if ($deaths !== false && !empty($deaths)){
			echo '<b>Deaths</b><br/>';
				foreach ($deaths as $death){
					if ($death['player'] == TRUE)
						$name = '<a href="characters.php?char='.$death['killer'].'">'.$death['killer'].'</a>';
					else
						$name = $death['killer'];
					echo '<i>'.date("jS F Y H:i:s",$death['date']).'</i> Killed at level '.$death['level'].' by '.$name.'<br/>';
				}
			}
		}
Save and close the file.

Now Your deathlist works properly :)
Here is an example: http://ots.wypas.eu/characters.php?char=Bela
 
Last edited:
Surely Nicaw's.
And if You want deathlist, here is a little tutorial by me ;):

1. Open class/player.php and find (line 140):
Code:
public function getDeaths()
	{
		$query = "SELECT * FROM `deathlist` WHERE (`player` = '".$this->escape_string($this->attrs['id'])."') ORDER BY date DESC LIMIT 10";
		$this->myQuery($query);
		if ($this->failed()) return false;
		$i = 0;
		while($a = $this->fetch_array()){
			$list[$i]['killer'] = $a['killer'];
			$list[$i]['level'] = $a['level'];
			$list[$i]['date'] = $a['date'];
			$i++;
		}
		return $list;
	}
Replace it with:
Code:
public function getDeaths() //TFS compatibility by FightingElf
	{
		$query = "SELECT * FROM `player_deaths` WHERE (`player_id` = '".$this->escape_string($this->attrs['id'])."') ORDER BY time DESC LIMIT 10";
		$this->myQuery($query);
		if ($this->failed()) return false;
		$i = 0;
		while($a = $this->fetch_array()){
			$list[$i]['killer'] = $a['killed_by'];
			$list[$i]['level'] = $a['level'];
			$list[$i]['date'] = $a['time'];
			$list[$i]['player'] = $a['is_player'];
			$i++;
		}
		return $list;
	}
Save and close the file.
2. Open characters.php and find (line 72):
Code:
		if ($cfg['show_deathlist']){
			$deaths = $player->getDeaths();
			if ($deaths !== false && !empty($deaths)){
			echo '<b>Deaths</b><br/>';
				foreach ($deaths as $death){
					$killer = new Player($death['killer']);
					if ($killer->exists())
						$name = '<a href="characters.php?char='.$death['killer'].'">'.$death['killer'].'</a>';
					else
						$name = $death['killer'];
					echo '<i>'.date("jS F Y H:i:s",$player->getAttr('lastlogin')).'</i> Killed at level '.$death['level'].' by '.$name.'<br/>';
				}
			}
		}
Replace it with:
Code:
		if ($cfg['show_deathlist']){ //TFS compatibility by FightingElf
			$deaths = $player->getDeaths();
			if ($deaths !== false && !empty($deaths)){
			echo '<b>Deaths</b><br/>';
				foreach ($deaths as $death){
					if ($death['player'] == TRUE)
						$name = '<a href="characters.php?char='.$death['killer'].'">'.$death['killer'].'</a>';
					else
						$name = $death['killer'];
					echo '<i>'.date("jS F Y H:i:s",$death['date']).'</i> Killed at level '.$death['level'].' by '.$name.'<br/>';
				}
			}
		}
Save and close the file.

Now Your deathlist works properly :)
Here is an example: http://ots.wypas.eu/characters.php?char=Bela

Thx !! Atlast death-list work for me :)
 
Back
Top