if(isWear())
{
return;
}
ThreadConnection con = null;
FiltredPreparedStatement statement = null;
try
{
con = L2DatabaseFactory.getInstance().getConnection();
statement = con.prepareStatement("REPLACE INTO items (owner_id,item_id,count,loc,loc_data,enchant_level,object_id,custom_type1,custom_type2,shadow_life_time,name,class,flags) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)");
statement.setInt(1, getOwnerId());
statement.setInt(2, _itemId);
statement.setLong(3, _count);
statement.setString(4, _loc.name());
statement.setInt(5, _loc_data);
statement.setInt(6, getEnchantLevel());
statement.setInt(7, getObjectId());
statement.setInt(8, _type1);
statement.setInt(9, _type2);
statement.setInt(10, _lifeTimeRemaining);
statement.setString(11, getName());
statement.setString(12, getItemClass().name());
statement.setInt(13, _customFlags);
statement.executeUpdate();
_existsInDb = true;
_storedInDb = true;
Stat.increaseInsertItemCount();
}
catch(Exception e)