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

No walk trought characters

Trannitis

New Member
Joined
Feb 28, 2015
Messages
95
Reaction score
1
Hello, m using tfs 1.1 tibia 10.41. Its possible to turn off walking throught other character?
 
Yes there is,

You need to change a piece of code, either you can set the flag bit FLAG_IGNOREBLOCKCREATURE for all characters.
Or you can change the source code and recompile it. (if you use the latest source code it can be found in tile.cpp line 570:

Code:
if (const Player* player = creature->getPlayer()) {
     if (creatures && !creatures->empty() && !hasBitSet(FLAG_IGNOREBLOCKCREATURE, flags) 
        && !player->isAccessPlayer()) {
           for (const Creature* tileCreature : *creatures) {
                if (!player->canWalkthrough(tileCreature)) {
                     return RETURNVALUE_NOTPOSSIBLE;
                }
           }
    }

Here you would remove the following from the if statement:
Code:
!hasBitSet(FLAG_IGNOREBLOCKCREATURE, flags) &&

I didn't test it myself, but I guess this should do the trick.. Hope it helps.
 
Back
Top