• 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++ how create walkthrough summon ?

You can add this to player.cpp to make the players able to walkthrough summons.
one of them work u must try :)
PHP:
                Player* thisPlayer222 = const_cast<Player*>(this);

                 if ( creature->getMaster()->getPlayer() == thisPlayer222->getPlayer() ) {
                    return true
                 }
or
PHP:
                Player* thisPlayer222 = const_cast<Player*>(this);

                 if ( creature->getMaster()->getPlayer() == thisPlayer222 ) {
                    return true
                 }
Add it here:
https://github.com/otland/forgotten...522e715bd41f2493858ab0e46/src/player.cpp#L823
 
That will cause crash, if master is nil.

Code:
const Creature* master = creature->getMaster();
if (master && master == this) {
     return true;
}
 
Back
Top