if (!Config.SERVICES_EXCHANGE_BABY_PET_ENABLED)
{
show("Серви�? откл�?чен.", player);
return;
}
Summon pl_pet = player.getSummonList().getPet();
if ((pl_pet == null) || pl_pet.isDead() || !((pl_pet.getNpcId() == PetDataTable.IMPROVED_BABY_BUFFALO_ID) || (pl_pet.getNpcId() == PetDataTable.IMPROVED_BABY_KOOKABURRA_ID)))
{
show("�?ет должен быт�? вызван.", player);
return;
}
if (player.getInventory().destroyItemByItemId(Config.SERVICES_EXCHANGE_BABY_PET_ITEM, Config.SERVICES_EXCHANGE_BABY_PET_PRICE))
{
ItemInstance control = player.getInventory().getItemByObjectId(pl_pet.getControlItemObjId());
control.setItemId(L2Pet.IMPROVED_BABY_COUGAR.getControlItemId());
control.setJdbcState(JdbcEntityState.UPDATED);
control.update();
player.sendPacket(new InventoryUpdate().addModifiedItem(control));
player.getSummonList().unsummonPet(false);