|
@@ -43,6 +43,7 @@ public class TradeList
|
|
|
private int _objectId;
|
|
|
private final L2Item _item;
|
|
|
private int _enchant;
|
|
|
+ private int _type2;
|
|
|
private long _count;
|
|
|
private long _storeCount;
|
|
|
private long _price;
|
|
@@ -55,12 +56,14 @@ public class TradeList
|
|
|
_objectId = item.getObjectId();
|
|
|
_item = item.getItem();
|
|
|
_enchant = item.getEnchantLevel();
|
|
|
+ _type2 = item.getCustomType2();
|
|
|
_count = count;
|
|
|
_price = price;
|
|
|
_elemAtkType = item.getAttackElementType();
|
|
|
_elemAtkPower = item.getAttackElementPower();
|
|
|
for (byte i = 0; i < 6; i++)
|
|
|
_elemDefAttr[i] = item.getElementDefAttr(i);
|
|
|
+ System.err.println("item "+_item.getName());
|
|
|
}
|
|
|
|
|
|
public TradeItem(L2Item item, long count, long price)
|
|
@@ -68,6 +71,7 @@ public class TradeList
|
|
|
_objectId = 0;
|
|
|
_item = item;
|
|
|
_enchant = 0;
|
|
|
+ _type2 = 0;
|
|
|
_count = count;
|
|
|
_storeCount = count;
|
|
|
_price = price;
|
|
@@ -80,6 +84,7 @@ public class TradeList
|
|
|
_objectId = item.getObjectId();
|
|
|
_item = item.getItem();
|
|
|
_enchant = item.getEnchant();
|
|
|
+ _type2 = 0;
|
|
|
_count = count;
|
|
|
_storeCount = count;
|
|
|
_price = price;
|
|
@@ -114,6 +119,11 @@ public class TradeList
|
|
|
return _enchant;
|
|
|
}
|
|
|
|
|
|
+ public int getCustomType2()
|
|
|
+ {
|
|
|
+ return _type2;
|
|
|
+ }
|
|
|
+
|
|
|
public void setCount(long count)
|
|
|
{
|
|
|
_count = count;
|