Proper RequestItemEnsoul InventoryUpdate logic.
Contributed by nasseka.
This commit is contained in:
@@ -225,8 +225,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -225,8 +225,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -225,8 +225,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -225,8 +225,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -225,8 +225,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -225,8 +225,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -225,8 +225,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -225,8 +225,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -225,8 +225,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -225,8 +225,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -227,8 +227,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -227,8 +227,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -227,8 +227,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -227,8 +227,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -227,8 +227,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -227,8 +227,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -225,8 +225,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -225,8 +225,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
@@ -225,8 +225,22 @@ public class RequestItemEnsoul implements IClientIncomingPacket
|
|||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
iu.addRemovedItem(soulCrystal);
|
if (soulCrystal.isStackable() && (soulCrystal.getCount() > 0))
|
||||||
iu.addModifiedItem(gemStones);
|
{
|
||||||
|
iu.addModifiedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(soulCrystal);
|
||||||
|
}
|
||||||
|
if (gemStones.isStackable() && (gemStones.getCount() > 0))
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(gemStones);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iu.addRemovedItem(gemStones);
|
||||||
|
}
|
||||||
iu.addModifiedItem(item);
|
iu.addModifiedItem(item);
|
||||||
}
|
}
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
|
Reference in New Issue
Block a user