Belthazor
New Member
- Joined
- Sep 20, 2008
- Messages
- 528
- Reaction score
- 4
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.
then remove this
so make it like this.
and now pasta this under that.
change here the Storage nummber to what you want.
and it will look like this.
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 pasta 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.