what am i doing wrong? it kinda works, but the item always looks like a weapon on the client when you click the "?" icon ><
CSPacket Packet; Packet.set(64);
Packet << (BYTE)0xFE << (INT16)0x6C; //writeC(0xfe); writeH(0x6c);
Packet << (int)pItem->nObjectID; //writeD(_item.getObjectId());
Packet << (int)pItem->nObjectType; //writeD(_item.getItemId());
Packet << (int)pItem->SD->amount; //writeD(_item.getCount());
Packet << (INT16)pItem->SD->nSlot; //writeH(_item.getItem().getType2());
Packet << (int)pItem->SD->bodyPart; //writeD(_item.getItem().getBodyPart());
Packet << (INT16)pItem->SD->nEnchantLV; //writeH(_item.getEnchantLevel());
Packet << (INT16)0x00; //writeH(_item.getCustomType2()); // Pet name exists or not shown in control item
Packet << (INT16)0x00; //writeH(0x00); // ??
Packet << (int)0x00; //writeD(_item.isAugmented() ? _item.getAugmentation().getAugmentationId() : 0x00);
Packet << (int)0x00; //writeD(_item.getMana());
Packet << (int)0x00; //writeD(-2); //writeH(_item.getAttackElementType());
Packet << (int)0x00; //writeD(0x00); //writeH(_item.getAttackElementPower());
Packet << (int)0x00; //writeD(0x00); //_item.getElementDefAttr(0)
Packet << (int)0x00; //writeD(0x00); //_item.getElementDefAttr(1)
Packet << (int)0x00; //writeD(0x00); //_item.getElementDefAttr(2)
Packet << (int)0x00; //writeD(0x00); //_item.getElementDefAttr(3)
Packet << (int)0x00; //writeD(0x00); //_item.getElementDefAttr(4)
Packet << (int)0x00; //writeD(0x00); //_item.getElementDefAttr(5)
as you can imagine, the commented code is from l2j :P
the error is probably at the type2 and customType2, cause i dont know what to send there :/
SS's from current packet result:
http://www.werminghoff.com.br/L2/Shot00000.JPG
http://www.werminghoff.com.br/L2/Shot00001.JPG
http://www.werminghoff.com.br/L2/Shot00004.JPG
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 05-28-2009, 11:52 PM. Открыть источник.