Vsro Packett
[S -> C][B034]
01 ................
06 ................
19 ................
00 00 00 00 ................
25 07 00 00 %...............
05 ................
00 00 00 00 00 00 00 00 ................
00 00 00 00 ................
00 ................
01 ................
00 ................
02 ................
00 ................
Bot Source
OLD
byte inv_slot = packet.data.ReadBYTE();
ushort inv_count = packet.data.ReadWORD();
Packet du = new Packet((ushort)WorldServerOpcodes.SERVER_OPCODES.S ERVER_INVENTORYMOVEMENT, false, enumDestination.Client);
du.data.AddBYTE(0x01);
du.data.AddBYTE(0x06);
du.data.AddBYTE(inv_slot);
du.data.AddDWORD(0x00000000);
du.data.AddDWORD(item_id);
if (item_type.StartsWith("ITEM_CH") == false && item_type.StartsWith("ITEM_EU") == false)
{
du.data.AddWORD(inv_count);
}
else
{
du.data.AddBYTE(0x00);
du.data.AddQWORD(0x0000000000000000);
du.data.AddDWORD(Items_Info.itemsdurabilitylist[Items_Info.itemsidlist.IndexOf(item_id)]);
du.data.AddBYTE(0x00);
du.data.AddWORD(1);
du.data.AddWORD(2);
new server Packett not server vsro
[S -> C][B034]
01 ................
06 ................
0F ................
4E 2F 00 00 N/..............
00 ................
00 00 00 00 00 00 00 00 ................
34 00 00 00 4...............
00 ................
Change Source
byte inv_slot = packet.data.ReadBYTE();
ushort inv_count = packet.data.ReadWORD();
Packet du = new Packet((ushort)WorldServerOpcodes.SERVER_OPCODES.S ERVER_INVENTORYMOVEMENT, false, enumDestination.Client);
du.data.AddBYTE(0x01);
du.data.AddBYTE(0x06);
du.data.AddBYTE(inv_slot);
du.data.AddDWORD(2);
du.data.AddDWORD(item_id); //5
if (item_type.StartsWith("ITEM_CH") == false && item_type.StartsWith("ITEM_EU") == false)
{
du.data.AddWORD(inv_count);
}
else
{
du.data.AddBYTE(0x00);
du.data.AddQWORD(0x0000000000000000);
du.data.AddDWORD(Items_Info.itemsdurabilitylist[Items_Info.itemsidlist.IndexOf(item_id)]);
du.data.AddBYTE(0x00);
du.data.AddWORD(1);
du.data.AddWORD(2);
new server Packett not server vsro
[S -> C][B034]
01 ................
06 ................
0F ................
4E 2F 00 00 N/..............
00 ................
00 00 00 00 00 00 00 00 ................
34 00 00 00 4...............
00 ................
if (typ == 6) // PICKED ITEM
{
byte slot = packet.data.ReadBYTE();
if (slot == 254)
{
packet.data.ReadDWORD();
}
else
{
packet.data.ReadDWORD();
uint item_id = packet.data.ReadDWORD();
int index = Items_Info.itemsidlist.IndexOf(item_id);
string type = Items_Info.itemstypelist[index];
if (type.StartsWith("ITEM_CH") || type.StartsWith("ITEM_EU"))
{
byte item_plus = packet.data.ReadBYTE();
packet.data.ReadQWORD();//var
uint durability = packet.data.ReadDWORD();//tamam
byte blueamm = packet.data.ReadBYTE();
for (int i = 0; i < blueamm; i++)
{
packet.data.ReadBYTE();
packet.data.ReadWORD();
packet.data.ReadDWORD();
packet.data.ReadBYTE();
}
Char_Data.inventoryid.Add(item_id);
Char_Data.inventorytype.Add(type);
Char_Data.inventoryslot.Add(slot);
Char_Data.inventorycount.Add(1);
Char_Data.inventorydurability.Add(durability);
Globals.MainWindow.inventory_list.Items.Add(Items_ Info.itemsnamelist[index]);
}
else
{
ushort count = packet.data.ReadWORD();//BENDE VAR
int indexas = Char_Data.inventoryslot.IndexOf(slot);
if (indexas != -1)
{
Char_Data.inventorycount[indexas] = count;
}
else
{
Char_Data.inventoryid.Add(item_id);
Char_Data.inventorytype.Add(type);
Char_Data.inventoryslot.Add(slot);
Char_Data.inventorydurability.Add(0);
Char_Data.inventorycount.Add(count);
Globals.MainWindow.inventory_list.Items.Add(Items_ Info.itemsnamelist[index]);
}
ItemsCount.CountManager();
}
}
}
How do you fix it for a new one Thx