root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/serverpackets/SM_INVENTORY_INFO.java

967993
40
	public static final int EMPTY = 0;
40
	public static final int EMPTY = 0;
41
	public static final int FULL = 1;
41
	public static final int FULL = 1;
42
	public int CUBE = 0;
42
	public int CUBE = 0;
43
	
43
44
	private List<Item> items;
44
	private List<Item> items;
45
	private int size;
45
	private int size;
46
46
47
	public int packetType = FULL;
47
	public int packetType = FULL;
48
	
48
49
	/**
49
	/**
50
	 * @param items
50
	 * @param items
51
	 */
51
	 */
...
...
57
		this.size = items.size();
57
		this.size = items.size();
58
		this.CUBE = cubesize;
58
		this.CUBE = cubesize;
59
	}
59
	}
60
	
60
61
	/**
61
	/**
62
	 * @param isEmpty
62
	 * @param isEmpty
63
	 */
63
	 */
...
...
78
			writeH(buf, 0);
78
			writeH(buf, 0);
79
			return;
79
			return;
80
		}
80
		}
81
		
81
82
		// something wrong with cube part.
82
		// something wrong with cube part.
83
		writeC(buf, 1); // TRUE/FALSE (1/0) update cube size
83
		writeC(buf, 1); // TRUE/FALSE (1/0) update cube size
84
		writeC(buf, CUBE); // cube size
84
		writeC(buf, CUBE); // cube size
...
...
88
		for(Item item : items)
88
		for(Item item : items)
89
		{
89
		{
90
			writeGeneralInfo(buf, item);
90
			writeGeneralInfo(buf, item);
91
			
91
92
			ItemTemplate itemTemplate = item.getItemTemplate();
92
			ItemTemplate itemTemplate = item.getItemTemplate();
93
			
93
94
			if(itemTemplate.getItemId() == ItemId.KINAH.value())
94
			if(itemTemplate.getItemId() == ItemId.KINAH.value())
95
			{
95
			{
96
				writeKinah(buf, item);
96
				writeKinah(buf, item, true);
97
			}
97
			}
98
			else if (itemTemplate.isWeapon())
98
			else if (itemTemplate.isWeapon())
99
			{
99
			{
100
				writeWeaponInfo(buf, item);
100
				writeWeaponInfo(buf, item, true);
101
			}
101
			}
102
			else if (itemTemplate.isArmor())
102
			else if (itemTemplate.isArmor())
103
			{
103
			{
104
				writeArmorInfo(buf,item);
104
				writeArmorInfo(buf,item, true);
105
			}
105
			}
106
			else
106
			else
107
			{				
107
			{