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

Compiling Dismount in battle mode

mezuf98

New Member
Joined
Jul 4, 2016
Messages
37
Reaction score
0
HI, i tried, but i could not do this... I found this on player.cpp:

Code:
void Player::onChangeZone(ZoneType_t zone)
{
    if (zone == ZONE_PROTECTION) {
        if (attackedCreature && !hasFlag(PlayerFlag_IgnoreProtectionZone)) {
            setAttackedCreature(nullptr);
            onAttackedCreatureDisappear(false);
        }

        if (!group->access && isMounted()) {
            dismount();
            g_game.internalCreatureChangeOutfit(this, defaultOutfit);
            wasMounted = true;
        }
    } else {
        if (wasMounted) {
            toggleMount(true);
            wasMounted = false;
        }
    }

    g_game.updateCreatureWalkthrough(this);
    sendIcons();
}

Now, I need help to make the player dismount when in battle mode. I think the condition is "INFIGHT", but i dont know how to do this...

Thanks!
 
Back
Top