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

character.php

Muciz

New Member
Joined
Mar 27, 2011
Messages
60
Reaction score
1
hello!!!

i want to add this script:

$id = $player->getCustomField("id");
$number_of_quests = 0;
$number_of_quests = 0;
$quests = array('VIP Account Status:' => 5009,);
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>NOT VIP</B></TD></TR>';
}
else
{
$main_content .= '<TD><span class="green"><B>VIP</B></TD></TR>';
}
}
$main_content .= '</TABLE></td></tr></table>';






But i dont know where i add it, its character info + vip status, can someone explain for me where i add it? thanks !!!
 
hello!!!

i want to add this script:

$id = $player->getCustomField("id");
$number_of_quests = 0;
$number_of_quests = 0;
$quests = array('VIP Account Status:' => 5009,);
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>NOT VIP</B></TD></TR>';
}
else
{
$main_content .= '<TD><span class="green"><B>VIP</B></TD></TR>';
}
}
$main_content .= '</TABLE></td></tr></table>';






But i dont know where i add it, its character info + vip status, can someone explain for me where i add it? thanks !!!

Where did u found that script? link the url please.
It might say on that page where to put it..
 
How much can u fail...
Learn to read the steps..
Learn to read a damm thread..

Hey,

This script was made by ballack13, his script was check storage if quest is done or not. and some one wanted VIP status for his Website and i edited ballack13 script and made this so here ya go.

First go to Character.php and find this line.
PHP:
$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Account*Status:</TD><TD>'.$account_status.'</TD></TR></TABLE>';

then remove this
PHP:
 </TABLE>';

so make it like this.
PHP:
$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Account*Status:</TD><TD>'.$account_status.'</TD></TR>';

and now paste this under that.
PHP:
$id = $player->getCustomField("id");
             $number_of_quests = 0;
            $number_of_quests = 0;
            $quests = array('VIP Account Status:' => 5009,); 
                        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>NOT VIP</B></TD></TR>';
                        }
            else
            {
            $main_content .= '<TD><span class="green"><B>VIP</B></TD></TR>';
            }
            }
            $main_content .= '</TABLE></td></tr></table>';

change here the Storage nummber to what you want.
PHP:
 $quests = array('VIP Account Status:' => 5009,);


and it will look like this.
vip.jpg

EVERY STEP IS EXPLAINED..
ITS A FULL TUTORIAL..
Gosssh

- - - Updated - - -

and now paste this under that.
PHP:
$id = $player->getCustomField("id");
             $number_of_quests = 0;
            $number_of_quests = 0;
            $quests = array('VIP Account Status:' => 5009,); 
                        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>NOT VIP</B></TD></TR>';
                        }
            else
            {
            $main_content .= '<TD><span class="green"><B>VIP</B></TD></TR>';
            }
            }
            $main_content .= '</TABLE></td></tr></table>';

change here the Storage nummber to what you want.
PHP:
 $quests = array('VIP Account Status:' => 5009,);


and it will look like this.
vip.jpg

... Look good. it says Paste this under that.. If u followed all steps u should know what to do..
 
Back
Top