• 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.8.13

I have added FAQ section few days ago.

Might be worth posting it here aswell ;)


If you have any ideas what questions can be added there, please message me on Discord slawkens#7932
 
@slaw hio!

Do you know how to add mulitple colors as "ground" layer in AnimatedOutfits?
I have outfits which isn't fully white and other colors like down below.
Maybe you can help?

Its in outfitter.php - from animtedOutfits

PHP:
    public static $data = [];
    private static $transparentBackgroundColor = array(255, 255, 255);
    private static $transparentBackgroundColor2 = array(148,148,148);
    private static $transparentBackgroundColor3 = array(134,134,134);
    private static $transparentBackgroundColor4 = array(100,102,101);
    private static $transparentBackgroundColor5 = array(76,76,76);
    private static $transparentBackgroundColor6 = array(62,60,60);
    private static $transparentBackgroundColor7 = array(180,172,172);
 
Hello
What about scripts? Top Achievements, Top Quests?
I really like the admin panel, but I don't know what the scripts situation is like.

And I have a dilemma myacc or gesior
 
Hi! what I have to do to update myaac version without unistalling my previous one? helppp

thanks you :p
 
Hi! what I have to do to update myaac version without unistalling my previous one? helppp

thanks you :p

You can use tools like WinMerge to compare files and update accordingly.

If you didn't change any files, then you can also simple copy and paste files into your old directory.
 
Hello, does anyone know how to change outfit link to the outfit from animated outfits.php folder files? I have them in images/outfits/animoutfit.php i try and not loading ??


// images
'outfit_images_url' => 'https://outfit-images.ots.me/12xx_latest_walk/animoutfit.php', // set to animoutfit.php for animated outfit
'item_images_url' => 'images/items', // set to images/items if you host your own items in images folder

Hello, I have a problem with editing the character's town in the admin panel, someone knows how to solve it??

Warning: Undefined array key "town" in C:\xampp\htdocs\admin\pages\players.php on line 176
 
Hello, I have a problem with editing the character's town in the admin panel, someone knows how to solve it??

Warning: Undefined array key "town" in C:\xampp\htdocs\admin\pages\players.php on line 176

Add your towns into config.php
 
I'm not sure if this is the right place, but..
On TFS 1.5 Nekiro's 8.0 downgrade, spells.xml dont have an specific "conjure" tag for conjuring spells, so, myaac cannot find them..
they are set as normal instant spells.. how can i correct this?
i can create specific attributes inside a tag, like group or something, but idk how to change the function to "filter" specific attributes..

how it is actually:

Lua:
        foreach( $spells->getElementsByTagName('rune') as $rune)
        {
            $this->runes[ $rune->getAttribute('name') ] = new OTS_Spell(self::SPELL_RUNE, $rune);
        }

        // loads instants
        foreach( $spells->getElementsByTagName('instant') as $instant)
        {
            $this->instants[ $instant->getAttribute('name') ] = new OTS_Spell(self::SPELL_INSTANT, $instant);
        }

        // loads conjures
        foreach( $spells->getElementsByTagName('conjure') as $conjure)
        {
            $this->conjures[ $conjure->getAttribute('name') ] = new OTS_Spell(self::SPELL_CONJURE, $conjure);
        }

if i was not clear, all conjure spells inside spells.xml are "instant" spells for myaac...
how can i say to the function:
instant spells are spells that have (example) tagname = instant and don't have (example) an attribute called "conjureId"
and
conjure spells are spells with the tagname = instant AND an attribute called "conjureId" ?

Here is how conjure spells are in this source (check spells.xml):

Ty.
 
Last edited:
Im very new to this but the news.html.twig just wont update.

1671588820610.png1671588846977.png
1671588884498.png
(some imgs to show my problem).
I legit dont get it, how does it still get that id="News" and all the styling etc of the original one, when mine doesnt even contain any classes or ids. (I say mine but the one in the picture is a copy of the one from Telara layour). Im probably doing some really simple mistake but I cant get it to work properly.
Any helpers? ^^
 
