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

[Gesior ACC] Quests Status v.1.1

averatec

Advanced OT User
Joined
Jun 1, 2007
Messages
2,243
Solutions
4
Reaction score
159
Location
Poland
Installation

First open characters.php, and before "//deaths list"
add this code:
PHP:
$quests = array( 
	100 => "Annihilator",
	5050 => "Pits of Inferno",
	2645 => "Demon Helmet Quest",
);
$main_content .= '<br><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=3 CLASS=white><B>Quests Information</B></TD></TR>';
	if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><td width=5%><center><b>Id.</b></center></td><td width=87%><b>Quest</b></td><td width=8%><b><center>Status</center></b></td></tr>';
$i = 1;
foreach($quests as $key => $value){
	if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
if($player->getStorage($key) == 1){
		$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><td width=5%><center>'.$i.'.</center></td><td width=87%>'.$value.'</td><td align="center" width=8%><img src="true.png" title="Done!"/></td></tr>';
}
else
{
	$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><td width=5%><center>'.$i.'.</center></td><td width=87%>'.$value.'</td><td align="center" width=8%><img src="false.png" title="Not Done!"/></td></tr>';
} $i++;
}
$main_content .= "</table>";

PHP:
$quests = array( 
	100 => "Annihilator",
	5050 => "Pits of Inferno",
	2645 => "Demon Helmet Quest",
);



FAQ

100 => "Annihilator",
storage id
php side thing
name of quest
add comma if it isn't end of quests list

Maybe rep++ :)
 

Attachments

Last edited:
Yes, I understand, but for me working good, it must be your fault, in configuration array.
 
You you is working, great, buy who i add hide/show, in characters PHP say Quets (Click to Show), and show quets, and click again and hide. :confused:

Hide/show quests list is my function in java script.
 
Yes, I can.
Code:
function showHidden(hide_show, button, button_1, button_2){
	var hide_show = document.getElementById(hide_show);
	var button = document.getElementById(button);
	if (hide_show.style.display == 'none')
	{
		hide_show.style.display = ''; 
		button.value = button_2;
	}
	else
	{
		hide_show.style.display = 'none';
		button.value = button_1;
	}
}
It's java script code(function). Do you understand how it works?
 
Last edited:
Back
Top