Teddy
SweStream.se
Hello Guys And Girls
i need some help here
i have so much quest to add to the "Quest Status"
http://otland.net/f118/gesior-aac-equipment-shower-quest-hp-exp-status-v3-32979/
so i need to add a scroll on it ..(so i ask how do i put a scroll on it)
Here is the script
i need some help here
i have so much quest to add to the "Quest Status"
http://otland.net/f118/gesior-aac-equipment-shower-quest-hp-exp-status-v3-32979/
so i need to add a scroll on it ..(so i ask how do i put a scroll on it)
Here is the script
Code:
//quest status by ballack13
$id = $player->getCustomField("id");
$number_of_quests = 0;
$main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD align="left" COLSPAN=2 CLASS=white><B>Quests</B></TD></TD align="right"></TD></TR>';
$quests = array('Annihilator' => 5000,'Demon Helmet' => 2645,'Pits of Inferno' => 5550,'Inquisition' => 6076,'Mountain Annihilator' => 8850,'Djinn Tower' => 9050,'Jugga Jungle Quest' => 8884,'Yalahari Quest' => 5429);
foreach ($quests as $storage => $name) {
if(is_int($number_of_quests / 2))
$bgcolor = $config['site']['darkborder'];
else
$bgcolor = $config['site']['lightborder'];
$number_of_quests++;
$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=95%>'.$storage.'</TD>';
$quest = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$quests[$storage].';')->fetch();
if($quest == false) {
$main_content .= '<TD><img src="http://otland.net/images/false.png"/></TD></TR>';
}
else
{
$main_content .= '<TD><img src="http://otland.net/images/true.png"/></TD></TR>';
}
}
$main_content .= '</TABLE>';