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

C++ OTX 860 error using spells

If you are on a unix machine, you can do;
Bash:
grep -rnw '/path/to/server' -e 'You may not cast'

Edit: Neither TFS nor OTX has this behaviour on their current repo's
 
Last edited:
If you only have the binary, this won't be possible.

I have found this exact line in a TFS 0.4 r3884, it's defined under "RET_YOUMAYNOTCASTAREAONBLACKSKULL".
Another grep through the 0.4 sources tell me it's used all over the spells.cpp.
 
If you only have the binary, this won't be possible.

I have found this exact line in a TFS 0.4 r3884, it's defined under "RET_YOUMAYNOTCASTAREAONBLACKSKULL".
Another grep through the 0.4 sources tell me it's used all over the spells.cpp.

C++:
if(g_config.getBool(ConfigManager::USE_BLACK_SKULL))
    {
        if(player->getSkull() == SKULL_BLACK && isAggressive && range == -1) // CHECKME: -1 is (usually?) an area spell
        {
            player->sendCancelMessage(RET_YOUMAYNOTCASTAREAONBLACKSKULL);
            g_game.addMagicEffect(player->getPosition(), MAGIC_EFFECT_POFF);
            return false;
        }
    }
 
Back
Top