Hi
I will show you now how you show quest status in your characters side. I fixed it now abit so you its more handy and easier to configure.
Here is Script:
Now you need to configure the quest. For this you need this line:
You need to change only the Questnames and the storages of the quest (best if you take Reward Storage). You can add as many quests as you want to.
Now you have to implent it in your characters.php file.
Go to the part above the Death list Part (~line 75) and past the code there. Then it should work.
Finally download the images of attachement and put them into images folder.
Rep++ !!
Your's ballack13
I will show you now how you show quest status in your characters side. I fixed it now abit so you its more handy and easier to configure.
Here is Script:
PHP:
//quest status by ballack13
$id = $player->getCustomField("id");
$number_of_quests = 0;
$main_content .= '<br><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Quests</B></TD></TR>';
$quests = array('Annihilator' => 5000,'Demon Helmet' => 2645,);
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=70%>'.$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>';
//end of quest status by ballack13
PHP:
$quests = array('QUESTNAME1' => STORAGE1,'QUESTNAME2' => STORAGE2,);
Now you have to implent it in your characters.php file.
Go to the part above the Death list Part (~line 75) and past the code there. Then it should work.
Finally download the images of attachement and put them into images folder.
Rep++ !!
Your's ballack13
Attachments
-
images.rar1.9 KB · Views: 495 · VirusTotal
Last edited by a moderator: