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

Disable MvM damage.

whiteblXK

Active Member
Joined
Apr 20, 2011
Messages
315
Solutions
9
Reaction score
32
Location
Poland
Hello, I have code written in C++, and on my server it doesn't work because it doesn't have a variable "deny". Can someone edit this script so that it was not "deny" variable? Code have to disable monster vs monster damage excluding the attacking player's own summon and vice versa, summons deal other summons damage but not if it summons from the same player.

Code:
 if(attacker && target)
                {
                    if(attacker->getMonster() && target->getMonster())
                    {
                        if(attacker->isSummon() && target->isSummon())
                        {
                            if(!attacker->isPlayerSummon() && !target->isPlayerSummon())
                                deny = true;
                        }
                        else if(attacker->isSummon())
                            deny = (!attacker->isPlayerSummon() ? true : false);
                        else if(target->isSummon())
                            deny = (!target->isPlayerSummon() ? true : false);
                        else
                            deny = true;
                    }
                }
 
Back
Top