• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

AAC Gesior - Line of Config.php

DiegoRulez

Member
Joined
Apr 16, 2012
Messages
99
Reaction score
13
Location
Feira de Santana - Brasil
This command line is not available in the Gesior 2012 config.php file.
$ config ['site'] ['quests'] = array ('Crown Armor' => 4502, 'Demon Helmet' => 2645);

4502 = Storage that the player needs no game to appear without site like "Completed Quest"
But it scans only one storage area. I would like to know how I add two or more warehouses.

Example:
When the player had 1111 storage and the 2222 > Completed Quest
When the player has only one 1111 > Incomplete Quest
When the player has only one 2222 > Incomplete Quest

Thanks
 
Solution
Should work I guess, didnt test. Try out yourself and report if it bugs..

config.php
PHP:
$config['site']['quests']['multi_storage'] = array('Crown Armor' => array(14999, 14998));
more quests:
PHP:
$config['site']['quests']['multi_storage'] = array('Crown Armor' => array(14999, 14998), 'Crown Helmet' => array(15000, 15001));

characters.php
PHP:
       if(isset($config['site']['quests']['multi_storage']) && is_array($config['site']['quests']['multi_storage'] ) && count($config['site']['quests']['multi_storage'] ) > 0)
       {
           $main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD align="left" COLSPAN=2 CLASS=white><B>Quests</B></TD></TD...
Should work I guess, didnt test. Try out yourself and report if it bugs..

config.php
PHP:
$config['site']['quests']['multi_storage'] = array('Crown Armor' => array(14999, 14998));
more quests:
PHP:
$config['site']['quests']['multi_storage'] = array('Crown Armor' => array(14999, 14998), 'Crown Helmet' => array(15000, 15001));

characters.php
PHP:
       if(isset($config['site']['quests']['multi_storage']) && is_array($config['site']['quests']['multi_storage'] ) && count($config['site']['quests']['multi_storage'] ) > 0)
       {
           $main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD align="left" COLSPAN=2 CLASS=white><B>Quests</B></TD></TD align="right"></TD></TR>';   
           $number_of_quests = 0;
           foreach($config['site']['quests']['multi_storage'] as $questName => $storageID)
           {
               $bgcolor = (($number_of_rows++ % 2 == 1) ?  $config['site']['darkborder'] : $config['site']['lightborder']);
               $number_of_quests++;
               $main_content .= '<TR BGCOLOR="' . $bgcolor . '"><TD WIDTH=95%>' . $questName . '</TD>';
               if($player->getStorage($storageID[0]) == null)
               {
                   $main_content .= '<TD><img src="images/false.png"/></TD></TR>';
               }else if($player->getStorage($storageID[1]) == null)
               {
                   $main_content .= '<TD><img src="images/false.png"/></TD></TR>';
               }
               else
               {
                   $main_content .= '<TD><img src="images/true.png"/></TD></TR>';
               }
           }
           $main_content .= '</TABLE></td></tr></table><br />';
       }

Btw this is a modified code from Gesior2012/characters.php at TFS-1.0 · gesior/Gesior2012 · GitHub
 
Last edited:
Solution
Back
Top