rendered paste bodyu16 ServerPackets::ItemList(CUserSocket *s, u16 size, u8 *buff){ PacketReader pki(buff, size); // old packet PacketWriter pko(pki.ReadC(), 2048); // new packet pko.WriteH(pki.ReadH()); // show window u16 count = pki.ReadH(); pko.WriteH(count); for (u16 i = 0; i < count; i++) { pko.WriteH(pki.ReadH()); // item type1 pko.WriteD(pki.ReadD()); // obj id pko.WriteD(pki.ReadD()); // item id pko.WriteD(pki.ReadD()); // count pko.WriteH(pki.ReadH()); // item type2 pko.WriteH(pki.ReadH()); // item custom type pko.WriteH(pki.ReadH()); // is equiped pko.WriteD(pki.ReadD()); // body part 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 pko.WriteH(pki.ReadH()); // enchant level pko.WriteH(pki.ReadH()); // item custom type 2 pko.WriteD(-1); // augmentation id pko.WriteD(-1); // mana // T1 pko.WriteD(0); // AttackAttrElement pko.WriteD(0); // AttackAttrElement pko.WriteD(0); // DefAttrFire pko.WriteD(0); // DefAttrWater pko.WriteD(0); // DefAttrWind pko.WriteD(0); // DefAttrEarth pko.WriteD(0); // DefAttrHoly pko.WriteD(0); // DefAttrUnholy } return pko.WriteToMem(buff);}