249250251252253254255256257258
su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad()); activeChar.sendPacket(su); activeChar.broadcastUserInfo(); L2World world = L2World.getInstance(); world.removeObject(removedItem); activeChar.setInCrystallize(false); }
634635636637638639640641642643644645
su.addAttribute(StatusUpdate.CUR_LOAD, owner.getCurrentLoad()); owner.sendPacket(su); owner.broadcastUserInfo(); L2World world = L2World.getInstance(); world.removeObject(removedItem); } catch (Exception e){ _logPet.warning("Error while destroying control item: " + e); }
320321322323324325326327328329330331
su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad()); activeChar.sendPacket(su); activeChar.broadcastUserInfo(); L2World world = L2World.getInstance(); world.removeObject(destroyItem); } else { item.setEnchantLevel(0); item.updateDatabase();
444546474849505152535455
} @Override protected void runImpl() { L2World world = L2World.getInstance(); L2ItemInstance item = (L2ItemInstance)world.findObject(_objectId); if (item == null || getClient().getActiveChar() == null) return; if(getClient().getActiveChar().getPet() instanceof L2SummonInstance) { sendPacket(new ActionFailed());
169170171172173174175176
StatusUpdate su = new StatusUpdate(activeChar.getObjectId()); su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad()); activeChar.sendPacket(su); L2World world = L2World.getInstance(); world.removeObject(removedItem); }