I'm not sure if this is the right place, but..
On TFS 1.5 Nekiro's 8.0 downgrade, spells.xml dont have an specific "conjure" tag for conjuring spells, so, myaac cannot find them..
they are set as normal instant spells.. how can i correct this?
i can create specific attributes inside a tag, like group or something, but idk how to change the function to "filter" specific attributes..

how it is actually:

Lua:
        foreach( $spells->getElementsByTagName('rune') as $rune)
        {
            $this->runes[ $rune->getAttribute('name') ] = new OTS_Spell(self::SPELL_RUNE, $rune);
        }

        // loads instants
        foreach( $spells->getElementsByTagName('instant') as $instant)
        {
            $this->instants[ $instant->getAttribute('name') ] = new OTS_Spell(self::SPELL_INSTANT, $instant);
        }

        // loads conjures
        foreach( $spells->getElementsByTagName('conjure') as $conjure)
        {
            $this->conjures[ $conjure->getAttribute('name') ] = new OTS_Spell(self::SPELL_CONJURE, $conjure);
        }

if i was not clear, all conjure spells inside spells.xml are "instant" spells for myaac...
how can i say to the function:
instant spells are spells that have (example) tagname = instant and don't have (example) an attribute called "conjureId"
and
conjure spells are spells with the tagname = instant AND an attribute called "conjureId" ?

Here is how conjure spells are in this source (check spells.xml):

Ty.
sorry for tagging, but, can you help? @slaw
 
sorry for tagging, but, can you help? @slaw

Hi, dunno if you still need, but here is the solution to your problem.

I used a small trick, because there was no conjureId in that downgraded spells.xml
But I noticed that there is "script" attribute with folder named "conjuring".
So I used this info to parse conjures..

File: system/libs/pot/OTS_SpellsList.php

Replace:
PHP:
// loads instants
        foreach( $spells->getElementsByTagName('instant') as $instant)
        {
            $this->instants[ $instant->getAttribute('name') ] = new OTS_Spell(self::SPELL_INSTANT, $instant);
        }

With:
PHP:
     // loads instants
     foreach( $spells->getElementsByTagName('instant') as $instant)
     {
          $script = $instant->getAttribute('script');
          if (!empty($script) && strpos($script, 'conjuring/') !== false) {
               $this->conjures[ $instant->getAttribute('name') ] = new OTS_Spell(self::SPELL_CONJURE, $instant);
          }
          else {
               $this->instants[$instant->getAttribute('name')] = new OTS_Spell(self::SPELL_INSTANT, $instant);
            }
     }
 
Hi, dunno if you still need, but here is the solution to your problem.

I used a small trick, because there was no conjureId in that downgraded spells.xml
But I noticed that there is "script" attribute with folder named "conjuring".
So I used this info to parse conjures..

File: system/libs/pot/OTS_SpellsList.php

Replace:
PHP:
// loads instants
        foreach( $spells->getElementsByTagName('instant') as $instant)
        {
            $this->instants[ $instant->getAttribute('name') ] = new OTS_Spell(self::SPELL_INSTANT, $instant);
        }

With:
PHP:
     // loads instants
     foreach( $spells->getElementsByTagName('instant') as $instant)
     {
          $script = $instant->getAttribute('script');
          if (!empty($script) && strpos($script, 'conjuring/') !== false) {
               $this->conjures[ $instant->getAttribute('name') ] = new OTS_Spell(self::SPELL_CONJURE, $instant);
          }
          else {
               $this->instants[$instant->getAttribute('name')] = new OTS_Spell(self::SPELL_INSTANT, $instant);
            }
     }
Thanks a lot.
 
Hello,

please vote on features you would like to see in MyAAC:


If the feature is not there, just post it.
 
Hello,

please vote on features you would like to see in MyAAC:


If the feature is not there, just post it.
Idk if these are posible, so i’m posting here before suggest..
character auction system.
Show quests on character page.
Interactive map: loading from otbm maybe.
Off-line market (using the in-game market database).
 
Hello,

The time has come.

