Updated LCoin shop list packet.
This commit is contained in:
@@ -88,14 +88,18 @@ public class LCoinShopData implements IXmlReader
|
||||
|
||||
final int id = parseInteger(attrs, "id");
|
||||
final int category = parseInteger(attrs, "category");
|
||||
final int[] ingredientIds = new int[3];
|
||||
final int[] ingredientIds = new int[5];
|
||||
ingredientIds[0] = 0;
|
||||
ingredientIds[1] = 0;
|
||||
ingredientIds[2] = 0;
|
||||
final long[] ingredientQuantities = new long[3];
|
||||
ingredientIds[3] = 0;
|
||||
ingredientIds[4] = 0;
|
||||
final long[] ingredientQuantities = new long[5];
|
||||
ingredientQuantities[0] = 0;
|
||||
ingredientQuantities[1] = 0;
|
||||
ingredientQuantities[2] = 0;
|
||||
ingredientQuantities[3] = 0;
|
||||
ingredientQuantities[4] = 0;
|
||||
int productionId = 0;
|
||||
int accountDailyLimit = 0;
|
||||
for (Node b = d.getFirstChild(); b != null; b = b.getNextSibling())
|
||||
@@ -122,10 +126,18 @@ public class LCoinShopData implements IXmlReader
|
||||
{
|
||||
ingredientIds[1] = ingredientId;
|
||||
}
|
||||
else
|
||||
else if (ingredientIds[2] == 0)
|
||||
{
|
||||
ingredientIds[2] = ingredientId;
|
||||
}
|
||||
else if (ingredientIds[3] == 0)
|
||||
{
|
||||
ingredientIds[3] = ingredientId;
|
||||
}
|
||||
else
|
||||
{
|
||||
ingredientIds[4] = ingredientId;
|
||||
}
|
||||
|
||||
if (ingredientQuantities[0] == 0)
|
||||
{
|
||||
@@ -135,10 +147,18 @@ public class LCoinShopData implements IXmlReader
|
||||
{
|
||||
ingredientQuantities[1] = ingredientQuantity;
|
||||
}
|
||||
else
|
||||
else if (ingredientQuantities[2] == 0)
|
||||
{
|
||||
ingredientQuantities[2] = ingredientQuantity;
|
||||
}
|
||||
else if (ingredientQuantities[3] == 0)
|
||||
{
|
||||
ingredientQuantities[3] = ingredientQuantity;
|
||||
}
|
||||
else
|
||||
{
|
||||
ingredientQuantities[4] = ingredientQuantity;
|
||||
}
|
||||
}
|
||||
else if ("production".equalsIgnoreCase(b.getNodeName()))
|
||||
{
|
||||
|
@@ -57,11 +57,17 @@ public class ExPurchaseLimitShopItemListNew implements IClientOutgoingPacket
|
||||
packet.writeD(product.getIngredientIds()[0]);
|
||||
packet.writeD(product.getIngredientIds()[1]);
|
||||
packet.writeD(product.getIngredientIds()[2]);
|
||||
packet.writeD(product.getIngredientIds()[3]);
|
||||
packet.writeD(product.getIngredientIds()[4]);
|
||||
packet.writeQ(product.getIngredientQuantities()[0]);
|
||||
packet.writeQ(product.getIngredientQuantities()[1]);
|
||||
packet.writeQ(product.getIngredientQuantities()[2]);
|
||||
packet.writeQ(product.getIngredientQuantities()[3]);
|
||||
packet.writeQ(product.getIngredientQuantities()[4]);
|
||||
|
||||
packet.writeH(0x00); // ?
|
||||
packet.writeH(0x00); // ? 306
|
||||
packet.writeH(0x00); // ? 306
|
||||
|
||||
packet.writeC(-1); // remaining amount?
|
||||
packet.writeC(-1); // remaining time?
|
||||
|
Reference in New Issue
Block a user