PDA

View Full Version : help on ExRpItemLink


CyberSick
28.05.2009, 23:52
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. Открыть источник (https://web.archive.org/web/20100324120956id_/http://www.postpacific.com:80/archive/index.php/t-136.html).

kold
30.05.2009, 05:38
Packet << (INT16)pItem->SD->nSlot;

Change to int / add another short after

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 05-30-2009, 05:38 AM. Открыть источник (https://web.archive.org/web/20100324120956id_/http://www.postpacific.com:80/archive/index.php/t-136.html).

CyberSick
30.05.2009, 12:01
weird...

but now it works, thanks ;)

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 05-30-2009, 12:01 PM. Открыть источник (https://web.archive.org/web/20100324120956id_/http://www.postpacific.com:80/archive/index.php/t-136.html).

Êèì ×åí Ûð
30.05.2009, 12:09
.....

if ( pCItemSearch && pCItemSearch->m_pCSharedData )

{

pCUserSocket->Send(

"chdddhdhhhdddddddddd",

CT1_SERVER_FE_6C_EXRPITEMLINKPACKET,

CT1_SERVER_FE_6C_EXRPITEMLINKPACKET >> 8,

dwItemObjectId,

pCItemSearch->m_pCSharedData->m_nItemClassId,

pCItemSearch->m_pCSharedData->m_nItemCount,

pCItemSearch->m_pCSharedData->m_nItemType,

pCItemSearch->m_pCSharedData->m_nSlotBitType,

pCItemSearch->m_pCSharedData->m_nEnchanted,

0,

0,

pCItemSearch->GetAugmentationId(),

pCItemSearch->GetMana(),

pCItemSearch->m_pCSharedData->m_nAtkAttrElement,

pCItemSearch->m_pCSharedData->m_nAtkAttrElementValue,

pCItemSearch->m_pCSharedData->m_nDefAttrFire,

pCItemSearch->m_pCSharedData->m_nDefAttrWater,

pCItemSearch->m_pCSharedData->m_nDefAttrWind,

pCItemSearch->m_pCSharedData->m_nDefAttrEarth,

pCItemSearch->m_pCSharedData->m_nDefAttrHoly,

pCItemSearch->m_pCSharedData->m_nDefAttrUnholy

);

}

.....


mb help ty

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 05-30-2009, 12:09 PM. Открыть источник (https://web.archive.org/web/20100324120956id_/http://www.postpacific.com:80/archive/index.php/t-136.html).