if(itemtoexchange == 0) // how can it be?
{
return;
}
player.getInventory().unEquipItemInBodySlotAndNotify(item.getBodyPart(), item);
player.sendPacket(new InventoryUpdate().addRemovedItem(item));
item.setItemId(itemtoexchange);
player.sendPacket(new ShortCutInit(player));
for(int shotId : player.getAutoSoulShot())
{
player.sendPacket(new ExAutoSoulShot(shotId, true));
}
player.sendPacket(new InventoryUpdate().addNewItem(item));
player.sendPacket(new SystemMessage(SystemMessage.YOU_HAVE_EQUIPPED_YOUR_S1).addItemName(itemtoexchange));
ThreadPoolManager.getInstance().scheduleAi(new Runnable()
{
@Override
public void run()