• 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 ZnoteACC Boost Creatures

Weteran

New Member
Joined
Sep 13, 2020
Messages
13
Reaction score
3
Hi i Have problem with Znote ACC because is different boost creature in game and login client someone know how fix that?

Console:
[2021-11-05 15:09:17.979] [info] Boosted creature: Flying Book

1620738786808.png
Game:
1620738969775.png
 
Your AAC is hardcoded.

Game is using the real boosted creature.
Login.php is still sending a fixed raceid, so OTC/AAC can show a different one.

In ZnoteAAC/login.php replace this:

PHP:
case 'boostedcreature':
    sendMessage(array(
        //'boostedcreature' => false,
        'raceid' => 219
    ));
break;

with this:

PHP:
case 'boostedcreature':
    $boost = mysql_select_single("SELECT `raceid` FROM `boosted_creature` LIMIT 1;");

    if ($boost !== false) {
        sendMessage(array(
            'boostedcreature' => true,
            'raceid' => (int)$boost['raceid']
        ));
    }

    sendMessage(array(
        'boostedcreature' => false,
        'raceid' => 0
    ));
break;

If your table keeps more than one row, use newest row instead:

PHP:
$boost = mysql_select_single("SELECT `raceid` FROM `boosted_creature` ORDER BY `id` DESC LIMIT 1;");

That is the whole issue.
ZnoteAAC default login.php sends a fixed boosted creature.
Your server rotates boosted creature from DB.
So client side and game side end up reading different sources.

If it still shows the wrong one after this, then the bad value is already inside boosted_creature and the problem is on the server side, not AAC.
 
Back
Top