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

Vip status error

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
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>';
Thanks
 
Check out in the database what player_storage has value if the vip ends.

Coz maybe its not vip storage but that quest on vip
 
i have just in i sql:
Code:
ALTER TABLE `accounts` ADD
`vipdays` int(11) NOT NULL DEFAULT 0;
;/ can you give me this commend?
 
Back
Top