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);
Hi! what I have to do to update myaac version without unistalling my previous one? helppp
thanks you
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
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);
}
sorry for tagging, but, can you help? @slawI'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):
Comparing master...Move-conjure-spells-to-lua · celohere/forgottenserver
Contribute to celohere/forgottenserver development by creating an account on GitHub.github.com
Ty.
sorry for tagging, but, can you help? @slaw
// loads instants
foreach( $spells->getElementsByTagName('instant') as $instant)
{
$this->instants[ $instant->getAttribute('name') ] = new OTS_Spell(self::SPELL_INSTANT, $instant);
}
// 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.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); } }
Idk if these are posible, so i’m posting here before suggest..Hello,
please vote on features you would like to see in MyAAC:
Most requested features · slawkens myaac · Discussion #212
Hello guys, please write what are the most requested features that are missing currently in MyAAC. If feature is already written, just upvote it (give 👍) and don't repeat yourself. I will take all ...github.com
If the feature is not there, just post it.
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.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.