Hi folks!
I was boring so, I decided to make a simple piece of PHP code to show which quest has done the player and which not yet.
So, It's a simple code so don't blame me, it's my first resource that I make.
Well, let's go to move to our principal folder ('www') and open the file, characterprofile.php and search the line:
Below from this last line between the clauses comment text and death list, anyway you can put this anywhere but I decided there, put this :
Configuration:
On the line:
You can change the Questname and his storage value, it is just an exemple.
This method shows us if the player has done the quest with an image, so you can put any path/picture that you want.
How I said before It's a simple code but I think that could be useful got it on our website.
Exemple:
Regards,
Krotus
I was boring so, I decided to make a simple piece of PHP code to show which quest has done the player and which not yet.
So, It's a simple code so don't blame me, it's my first resource that I make.
Well, let's go to move to our principal folder ('www') and open the file, characterprofile.php and search the line:
PHP:
<li><font class="profile_font" name="profile_font_comment">Comment:</font> <br><textarea name="profile_comment_textarea" cols="70" rows="10" readonly="readonly"><?php echo $profile_znote_data['comment']; ?></textarea></li>
PHP:
<!-- Quest information by Krotus to Otland.net-->
<div>
<table>
<th colspan="2">Quest</th>
<?php
$storage=array('First Quest' => 50020, 'Second Quest' => 42355, 'Third Quest' => 52321);
foreach($storage as $name => $value)
{
echo "<tr>";
echo "<td width=90%>".$name."</td>";
$quest = mysql_select_single("SELECT `value` FROM `player_storage` WHERE `key`='$value' AND `player_id`='$user_id' LIMIT 1;");
if ($quest['value'] == 1) {
echo "<td><img src='images/yes_quest.png'></td>";
}else{
echo "<td><img src='images/no_quest.png' ></td>";
}
echo "</tr>";
}
?>
</table>
</div>
On the line:
PHP:
$storage=array('First Quest' => 50020, 'Second Quest' => 42355, 'Third Quest' => 52321);
This method shows us if the player has done the quest with an image, so you can put any path/picture that you want.
How I said before It's a simple code but I think that could be useful got it on our website.
Exemple:
Regards,
Krotus