• 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!

UNNAMED acc. maker 0.3.2 beta for TFS

Status
Not open for further replies.
Hello, ok I install thi acc maker but where is the option like this:
houseXML_file_subdir = "data\world\xxx.xml"
vocationXML_file_subdir = "data\XML\vocations.xml"
subfolder = "/XXX"

Plz help
 
last kills
Code:
5.
	9.03.2009, 17:18:27	Segel killed at level 151 by Blebleble.

Code:
Character Information

Deaths
9 Mar 2009, 17:18	Killed at Level 151 by Blebleble.
it should be for example
Code:
Killed at Level 151 by Blebleble and by Tulip
like i see on his death body
Code:
17:25 You see a dead human (Vol:10).
You recognize Segel. He was killed by Blebleble and by Tulip.
how to do that?
 
Here you go
Code:
//deaths list
			$player_deaths = $SQL->query('SELECT * FROM player_deaths WHERE player_id = '.$player->getId().' ORDER BY time DESC');
			$number_of_players_deaths = 0;
			$dead_add_content .= '<br><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Character Deaths</B></TD></TR>';
			if(!empty($player_deaths)) {
				$vowels = array("e", "y", "u", "i", "o", "a");
				$the = array("the");
				foreach($player_deaths as $dead) {
					if(is_int($number_of_player_deaths / 2))
						$bgcolor = $config['site']['lightborder'];
					else
						$bgcolor = $config['site']['darkborder'];
					$number_of_player_deaths++;
					$dead_add_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=37%>'.date("M d Y, h:i:s", $dead['time']).' CET</TD>';
					if(is_numeric($dead['killed_by']))
					{
						$dead_add_content .= '<TD>Killed at Level '.$dead['level'].' by ';
						$lastHitKiller = new OTS_Player();
						$mostDamageKiller = new OTS_Player();
						$lastHitKiller->load($dead['killed_by']);
						$mostDamageKiller->load($dead['altkilled_by']);
						
						if($lastHitKiller->isLoaded())
							$dead_add_content .= '<a href="index.php?subtopic=characters&name='.urlencode($lastHitKiller->getName()).'"><b>'.$lastHitKiller->getName().'</b></a>';
						else
							$dead_add_content .= '<b>DELETED PLAYER</b>';
							
						if(is_numeric($dead['altkilled_by']))
						{
							if($dead['altkilled_by'] != $dead['killed_by'])
							{
								if($mostDamageKiller->isLoaded())
									$dead_add_content .= ' and by <a href="index.php?subtopic=characters&name='.urlencode($mostDamageKiller->getName()).'"><b>'.$mostDamageKiller->getName().'</b></a>';
								else
									$dead_add_content .= ' and by <b>DELETED PLAYER</b>';
							}
						}
						
					}
					else
					{
						$dead_add_content .= '<TD>Died at Level '.$dead['level'].' by ';
						if($dead['killed_by'] == "-1")
							$dead_add_content .= "item or field";
						else
						{
							if(in_array(substr(strtolower($dead['killed_by']), 0, 3), $the))
								$dead_add_content .= " ";
							elseif(in_array(substr(strtolower($dead['killed_by']), 0, 1), $vowels))
								$dead_add_content .= "an ";
							else
								$dead_add_content .= "a ";
							$dead_add_content .= strtolower($dead['killed_by']);
						}
					}
					$dead_add_content .= '</TD></TR>';
				}
			}
			$dead_add_content .= '</TABLE>';
 
Here you go
Code:
//deaths list
			$player_deaths = $SQL->query('SELECT * FROM player_deaths WHERE player_id = '.$player->getId().' ORDER BY time DESC');
			$number_of_players_deaths = 0;
			$dead_add_content .= '<br><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Character Deaths</B></TD></TR>';
			if(!empty($player_deaths)) {
				$vowels = array("e", "y", "u", "i", "o", "a");
				$the = array("the");
				foreach($player_deaths as $dead) {
					if(is_int($number_of_player_deaths / 2))
						$bgcolor = $config['site']['lightborder'];
					else
						$bgcolor = $config['site']['darkborder'];
					$number_of_player_deaths++;
					$dead_add_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=37%>'.date("M d Y, h:i:s", $dead['time']).' CET</TD>';
					if(is_numeric($dead['killed_by']))
					{
						$dead_add_content .= '<TD>Killed at Level '.$dead['level'].' by ';
						$lastHitKiller = new OTS_Player();
						$mostDamageKiller = new OTS_Player();
						$lastHitKiller->load($dead['killed_by']);
						$mostDamageKiller->load($dead['altkilled_by']);
						
						if($lastHitKiller->isLoaded())
							$dead_add_content .= '<a href="index.php?subtopic=characters&name='.urlencode($lastHitKiller->getName()).'"><b>'.$lastHitKiller->getName().'</b></a>';
						else
							$dead_add_content .= '<b>DELETED PLAYER</b>';
							
						if(is_numeric($dead['altkilled_by']))
						{
							if($dead['altkilled_by'] != $dead['killed_by'])
							{
								if($mostDamageKiller->isLoaded())
									$dead_add_content .= ' and by <a href="index.php?subtopic=characters&name='.urlencode($mostDamageKiller->getName()).'"><b>'.$mostDamageKiller->getName().'</b></a>';
								else
									$dead_add_content .= ' and by <b>DELETED PLAYER</b>';
							}
						}
						
					}
					else
					{
						$dead_add_content .= '<TD>Died at Level '.$dead['level'].' by ';
						if($dead['killed_by'] == "-1")
							$dead_add_content .= "item or field";
						else
						{
							if(in_array(substr(strtolower($dead['killed_by']), 0, 3), $the))
								$dead_add_content .= " ";
							elseif(in_array(substr(strtolower($dead['killed_by']), 0, 1), $vowels))
								$dead_add_content .= "an ";
							else
								$dead_add_content .= "a ";
							$dead_add_content .= strtolower($dead['killed_by']);
						}
					}
					$dead_add_content .= '</TD></TR>';
				}
			}
			$dead_add_content .= '</TABLE>';

