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

MyAAC v0.7.12

Status
Not open for further replies.
Slawkens please fix the guild site so i could invite a players also its showing an error when im trying to change the title as i posted before.
Code:
Fatal error: Uncaught exception 'E_OTS_NotLoaded' in D:\Tibia Projekt\xampp\htdocs\system\libs\pot\OTS_Guild.php:230 Stack trace: #0 D:\Tibia Projekt\xampp\htdocs\system\pages\guilds.php(2358): OTS_Guild->getName() #1 D:\Tibia Projekt\xampp\htdocs\index.php(229): require('D:\\Tibia Projek...') #2 {main} thrown in D:\Tibia Projekt\xampp\htdocs\system\libs\pot\OTS_Guild.php on line 230

Also in the creature site when i reload the monsters i see them all in added for example added Omruc. But some of them like Omruc are not in the table. Idk why.

What OTS are you using?
 
Slawkens please fix the guild site so i could invite a players also its showing an error when im trying to change the title as i posted before.
Code:
Fatal error: Uncaught exception 'E_OTS_NotLoaded' in D:\Tibia Projekt\xampp\htdocs\system\libs\pot\OTS_Guild.php:230 Stack trace: #0 D:\Tibia Projekt\xampp\htdocs\system\pages\guilds.php(2358): OTS_Guild->getName() #1 D:\Tibia Projekt\xampp\htdocs\index.php(229): require('D:\\Tibia Projek...') #2 {main} thrown in D:\Tibia Projekt\xampp\htdocs\system\libs\pot\OTS_Guild.php on line 230

Also in the creature site when i reload the monsters i see them all in added for example added Omruc. But some of them like Omruc are not in the table. Idk why.

Ok this has been fixed.
Download latest version here: https://github.com/slawkens/myaac/archive/master.zip

However, changing guild title has no effect. I will look into it later.
 
Quick fix in accountmanagment.php, put with the rest of the skills on line 1109

$player->setSkill('skill_fist', '10');
$player->setSkill('skill_club', '10');
$player->setSkill('skill_sword', '10');
$player->setSkill('skill_axe', '10');
$player->setSkill('skill_dist', '10');
$player->setSkill('skill_shielding', '10');
$player->setSkill('skill_fishing', '10');
 
d41811be403272cf057242f66189e6e7.png


It works good even without your code.
mine removes all that .304 stuff, looks ugly
 
Quick fix in accountmanagment.php, put with the rest of the skills on line 1109

$player->setSkill('skill_fist', '10');
$player->setSkill('skill_club', '10');
$player->setSkill('skill_sword', '10');
$player->setSkill('skill_axe', '10');
$player->setSkill('skill_dist', '10');
$player->setSkill('skill_shielding', '10');
$player->setSkill('skill_fishing', '10');

Thank you! A little modified version I'm going to post to the MyAAC repo.
Code:
                for($skill = POT::SKILL_FIRST; $skill <= POT::SKILL_LAST; $skill++)
                    $player->setSkill($skill, 10);
 
New version has been just released!

Latest version is: 0.2.3

Changes:
* fixed guild management on OTHire 0.0.3
* set default skills to 10 when creating new character
* fixed displaying of "Create forum thread" in newses
* fixed deleting guild on servers that use players.rank_id field
* fixed phpmailer class loading ([MyAAC] v0.0.1)
* fixed displaying vocation amount on online page
* better support for custom vocations, you just need to set in config vocations_amount to yours.
* fixed huge space in player name ([MyAAC] v0.0.1)
* fixed Undefined variable ([MyAAC] v0.0.1)
* fixed Undefined offset ([MyAAC] v0.0.1)
 
Great job dude with the new version. Also i noticed that every new player has a loss_containers set to 10 even when i set the samples and all others to 100.
Code:
if(fieldExist('loss_items', 'players')) {
                    $player->setLossItems($char_to_copy->getLossItems());
                    $player->setLossContainers($char_to_copy->getLossContainers());  <---Looks ok right ?                
}
Sure i could rewrite to code to number 100 but its not very effective, how should i fix that ? THX for answer
 
Great job dude with the new version. Also i noticed that every new player has a loss_containers set to 10 even when i set the samples and all others to 100.
Code:
if(fieldExist('loss_items', 'players')) {
                    $player->setLossItems($char_to_copy->getLossItems());
                    $player->setLossContainers($char_to_copy->getLossContainers());  <---Looks ok right ?               
}
Sure i could rewrite to code to number 100 but its not very effective, how should i fix that ? THX for answer

Thank you! There were a typo in code that caused this.
Edit system\libs\pot\OTS_Player.php
Code:
    public function getLossContainers()
    {
        if( !isset($this->data['loss_containers']) )
        {
            throw new E_OTS_NotLoaded();
        }

        return $this->data['loss_items'];
    }

Change in last line loss_items to loss_containers.

@slawkens wowowowowo amazing!! Ty so much for this!

Nice to hear ;)! No problem.
 
Hello. Online page showing undefined index vocation_amount on line 99
Code:
    $vocs[($player['vocation'] > $config['vocations_amount'] ? $player['vocation'] - $config['vocations_amount'] : $player['vocation'])]++;

hhUgczj.png
 
Hello. Online page showing undefined index vocation_amount on line 99
Code:
    $vocs[($player['vocation'] > $config['vocations_amount'] ? $player['vocation'] - $config['vocations_amount'] : $player['vocation'])]++;

hhUgczj.png

You forgot to update your config.php. There's new configurable vocations_amount. Either use WinMerge to see differences or paste you configurables into config.local.php so you can easily update AAC.
 
You forgot to update your config.php. There's new configurable vocations_amount. Either use WinMerge to see differences or paste you configurables into config.local.php so you can easily update AAC.
Thank you very much. Also if i want to invite someone to guild it says that he is already in guild even when he is not.
 
Hey, noticed that your AAC uses salt but I didn't find a way to disable it for older TFS versions which doesn't support salt. Also I would like to see more layouts for MyAAC.
 
Hey, noticed that your AAC uses salt but I didn't find a way to disable it for older TFS versions which doesn't support salt. Also I would like to see more layouts for MyAAC.

Salt is only enabled if your server has 'salt' field in 'accounts' table. If it doesn't use salt, then it doesn't have that field. And if for some reason it has 'salt' field, then you can delete it. Then AAC won't use it.
 
Reload monsters doesnt works for me, doesnt add all monsters (using tfs 1.2 realmap based distro)
 
Status
Not open for further replies.
Back
Top