activeChar.sendPacket(msg);
}
else if (!pet.isDead() && !activeChar.isMounted())
{
if(!activeChar.disarmWeapons()) return false;
Ride mount = new Ride(activeChar.getObjectId(), Ride.ACTION_MOUNT, pet.getTemplate().npcId);
Broadcast.toSelfAndKnownPlayersInRadius(activeChar, mount, 810000/*900*/);
activeChar.setMountType(mount.getMountType());
activeChar.setMountObjectID(pet.getControlItemId());
pet.unSummon(activeChar);
}
}
else if (activeChar.isRentedPet())
{
activeChar.stopRentPet();
}
else if (activeChar.isMounted())
{
// Dismount
if(activeChar.setMountType(0))
{
if (activeChar.isFlying())activeChar.removeSkill(SkillTable.getInstance().getInfo(4289, 1));
Ride dismount = new Ride(activeChar.getObjectId(), Ride.ACTION_DISMOUNT, 0);
Broadcast.toSelfAndKnownPlayers(activeChar, dismount);
activeChar.setMountObjectID(0);
}
}