Store enchantments when updating item in database.
This commit is contained in:
@@ -1597,6 +1597,15 @@ public final class L2ItemInstance extends L2Object
|
|||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
_existsInDb = true;
|
_existsInDb = true;
|
||||||
_storedInDb = true;
|
_storedInDb = true;
|
||||||
|
|
||||||
|
if (_augmentation != null)
|
||||||
|
{
|
||||||
|
updateItemOptions(con);
|
||||||
|
}
|
||||||
|
if (_elementals != null)
|
||||||
|
{
|
||||||
|
updateItemElements(con);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@@ -1604,6 +1604,19 @@ public final class L2ItemInstance extends L2Object
|
|||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
_existsInDb = true;
|
_existsInDb = true;
|
||||||
_storedInDb = true;
|
_storedInDb = true;
|
||||||
|
|
||||||
|
if (_augmentation != null)
|
||||||
|
{
|
||||||
|
updateItemOptions(con);
|
||||||
|
}
|
||||||
|
if (_elementals != null)
|
||||||
|
{
|
||||||
|
updateItemElements(con);
|
||||||
|
}
|
||||||
|
if ((_ensoulOptions != null) || (_ensoulSpecialOptions != null))
|
||||||
|
{
|
||||||
|
updateSpecialAbilities(con);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@@ -1604,6 +1604,19 @@ public final class L2ItemInstance extends L2Object
|
|||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
_existsInDb = true;
|
_existsInDb = true;
|
||||||
_storedInDb = true;
|
_storedInDb = true;
|
||||||
|
|
||||||
|
if (_augmentation != null)
|
||||||
|
{
|
||||||
|
updateItemOptions(con);
|
||||||
|
}
|
||||||
|
if (_elementals != null)
|
||||||
|
{
|
||||||
|
updateItemElements(con);
|
||||||
|
}
|
||||||
|
if ((_ensoulOptions != null) || (_ensoulSpecialOptions != null))
|
||||||
|
{
|
||||||
|
updateSpecialAbilities(con);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@@ -1606,6 +1606,19 @@ public final class L2ItemInstance extends L2Object
|
|||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
_existsInDb = true;
|
_existsInDb = true;
|
||||||
_storedInDb = true;
|
_storedInDb = true;
|
||||||
|
|
||||||
|
if (_augmentation != null)
|
||||||
|
{
|
||||||
|
updateItemOptions(con);
|
||||||
|
}
|
||||||
|
if (_elementals != null)
|
||||||
|
{
|
||||||
|
updateItemElements(con);
|
||||||
|
}
|
||||||
|
if ((_ensoulOptions != null) || (_ensoulSpecialOptions != null))
|
||||||
|
{
|
||||||
|
updateSpecialAbilities(con);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@@ -1606,6 +1606,19 @@ public final class L2ItemInstance extends L2Object
|
|||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
_existsInDb = true;
|
_existsInDb = true;
|
||||||
_storedInDb = true;
|
_storedInDb = true;
|
||||||
|
|
||||||
|
if (_augmentation != null)
|
||||||
|
{
|
||||||
|
updateItemOptions(con);
|
||||||
|
}
|
||||||
|
if (_elementals != null)
|
||||||
|
{
|
||||||
|
updateItemElements(con);
|
||||||
|
}
|
||||||
|
if ((_ensoulOptions != null) || (_ensoulSpecialOptions != null))
|
||||||
|
{
|
||||||
|
updateSpecialAbilities(con);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@@ -1606,6 +1606,19 @@ public final class L2ItemInstance extends L2Object
|
|||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
_existsInDb = true;
|
_existsInDb = true;
|
||||||
_storedInDb = true;
|
_storedInDb = true;
|
||||||
|
|
||||||
|
if (_augmentation != null)
|
||||||
|
{
|
||||||
|
updateItemOptions(con);
|
||||||
|
}
|
||||||
|
if (_elementals != null)
|
||||||
|
{
|
||||||
|
updateItemElements(con);
|
||||||
|
}
|
||||||
|
if ((_ensoulOptions != null) || (_ensoulSpecialOptions != null))
|
||||||
|
{
|
||||||
|
updateSpecialAbilities(con);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@@ -1604,6 +1604,19 @@ public final class L2ItemInstance extends L2Object
|
|||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
_existsInDb = true;
|
_existsInDb = true;
|
||||||
_storedInDb = true;
|
_storedInDb = true;
|
||||||
|
|
||||||
|
if (_augmentation != null)
|
||||||
|
{
|
||||||
|
updateItemOptions(con);
|
||||||
|
}
|
||||||
|
if (_elementals != null)
|
||||||
|
{
|
||||||
|
updateItemElements(con);
|
||||||
|
}
|
||||||
|
if ((_ensoulOptions != null) || (_ensoulSpecialOptions != null))
|
||||||
|
{
|
||||||
|
updateSpecialAbilities(con);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@@ -1604,6 +1604,19 @@ public final class L2ItemInstance extends L2Object
|
|||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
_existsInDb = true;
|
_existsInDb = true;
|
||||||
_storedInDb = true;
|
_storedInDb = true;
|
||||||
|
|
||||||
|
if (_augmentation != null)
|
||||||
|
{
|
||||||
|
updateItemOptions(con);
|
||||||
|
}
|
||||||
|
if (_elementals != null)
|
||||||
|
{
|
||||||
|
updateItemElements(con);
|
||||||
|
}
|
||||||
|
if ((_ensoulOptions != null) || (_ensoulSpecialOptions != null))
|
||||||
|
{
|
||||||
|
updateSpecialAbilities(con);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@@ -1604,6 +1604,19 @@ public final class L2ItemInstance extends L2Object
|
|||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
_existsInDb = true;
|
_existsInDb = true;
|
||||||
_storedInDb = true;
|
_storedInDb = true;
|
||||||
|
|
||||||
|
if (_augmentation != null)
|
||||||
|
{
|
||||||
|
updateItemOptions(con);
|
||||||
|
}
|
||||||
|
if (_elementals != null)
|
||||||
|
{
|
||||||
|
updateItemElements(con);
|
||||||
|
}
|
||||||
|
if ((_ensoulOptions != null) || (_ensoulSpecialOptions != null))
|
||||||
|
{
|
||||||
|
updateSpecialAbilities(con);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@@ -1604,6 +1604,19 @@ public final class L2ItemInstance extends L2Object
|
|||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
_existsInDb = true;
|
_existsInDb = true;
|
||||||
_storedInDb = true;
|
_storedInDb = true;
|
||||||
|
|
||||||
|
if (_augmentation != null)
|
||||||
|
{
|
||||||
|
updateItemOptions(con);
|
||||||
|
}
|
||||||
|
if (_elementals != null)
|
||||||
|
{
|
||||||
|
updateItemElements(con);
|
||||||
|
}
|
||||||
|
if ((_ensoulOptions != null) || (_ensoulSpecialOptions != null))
|
||||||
|
{
|
||||||
|
updateSpecialAbilities(con);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user