thanks but can u give me the changes ?
 
That is the changes, not even close the the whole file, read through it. It will shopw both killers names on the website IE

Code:
Killed at Level 151 by Blebleble and by Tulip
 
I'm follow the steps and at step 4 I get error

Add Samples to DB i get error from Apache http server and i can chose to send or send not, why?
All other step was no problem with
 
I'm on step 6. Load Montsters from OTS and it says

STEP 4
Add Sample to DB:

Fatal error: call to a member fuction query () on a non-object in C:\xamp\htdocs\install.php on line 392

Please help me guys! kiss
 
Also get this on 5
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'name' in 'field list'' in C:\xampp\htdocs\pot\OTS_Account.php:229 Stack trace: #0 C:\xampp\htdocs\pot\OTS_Account.php(229): PDO->query('SELECT `id`, `n...') #1 C:\xampp\htdocs\install.php(461): OTS_Account->load(1) #2 {main} thrown in C:\xampp\htdocs\pot\OTS_Account.php on line 229
 
Here you go
Code:
//deaths list
			$player_deaths = $SQL->query('SELECT * FROM player_deaths WHERE player_id = '.$player->getId().' ORDER BY time DESC');
			$number_of_players_deaths = 0;
			$dead_add_content .= '<br><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Character Deaths</B></TD></TR>';
			if(!empty($player_deaths)) {
				$vowels = array("e", "y", "u", "i", "o", "a");
				$the = array("the");
				foreach($player_deaths as $dead) {
					if(is_int($number_of_player_deaths / 2))
						$bgcolor = $config['site']['lightborder'];
					else
						$bgcolor = $config['site']['darkborder'];
					$number_of_player_deaths++;
					$dead_add_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=37%>'.date("M d Y, h:i:s", $dead['time']).' CET</TD>';
					if(is_numeric($dead['killed_by']))
					{
						$dead_add_content .= '<TD>Killed at Level '.$dead['level'].' by ';
						$lastHitKiller = new OTS_Player();
						$mostDamageKiller = new OTS_Player();
						$lastHitKiller->load($dead['killed_by']);
						$mostDamageKiller->load($dead['altkilled_by']);
						
						if($lastHitKiller->isLoaded())
							$dead_add_content .= '<a href="index.php?subtopic=characters&name='.urlencode($lastHitKiller->getName()).'"><b>'.$lastHitKiller->getName().'</b></a>';
						else
							$dead_add_content .= '<b>DELETED PLAYER</b>';
							
						if(is_numeric($dead['altkilled_by']))
						{
							if($dead['altkilled_by'] != $dead['killed_by'])
							{
								if($mostDamageKiller->isLoaded())
									$dead_add_content .= ' and by <a href="index.php?subtopic=characters&name='.urlencode($mostDamageKiller->getName()).'"><b>'.$mostDamageKiller->getName().'</b></a>';
								else
									$dead_add_content .= ' and by <b>DELETED PLAYER</b>';
							}
						}
						
					}
					else
					{
						$dead_add_content .= '<TD>Died at Level '.$dead['level'].' by ';
						if($dead['killed_by'] == "-1")
							$dead_add_content .= "item or field";
						else
						{
							if(in_array(substr(strtolower($dead['killed_by']), 0, 3), $the))
								$dead_add_content .= " ";
							elseif(in_array(substr(strtolower($dead['killed_by']), 0, 1), $vowels))
								$dead_add_content .= "an ";
							else
								$dead_add_content .= "a ";
							$dead_add_content .= strtolower($dead['killed_by']);
						}
					}
					$dead_add_content .= '</TD></TR>';
				}
			}
			$dead_add_content .= '</TABLE>';

don't works...
 
Hi, iam guapoke and i dont have life and i really need a boyfriend! is urgent :)
 
What else you need?

Everything is working with latest TFS, if Tibia updates their website im sure he will update this! But now he has work alot!

Any request tell it to me, im willing to help!
 
Hi can u tell me how i can add monster on right site (monster of the week) :p becouse there isn't when i install acc maker :(
 
#Up
No, this is file plain.
OFC mysql AND sqlite, but better use TFSCMS.
 
Status
Not open for further replies.
Back
Top