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

Calon

Experienced Member
Joined
Feb 6, 2009
Messages
1,070
Reaction score
21
i want to let AAC character View 5 quests, i'v tried many ways but fail someone help me

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'=>5000, 'value'=>1, 'name'=>'Demon Helmet Quest');


 if(count($characterPageQuests) != 0) {
		echo "<div class='bar'>Quests</div>";
		echo "<table width='100%'>";
		echo "<tr><td width='90%'><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='90%'><center>".$value['name']."</center></td><td><center><img src='../../../public/images/$status.gif'></center></td></tr>";
		}
		echo "</table>";
	}
?>
the other problem after creating account then character i find the password in the database like this "c9e4f619a1fe4af5e818b404effe9e3efcf0fa94"
and in my config :
encryptionType = "sha1"
so how i can solve this please
in the same time i want to add the eq and show spell
dose anyone have a thread or an idea for that?.
i will not forget the Rep++
 
Last edited:
Are u able to login on AAC page?

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'=>5000, 'value'=>1, 'name'=>'Demon Helmet Quest');
$characterPageQuests[] = array('storage'=>5000, 'value'=>1, 'name'=>'Demon Helmet Quest');
$characterPageQuests[] = array('storage'=>5000, 'value'=>1, 'name'=>'Demon Helmet Quest');
$characterPageQuests[] = array('storage'=>5000, 'value'=>1, 'name'=>'Demon Helmet Quest');
$characterPageQuests[] = array('storage'=>5000, 'value'=>1, 'name'=>'Demon Helmet Quest');


 if(count($characterPageQuests) != 0) {
        echo "<div class='bar'>Quests</div>";
        echo "<table width='100%'>";
        echo "<tr><td width='90%'><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='90%'><center>".$value['name']."</center></td><td><center><img src='../../../public/images/$status.gif'></center></td></tr>";
        }
        echo "</table>";
    }
?>

Here u go 5 quests, change the values.
 
yeah i can login into aac but when i create a character i cant login into the game because the silly password 747s4d7s4d7sa8ds74d7sad4a8s when i change it from database also i cannot login so what do u think
pleaseee i wanna someone help me
 
Back
Top