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

[Modern Acc] Quests Injection with Level

nardosky

iTibia Online
Joined
Jul 17, 2007
Messages
43
Reaction score
8
Location
Iquieu
i added show level in Quest Injections.php

attachment.php


open \injections\character_view\quests\injection.php

PHP:
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$characterPageQuests = array();
/* A list of quests for character/view page. It will be listed on the page as a table to show acomplished missions.
Array contains array of quests which includes STORAGE ID, STORAGE VALUE (Required to finish quest) and NAME 
To create new quest copy line accross and change values.
*/
$player = $GLOBALS['player'];
/* Eg. $characterPageQuests[] = array('storage'=>5000, 'value'=>1, 'name'=>'Demon Helmet Quest'); */
$characterPageQuests[] = array('storage'=>5011, 'value'=>1, 'nivel'=>'20', 'name'=>'Quest Example');

 if(count($characterPageQuests) != 0) {
		echo "<br /><div align='left'><img src='/public/images/quests.png'/></div>";
		echo "<table width='100%'>";
		echo "<tr><td width='18%'><center><b>Level</b></center></td><td width='60%'><center><b>Quest Name</b></center></td><td><b><center>Status</center></b></td></tr>";
		$SQL = POT::getInstance()->getDBHandle();
		foreach($characterPageQuests as $value) {
			$quest = $SQL->query("SELECT `value` FROM `player_storage` WHERE `player_id` = ".$player->getId()." AND `key` = '".$value['storage']."' AND `value` = '".$value['value']."'")->fetch();
			$status = ($quest) ? "true" : "false";
			echo "<tr><td width='18%'><center>".$value['nivel']."</center></td><td width='50%'><center>".$value['name']."</center></td><td width='20%'><center><img src='../../../public/images/$status.gif'></center></td></tr>";
		}
		echo "</table>";
	}
?>
 

Attachments

Back
Top