Log in

View Full Version : New Packet Structures



DiegoTV
12-06-2016, 21:06
From what I am seeng there are alot of new packet changes I will add them here once I've figured them out

Prey_Listing_Packet (packet type: 0xE8)


private void ParsePreyListing(Packet p)
{
byte type = p.read_byte();
byte subtype = 0;

if (type == 0)
subtype = p.read_byte();

string creature_name;
ushort creature_outfit;

switch (type)
{
case 0x00:
switch (subtype)
{
case 0x02: // active prey
creature_name = p.read_string();
creature_outfit = p.read_ushort();
p.read_uint(); // always 0x00 0x00 0x00 00x0
p.read_int(); // some sort of id
p.read_int(); // duration left
break;

case 0x03:
byte prey_count = p.read_byte();

for (int i = 0; i < prey_count; i++)
{
creature_name = p.read_string();
creature_outfit = p.read_ushort();
uint unknown_int = p.read_uint(); // always 0x00 0x00 0x00 00x0
byte unknown_byte = p.read_byte();
}
ushort unknown = p.read_ushort();
break;
}
break;

case 0x01: // unknown
int unknown_value = p.read_int(); // always 0x00 0x00 0x00 00x0
break;

case 0x02: // active prey
p.read_uint(); // unknown bytes always 0x00 0x01 0x00 0x00
break;
}
}

DiegoTV
12-06-2016, 23:15
Player Basic Data Packet (0x9F)

Was added 1 byte before known_spell_count