Force updating multisell items to database.
This commit is contained in:
@ -447,14 +447,14 @@ public class MultiSellChoose implements IClientIncomingPacket
|
|||||||
addedItem.setAttribute(new AttributeHolder(AttributeType.EARTH, itemEnchantment.getAttributeDefence(AttributeType.EARTH)), false);
|
addedItem.setAttribute(new AttributeHolder(AttributeType.EARTH, itemEnchantment.getAttributeDefence(AttributeType.EARTH)), false);
|
||||||
addedItem.setAttribute(new AttributeHolder(AttributeType.HOLY, itemEnchantment.getAttributeDefence(AttributeType.HOLY)), false);
|
addedItem.setAttribute(new AttributeHolder(AttributeType.HOLY, itemEnchantment.getAttributeDefence(AttributeType.HOLY)), false);
|
||||||
addedItem.setAttribute(new AttributeHolder(AttributeType.DARK, itemEnchantment.getAttributeDefence(AttributeType.DARK)), false);
|
addedItem.setAttribute(new AttributeHolder(AttributeType.DARK, itemEnchantment.getAttributeDefence(AttributeType.DARK)), false);
|
||||||
addedItem.updateDatabase();
|
addedItem.updateDatabase(true);
|
||||||
// Mark that we have already upgraded the item.
|
// Mark that we have already upgraded the item.
|
||||||
itemEnchantmentProcessed = false;
|
itemEnchantmentProcessed = false;
|
||||||
}
|
}
|
||||||
if (product.getEnchantmentLevel() > 0)
|
if (product.getEnchantmentLevel() > 0)
|
||||||
{
|
{
|
||||||
addedItem.setEnchantLevel(product.getEnchantmentLevel());
|
addedItem.setEnchantLevel(product.getEnchantmentLevel());
|
||||||
addedItem.updateDatabase();
|
addedItem.updateDatabase(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (addedItem.getCount() > 1)
|
if (addedItem.getCount() > 1)
|
||||||
|
@ -489,14 +489,14 @@ public class MultiSellChoose implements IClientIncomingPacket
|
|||||||
addedItem.addSpecialAbility(_soulCrystalSpecialOptions[i], i + 1, 2, false);
|
addedItem.addSpecialAbility(_soulCrystalSpecialOptions[i], i + 1, 2, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
addedItem.updateDatabase();
|
addedItem.updateDatabase(true);
|
||||||
// Mark that we have already upgraded the item.
|
// Mark that we have already upgraded the item.
|
||||||
itemEnchantmentProcessed = false;
|
itemEnchantmentProcessed = false;
|
||||||
}
|
}
|
||||||
if (product.getEnchantmentLevel() > 0)
|
if (product.getEnchantmentLevel() > 0)
|
||||||
{
|
{
|
||||||
addedItem.setEnchantLevel(product.getEnchantmentLevel());
|
addedItem.setEnchantLevel(product.getEnchantmentLevel());
|
||||||
addedItem.updateDatabase();
|
addedItem.updateDatabase(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (addedItem.getCount() > 1)
|
if (addedItem.getCount() > 1)
|
||||||
|
@ -489,14 +489,14 @@ public class MultiSellChoose implements IClientIncomingPacket
|
|||||||
addedItem.addSpecialAbility(_soulCrystalSpecialOptions[i], i + 1, 2, false);
|
addedItem.addSpecialAbility(_soulCrystalSpecialOptions[i], i + 1, 2, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
addedItem.updateDatabase();
|
addedItem.updateDatabase(true);
|
||||||
// Mark that we have already upgraded the item.
|
// Mark that we have already upgraded the item.
|
||||||
itemEnchantmentProcessed = false;
|
itemEnchantmentProcessed = false;
|
||||||
}
|
}
|
||||||
if (product.getEnchantmentLevel() > 0)
|
if (product.getEnchantmentLevel() > 0)
|
||||||
{
|
{
|
||||||
addedItem.setEnchantLevel(product.getEnchantmentLevel());
|
addedItem.setEnchantLevel(product.getEnchantmentLevel());
|
||||||
addedItem.updateDatabase();
|
addedItem.updateDatabase(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (addedItem.getCount() > 1)
|
if (addedItem.getCount() > 1)
|
||||||
|
@ -489,14 +489,14 @@ public class MultiSellChoose implements IClientIncomingPacket
|
|||||||
addedItem.addSpecialAbility(_soulCrystalSpecialOptions[i], i + 1, 2, false);
|
addedItem.addSpecialAbility(_soulCrystalSpecialOptions[i], i + 1, 2, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
addedItem.updateDatabase();
|
addedItem.updateDatabase(true);
|
||||||
// Mark that we have already upgraded the item.
|
// Mark that we have already upgraded the item.
|
||||||
itemEnchantmentProcessed = false;
|
itemEnchantmentProcessed = false;
|
||||||
}
|
}
|
||||||
if (product.getEnchantmentLevel() > 0)
|
if (product.getEnchantmentLevel() > 0)
|
||||||
{
|
{
|
||||||
addedItem.setEnchantLevel(product.getEnchantmentLevel());
|
addedItem.setEnchantLevel(product.getEnchantmentLevel());
|
||||||
addedItem.updateDatabase();
|
addedItem.updateDatabase(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (addedItem.getCount() > 1)
|
if (addedItem.getCount() > 1)
|
||||||
|
@ -489,14 +489,14 @@ public class MultiSellChoose implements IClientIncomingPacket
|
|||||||
addedItem.addSpecialAbility(_soulCrystalSpecialOptions[i], i + 1, 2, false);
|
addedItem.addSpecialAbility(_soulCrystalSpecialOptions[i], i + 1, 2, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
addedItem.updateDatabase();
|
addedItem.updateDatabase(true);
|
||||||
// Mark that we have already upgraded the item.
|
// Mark that we have already upgraded the item.
|
||||||
itemEnchantmentProcessed = false;
|
itemEnchantmentProcessed = false;
|
||||||
}
|
}
|
||||||
if (product.getEnchantmentLevel() > 0)
|
if (product.getEnchantmentLevel() > 0)
|
||||||
{
|
{
|
||||||
addedItem.setEnchantLevel(product.getEnchantmentLevel());
|
addedItem.setEnchantLevel(product.getEnchantmentLevel());
|
||||||
addedItem.updateDatabase();
|
addedItem.updateDatabase(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (addedItem.getCount() > 1)
|
if (addedItem.getCount() > 1)
|
||||||
|
@ -489,14 +489,14 @@ public class MultiSellChoose implements IClientIncomingPacket
|
|||||||
addedItem.addSpecialAbility(_soulCrystalSpecialOptions[i], i + 1, 2, false);
|
addedItem.addSpecialAbility(_soulCrystalSpecialOptions[i], i + 1, 2, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
addedItem.updateDatabase();
|
addedItem.updateDatabase(true);
|
||||||
// Mark that we have already upgraded the item.
|
// Mark that we have already upgraded the item.
|
||||||
itemEnchantmentProcessed = false;
|
itemEnchantmentProcessed = false;
|
||||||
}
|
}
|
||||||
if (product.getEnchantmentLevel() > 0)
|
if (product.getEnchantmentLevel() > 0)
|
||||||
{
|
{
|
||||||
addedItem.setEnchantLevel(product.getEnchantmentLevel());
|
addedItem.setEnchantLevel(product.getEnchantmentLevel());
|
||||||
addedItem.updateDatabase();
|
addedItem.updateDatabase(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (addedItem.getCount() > 1)
|
if (addedItem.getCount() > 1)
|
||||||
|
Reference in New Issue
Block a user