Deget
New Member
- Joined
- Nov 25, 2012
- Messages
- 38
- Reaction score
- 2
Hey guys, I got a little problem with my Vip Status.
There it goes:
I use the Vip System , got the vip tiles, talkactions, all working fine.
The problem is that when the vip of a player ends, in the website (gesior) still shows that the player is VIP, but in-game he is not anymore. He does not pass on the vip tiles, etc.
Tibia 8.6 TFS 0.4,
In characters.php
Thanks
There it goes:
I use the Vip System , got the vip tiles, talkactions, all working fine.
The problem is that when the vip of a player ends, in the website (gesior) still shows that the player is VIP, but in-game he is not anymore. He does not pass on the vip tiles, etc.
Tibia 8.6 TFS 0.4,
In characters.php
Code:
$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Account Status:</TD><TD>'.$account_status.'</TD></TR>';
$id = $player->getCustomField("id");
$number_of_quests = 0;
$number_of_quests = 0;
$quests = array('VIP Account Status:' => 20500,);
foreach ($quests as $storage => $name) {
if(is_int($number_of_quests / 2))
$bgcolor = $config['site']['lightborder'];
else
$bgcolor = $config['site']['darkborder'];
$number_of_quests++;
$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=10%>'.$storage.'</TD>';
$quest = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$quests[$storage].';')->fetch();
if($quest == false) {
$main_content .= '<TD><span class="red"><B><BIG>NOT VIP</Big></B></TD></TR>';
}
else
{
$main_content .= '<TD><span class="green"><B><BIG>VIP</BIG></B></TD></TR>';
}
}
$main_content .= '</TABLE></td></tr></table>';