Avarian
Bring Out Your Dead!
Did so and responded.
Avarians, the status server (players online and uptime) works on ur pc? I dont know if the problem is just here, how I told u, the uptime and max players online dont stay static, it disapear after some seconds... Just the status online/offline works perfectly.
What can I do?
statusTimeout = 1000
I'm having a problem, and I checked this whole thread.
The account registration is not working for me.. whenever someone tries to make an account, it doesn't send the information to the database. I've checked the connection settings, and everything is ok. It worked a yesterday, but for some reason it's not working now.
Help, please?
$rankid = $player_sql['rank_id'];
$query20 = mysql_query("SELECT * FROM `guild_ranks` WHERE (`id` = '$rankid') ") or die(mysql_error());
$query_result20 = mysql_fetch_row($query20);
$guildscheck = $query_result20[1];
$query123 = mysql_query("SELECT * FROM `guilds` WHERE (`id` = '$guildscheck') ") or die(mysql_error());
$query_result123 = mysql_fetch_row($query123);
$space = $query_result123[1];
echo '<h2>Character information:</h2>';
echo '<table width=400px><tr><tr><td width=100px>Name: </td><td width=300px>'.$player_sql['name'].'<br/></td></tr>';
$sexs = array("Female", "Male");
echo '<tr><td width=100px>Sex:</td><td width=300px>'.$sexs[$player_sql['sex']].'<br /></td></tr>';
echo '<tr><td width=100px>Level:</td><td width=300px>'.$player_sql['level'].'<br /></td></tr>';
$vocations = array("None", "Sorcerer", "Druid", "Paladin", "Knight", "Master Sorcerer", "Elder Druid", "Royal Paladin", "Elite Knight");
echo '<tr><td width=100px>Vocation:</td><td width=300px>'.$vocations[$player_sql['vocation']].'<br /></td></tr>';
echo '<tr><td width=100px>Residence:</td><td width=300px>'.$town.'<br /></td></tr>';
if (empty($space)) {
echo '<tr><td width=100px>Guild: </td><td width=300px>None';
echo '<br /></td></tr>';
}
else
{
echo '<tr><td width=100px>Guild: </td><td width=300px>'.$query_result20[2].' of the <a href="guilds.php?act=view&guild='.$query_result123[1].'">'.$query_result123[1].'</a>';
echo '<br /></td></tr>';
}
$ban_query = mysql_query("SELECT * FROM `bans` WHERE (`player` = '".$char."' OR `account` = '".$acc_logged_sql['accno']."')");
$ban_sql = mysql_fetch_array($ban_query);
$account_ban = $player_sql['account_id'];
$ban_query = mysql_query("SELECT * FROM `bans` WHERE (`account` = '$account_ban') ") or die(mysql_error());
$ban_sql = mysql_fetch_array($ban_query);
$positionss = array("None", "$group_id1", "$group_id2", "$group_id3", "$group_id4", "$group_id5", "$group_id6", "$group_id7", "$group_id8", "$group_id9");
echo '<tr><td width=100px>Position:</td><td width=300px><font color="Red">'.$positionss[$player_sql['group_id']].'</font></td></tr>';
if(mysql_num_rows($ban_query) != 0)
{
}
echo '</table>';
$positionss = array("None", "$group_id1", "$group_id2", "$group_id3", "$group_id4", "$group_id5", "$group_id6", "$group_id7", "$group_id8", "$group_id9");
if($player_sql['group_id'] > 2)
{
echo '<tr><td width=100px>Position:</td><td width=300px><font color="Red">'.$positionss[$player_sql['group_id']].'</font></td></tr>';
} else {
echo '<tr><td width=100px>Position:</td><td width=300px>'.$positionss[$player_sql['group_id']].'</td></tr>';
}
if(mysql_num_rows($ban_query) != 0)
{
echo '<tr><td width=100px>Account status:</td><td width=300px><font color="Red">Baned until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' by '.$ban_sql['comment'].'</font></td></tr>';
}
echo '</table>';
if(mysql_num_rows($ban_query) != 0)
{
echo '<tr><td width=100px>Account status:</td><td width=300px><font color="Red">Baned until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' by '.$ban_sql['comment'].'</font></td></tr>';
}
echo '</table>';
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 0 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of invalid name.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 1 )
{
echo '<tr><td width=100px><font color="Red"> Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of invalid name.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 2 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of invalid name.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 3 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of invalid name.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 4 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of invalid name.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 5 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of invalid name.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 6 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of invalid name.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 7 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of invalid name.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 8 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of invalid name.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 9 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of offensive statement.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 10 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of spamming.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 11 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of advertisement not related to game.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 12 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of real money advertisement.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 13 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of non-english public statement.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 14 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of off-topic public statement.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 15 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of inciting rule violation.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 16 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of bug abuse.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 17 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of game weakness abuse.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 18 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of macro use.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 19 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of using unofficial sotware to play.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 20 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of hacking.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 21 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of multi-clienting.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 22 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of account trading.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 23 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of account sharing.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 24 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of threatening gamemaster.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 25 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of pretending to have official position.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 26 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of pretending to have influence on gamemaster.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 27 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of false report to gamemaster.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 28 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of excessive unjustified player killing.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 29 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of destructive behaviour.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 30 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red"> Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of spoiling action.</font></td></tr>';
echo '</table>';
}
if(mysql_num_rows($ban_query) != 0 and $ban_sql[reason_id] == 31 )
{
echo '<tr><td width=100px><font color="Red">Banished:</font></td><td width=300px><font color="Red">Until '.$bantime = date('M d Y, H:i:s',$ban_sql['time']).' because of invalid payment.</font></td></tr>';
echo '</table>';
}
else
echo '</table>';