Показать сообщение отдельно
Непрочитано 05.11.2011, 10:19   #5
Изгнанные

Автор темы (Топик Стартер) Re: помогите плиз с пакеткой хф

ну вот что у меня получилось в конце концов:
PHP код:
 @Override
    
protected final void writeImpl()
    {
        
writeC(0x11);
        
writeH(_showWindow 0);

        
writeH(length);
        for (
L2ItemInstance temp _items)
        {
            if (
temp == null || temp.getItem() == null)
                continue;
                
            
writeD(temp.getObjectId());
            
writeD(temp.getItemId());
            
writeD(temp.getEquipSlot()); //order
            
writeQ(temp.getCount());
            
writeH(temp.getItem().getType2ForPackets()); // item type2
            
writeH(temp.getCustomType1()); // item type3
            
writeH(temp.isEquipped() ? 0);
            
writeD(temp.getBodyPart()); // rev 415  slot    0006-lr.ear  0008-neck  0030-lr.finger  0040-head  0080-??  0100-l.hand  0200-gloves  0400-chest  0800-pants  1000-feet  2000-??  4000-r.hand  8000-r.hand
            
writeH(temp.getEnchantLevel()); // enchant level
            
writeH(temp.getCustomType2()); // item type3
            
writeD(temp.getAugmentationId());
            
writeD(0x00);
            
writeD(temp.isShadowItem() ? temp.getLifeTimeRemaining() : -1);
            
writeD(temp.isTemporalItem() ? temp.getLifeTimeRemaining() : 0x00); // limited time item life remaining
            
writeH(temp.getAttackElement());
            
writeH(temp.getAttackElementValue());
            for (
int i 06i++) 
                
writeH(temp.getDeffAttr()[i]);
            
writeH(0);
            
writeH(0);
            
writeH(0);
        }

        
writeH(0x00);//TODO: Block Items length
        
writeC(0x00);//TODO: Block Mode
    //    for(;;) {
           
writeD(0x00);//Id to block
      //  }
        
writeH(0x00);
        
getClient().sendPacket(new ExQuestItemList(questItemsgetClient().getActiveChar()));
    } 
Darvin вне форума Отправить сообщение для Darvin с помощью ICQ Отправить сообщение для Darvin с помощью Skype™ Ответить с цитированием