2
0
Эх сурвалжийг харах

Update for PrivateStore-Buy dialog: items amount to buy.

_DS_ 15 жил өмнө
parent
commit
0a9d67c85b

+ 8 - 0
L2_GameServer/java/net/sf/l2j/gameserver/model/TradeList.java

@@ -44,6 +44,7 @@ public class TradeList
 		private final L2Item _item;
 		private int _enchant;
 		private long _count;
+		private long _storeCount;
 		private long _price;
 		private final byte _elemAtkType;
 		private final int _elemAtkPower;
@@ -68,6 +69,7 @@ public class TradeList
 			_item = item;
 			_enchant = 0;
 			_count = count;
+			_storeCount = count;
 			_price = price;
 			_elemAtkType = Elementals.NONE;
 			_elemAtkPower = 0;
@@ -79,6 +81,7 @@ public class TradeList
 			_item = item.getItem();
 			_enchant = item.getEnchant();
 			_count = count;
+			_storeCount = count;
 			_price = price;
 			_elemAtkType = item.getAttackElementType();
 			_elemAtkPower = item.getAttackElementPower();
@@ -121,6 +124,11 @@ public class TradeList
 			return _count;
 		}
 
+		public long getStoreCount()
+		{
+			return _storeCount;
+		}
+
 		public void setPrice(long price)
 		{
 			_price = price;

+ 1 - 1
L2_GameServer/java/net/sf/l2j/gameserver/network/serverpackets/PrivateStoreListBuy.java

@@ -61,7 +61,7 @@ public class PrivateStoreListBuy extends L2GameServerPacket
 			writeH(item.getItem().getType2());
 			writeQ(item.getPrice());//buyers price
 
-			writeQ(item.getCount());  // maximum possible tradecount
+			writeQ(item.getStoreCount());  // maximum possible tradecount
 			
 			// T1
 			writeH(item.getAttackElementType());