Hello.
Well, my currently Online List looks like this:
Because all my players on my server have Vocation 1.
But i want to change it! Because on my server, the vocations are storages, so i would like with the players with the storage number 86228 change it on onlinelist too.
Example:
Player with storage 86228 == -1 will be a Trainer
Player with storage 86228 == 3 will be a Firetamer
Player with storage 86228 == 4 will be a Waterdragon.
Etc, this is my Online List:
So, is this possible? Just change the vocation for the storage? Humm i don't know how to make this ://
Please help me a little, very thanks!
Greetings.
Well, my currently Online List looks like this:
Because all my players on my server have Vocation 1.
But i want to change it! Because on my server, the vocations are storages, so i would like with the players with the storage number 86228 change it on onlinelist too.
Example:
Player with storage 86228 == -1 will be a Trainer
Player with storage 86228 == 3 will be a Firetamer
Player with storage 86228 == 4 will be a Waterdragon.
Etc, this is my Online List:
PHP:
<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?>
<h1>Who is online?</h1>
<?php
$array = online_list();
if ($array) {
?>
<table id="onlinelistTable">
<tr class="yellow">
<td>Name:</td>
<td>Level:</td>
<td>Vocation:</td>
</tr>
<?php
foreach ($array as $value) {
echo '<tr>';
echo '<td><a href="characterprofile.php?name='. $value[0] .'">'. $value[0] .'</a></td>';
echo '<td>'. $value[1] .'</td>';
echo '<td>'. vocation_id_to_name($value[2]) .'</td>';
echo '</tr>';
}
?>
</table>
<?php
} else {
echo 'Nobody is online.';
}
?>
<?php include 'layout/overall/footer.php'; ?>
So, is this possible? Just change the vocation for the storage? Humm i don't know how to make this ://
Please help me a little, very thanks!
Greetings.