Store enchantments when updating item in database.
This commit is contained in:
parent
41a44ddaac
commit
7081259a6a
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user