Config for disabling mounts on sieges.

This commit is contained in:
mobius
2015-01-02 14:33:23 +00:00
parent ead9206d06
commit 52afbcbf9c
4 changed files with 27 additions and 1 deletions

View File

@@ -182,6 +182,16 @@ public class L2SiegeZone extends L2ZoneType
plyer.sendPacket(SystemMessageId.THIS_AREA_CANNOT_BE_ENTERED_WHILE_MOUNTED_ATOP_OF_A_WYVERN_YOU_WILL_BE_DISMOUNTED_FROM_YOUR_WYVERN_IF_YOU_DO_NOT_LEAVE);
plyer.enteredNoLanding(DISMOUNT_DELAY);
}
if (!Config.ALLOW_MOUNTS_DURING_SIEGE && (plyer.isMounted()))
{
plyer.dismount();
}
if (!Config.ALLOW_MOUNTS_DURING_SIEGE && plyer.isTransformed() && plyer.getTransformation().isRiding())
{
plyer.untransform();
}
}
}
}