else if (!TradeHelper.checksIfCanOpenStore(activeChar, Player.STORE_PRIVATE_MANUFACTURE))
{
activeChar.sendActionFailed();
return;
}
activeChar.sendPacket(new RecipeShopManageList(activeChar, true));
break;
}
case 38:
if (activeChar.getTransformation() != 0)
{
activeChar.sendPacket(SystemMsg.YOU_CANNOT_BOARD_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
}
else if (activeChar.isMounted())
{
if (activeChar.isFlying() && !activeChar.checkLandingState())
{
activeChar.sendPacket(Msg.YOU_ARE_NOT_ALLOWED_TO_DISMOUNT_AT_THIS_LOCATION, ActionFail.STATIC);
activeChar.sendActionFailed();
return;
}
activeChar.setMount(0, 0, 0);
}
else if (activeChar.isMounted() || activeChar.isInBoat())
{
activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
}
else if (activeChar.isDead())
{
activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
}
else if (activeChar.isInDuel())
{
activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
}
else if (activeChar.isFishing())
{
activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
}
else if (activeChar.isSitting())
{
activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
}
else if (activeChar.isCursedWeaponEquipped())
{
activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
}
else if (activeChar.getActiveWeaponFlagAttachment() != null)
{
activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
}
else if (activeChar.isCastingNow())
{
activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
}
else if (activeChar.isParalyzed())
{
activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
}
else if ((pet == null) || activeChar.isInCombat() || pet.isInCombat())
{
activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
}
else if (pet.isDead())
{
activeChar.sendPacket(Msg.A_DEAD_PET_CANNOT_BE_RIDDEN);
}
else if ((pet != null) && pet.isMountable())
{
activeChar.getEffectList().stopEffect(Skill.SKILL_EVENT_TIMER);
activeChar.setMount(pet.getTemplate().npcId, pet.getObjectId(), pet.getLevel());
activeChar.getSummonList().unsummonPet(false);
}
break;
case 37:
{
if (activeChar.getSittingTask())
{
activeChar.sendActionFailed();
return;
}
if (activeChar.isInStoreMode())
{
activeChar.setPrivateStoreType(Player.STORE_PRIVATE_NONE);
activeChar.standUp();
activeChar.broadcastCharInfo();
}
else if (!TradeHelper.checksIfCanOpenStore(activeChar, Player.STORE_PRIVATE_MANUFACTURE))
{
activeChar.sendActionFailed();
return;
}
activeChar.sendPacket(new RecipeShopManageList(activeChar, false));
break;
}
case 67:
if (activeChar.isInBoat() && activeChar.getBoat().isClanAirShip() && !activeChar.getBoat().isMoving)
{