Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 28.05.2009, 23:52   #1
CyberSick
Guest
 
Posts: n/a
Default help on ExRpItemLink

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. Открыть источник.
 
Old 30.05.2009, 05:38   #2
kold
Guest
 
Posts: n/a
Default help on ExRpItemLink

Packet << (INT16)pItem->SD->nSlot;

Change to int / add another short after

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 05-30-2009, 05:38 AM. Открыть источник.
 
Old 30.05.2009, 12:01   #3
CyberSick
Guest
 
Posts: n/a
Default help on ExRpItemLink

weird...

but now it works, thanks ;)

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 05-30-2009, 12:01 PM. Открыть источник.
 
Old 30.05.2009, 12:09   #4
Êèì ×åí Ûð
Guest
 
Posts: n/a
Default help on ExRpItemLink

.....

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. Открыть источник.
 
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:29.