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