Code:
public ShowEquipmentsPacket()
: base(1009, 100)
{
}
public UInt32 heroId
{
get
{
return ReadUInt32(4);
}
set
{
WriteUInt32(4, value);
}
}
public UInt32 heroID
{
get
{
return ReadUInt32(8);
}
set
{
WriteUInt32(8, value);
}
}
public UInt16 Mode
{
get
{
return ReadUInt16(12);
}
set
{
WriteUInt16(12, value);
}
}
public UInt32 Helm
{
get
{
return ReadUInt32(32);
}
set
{
WriteUInt32(32, value);
}
}
public UInt32 Necklace
{
get
{
return ReadUInt32(36);
}
set
{
WriteUInt32(36, value);
}
}
public UInt32 Armor
{
get
{
return ReadUInt32(40);
}
set
{
WriteUInt32(40, value);
}
}
public UInt32 RHand
{
get
{
return ReadUInt32(44);
}
set
{
WriteUInt32(44, value);
}
}
public UInt32 LHand
{
get
{
return ReadUInt32(48);
}
set
{
WriteUInt32(48, value);
}
}
public UInt32 Ring
{
get
{
return ReadUInt32(52);
}
set
{
WriteUInt32(52, value);
}
}
public UInt32 Talisman
{
get
{
return ReadUInt32(56);
}
set
{
WriteUInt32(56, value);
}
}
public UInt32 Boots
{
get
{
return ReadUInt32(60);
}
set
{
WriteUInt32(60, value);
}
}
public UInt32 Garment
{
get
{
return ReadUInt32(64);
}
set
{
WriteUInt32(64, value);
}
}
public UInt32 AccessoryOne
{
get
{
return ReadUInt32(68);
}
set
{
WriteUInt32(68, value);
}
}
public UInt32 AccessoryTwo
{
get
{
return ReadUInt32(72);
}
set
{
WriteUInt32(72, value);
}
}
Code:
ShowEquipmentsPacket show = new ShowEquipmentsPacket();
show.heroId = (uint)hero.id;
show.heroID = (uint)hero.id;
show.Mode = 0x2E;
foreach (var i in world.getItemsFromDBbyHeroId(hero.id))
{
ItemInfoPacket item = new ItemInfoPacket();
item.itemId = (uint)i.id;
item.itemTypeId = (uint)i.type;
item.CurrentDura = (ushort)i.CurrentDura;
item.MaxDura = (ushort)i.MaxDura;
item.Mode = i.Mode;
item.Location = i.Location;
item.SocketProgress = (uint)i.SocketProgress;
item.FirstSocket = i.FirstSocket;
item.SecondSocket = i.SecondSocket;
item.Effect = (ushort)i.Effect;
item.Composition = i.Composition;
item.Bless = i.Bless;
item.isFree = i.isFree;
item.Enchant = i.Enchant;
item.Suspicious = i.Suspicious;
item.isLocked = i.isLocked;
item.Colour = i.Colour;
item.CompositionProgress = (uint)i.CompositionProgress;
item.Inscribed = i.Inscribed;
item.InscribeTime = (uint)i.InscribeTime;
item.Amount = (ushort)i.Amount;
SendPacket(item);
if (i.Location == 1)
{
show.Helm = (uint)i.type;
}
if (i.Location == 2)
{
show.Necklace = (uint)i.type;
}
if (i.Location == 3)
{
show.Armor = (uint)i.type;
}
if (i.Location == 4)
{
show.RHand = (uint)i.type;
}
if (i.Location == 5)
{
show.LHand = (uint)i.type;
}
//TODO: the other items
}
SendPacket(show);
Code:
64 00 F1 03 43 42 0F 00 43 42 0F 00 2E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 75 14 02 00 87 50 09 00 87 50 09 00 00 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00






