• 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++ Walk trough summon - C++

Kahras

Member
Joined
Aug 6, 2012
Messages
101
Reaction score
7
Location
Warsaw
Hello, I have a problem!
I changed it in tile.cpp:
C++:
if (const Monster* monster = creature->getMonster()) {
            if (hasFlag(TILESTATE_PROTECTIONZONE | TILESTATE_FLOORCHANGE | TILESTATE_TELEPORT)) {
                return RETURNVALUE_NOTPOSSIBLE;
            }

for this:
C++:
if (const Monster* monster = creature->getMonster()) {
            if (hasFlag(TILESTATE_PROTECTIONZONE | TILESTATE_FLOORCHANGE | TILESTATE_TELEPORT) && (!monster->isSummon() && monster->getSkull() != SKULL_YELLOW)) {
                return RETURNVALUE_NOTPOSSIBLE;
            }
The script was supposed to work in such a way that summons that have a yellow skull can enter the protection zone.
The problem is that it does not check whether monsters have yellow skulls.
Would anyone help?
 
Back
Top