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

Fix/Patch [Fix/Patch]Player CanWalkThrough [TFS 1.0]

IN player.cpp:

In fuction bool Player::canWalkthrough
Change:
Code:
if (playerTile && playerTile->hasFlag(TILESTATE_PROTECTIONZONE)) {

TO:

Code:
if (playerTile && (playerTile->hasFlag(TILESTATE_PROTECTIONZONE) || (player->getLevel() < 100))) {

In function bool Player::canWalkthroughEx
Change:
Code:
return playerTile && playerTile->hasFlag(TILESTATE_PROTECTIONZONE);

TO:
Code:
return playerTile && (playerTile->hasFlag(TILESTATE_PROTECTIONZONE) || player->getLevel() < 100);


Replace 100 with your protection level.
 
Lel,
player->getLevel() < 100 you can replace lvl 100 as value from config.lua
 
Back
Top