Today I'm releasing MyAAC v0.8.

The biggest release since 2 years of work.

This release wouldn't be possible without the help of: @Leesne, @whiteblXK. Thumbs up for them.

Also big thanks to OTServ BR Admin - Majesty for the support and continuous communication.

Some screenshots:

New Bootstrap Admin Panel:
View attachment 42618
View attachment 42619
View attachment 42620View attachment 42621View attachment 42622
Create Character directly on Create Account Page
View attachment 42623
New Creatures Page:
View attachment 42615
New Spells Page:
View attachment 42616

New Team page:
View attachment 42617


Biggest changes:
  • New Bootstrap 3 Admin Panel by @Leesneaks (with accounts editor and modules)
  • Environment is now configurable by env setting (Significantly better load times with 'prod')
  • Replace spells, monsters tables with JavaScript Sortable Tables - DataTables (@Leesneaks)
  • Change default MySQL Storage Engine to InnoDB and Default Character Set to utf8
  • New configurables:
  • account_create_auto_login (Auto Login after Create Account - Registration)
  • account_create_character_create (Create Character directly on Create Account page) (@tobi132)
  • database_log (Logging of Database Queries to database.log)
  • smtp_debug (More info about SMTP errors in mailer-error.log)
  • New plugin options
  • Support for database persistent and socket connections (performance boost)
  • Database towns table support for TFS 1.3 (@tobi132)
  • Move items from database to Cache_PHP (Much more faster load time)
  • Move pages to Twig templates: team, lastkills, serverinfo, houses, guilds.list, guild.view, admin.logs, admin.reports (@whiteblXK, @tobi132)
  • Possibility to define colors and "Open in New Tab" on Template Menus (needs to be supported by Template)
  • Team page - display outfits of the players (configurable) (@whiteblXK)
  • Forum: show user avatar (outfit) in posts
  • New hooks: LOGIN, LOGIN_ATTEMPT, LOGOUT, HOOK_ACCOUNT_CREATE_*
  • sandbox for plugins, don't install when requirements are not satisfied
  • php 7.x APCu cache support (faster cache engine)
  • updated Twig to version v1.35.0
  • updated TinyMCE to version v4.7.4

Demo:
Supported servers: slawkens/myaac (https://github.com/slawkens/myaac/wiki/Supported-servers)
Changelog: slawkens/myaac (https://github.com/slawkens/myaac/blob/master/CHANGELOG.md)
Download: Release MyAAC v0.8.7 · otsoft/myaac (https://github.com/otsoft/myaac/releases/tag/v0.8.7)

Please use Support Board (Support (https://otland.net/forums/support.16/)) for support matters, and GitHub Issue Tracker (slawkens/myaac (https://github.com/slawkens/myaac/issues)) for reporting bugs.
I'm trying to justify this text and make a change. Can someone tell me where is the file that loads this text? I've already tried, and to no avail.
 

Attachments

  • page_create_account.png
    page_create_account.png
    139.4 KB · Views: 7 · VirusTotal
News!

You can now preview the new release (0.9) and login as admin to view the new admin panel!

Page: Login - MyAAC Next Demo (https://next.my-aac.org/admin)

Login: admin, password: admin

You can do almost anything. Only plugin upload is disabled and php pages, for security. You cannot also edit the admin account, and you cannot change password.

Please don't destroy! :p

Image for attention!
1676544891562.png
 
v0.8.9 has been released!

Mostly fixes and small changes.


Added​

  • You can now disable server status checking for testing purposes, useful for local testing when there is no server running
    • with this, the page won't need 2 seconds to load
    • set status_enabled to false in config.php
  • new buttons code for tibiacom template, can create button with any text
  • patched some small changes from develop branch

Changed​

  • add .git to denied folders in nginx-sample.conf
  • plugins folder is now accessible from outside
  • add plugins folder to twig search paths

Fixed​

  • player save on tfs 1.5 with new ipv6
  • more php 8.x compatibility
  • rel path for exception message, causing message to be not in red background
 
Back
Top