hm post the packet which gives the error, then i can probably faster tell what give the error in your code
Edit: or was that the packet code you posted before?
section of code you posted which i parsed:
Quote:
//item section
3B 08
32 05 00 00 00
03 15 00 00 00
DF 14 00 00 00
E9 04 00 00 00
27 15 00 00 00
0A 06 00 00 00
5F 10 00 00 05
3E 00 00 00 05
00 00 //avatar
00 //mask
60 33 00 //unique id? missing some byte
//coordinate section
30 5A
D3 C1 9F 44
B1 BC 4C 44
5D CA DB 43
50 5F
|
as you can see the piece of code you posted the uniqueID contains only 3bytes, which should be normally 4bytes.
thats the only thing that is going wrong so far i can see, all other stuff parse just fine with your code you posted before
Edit2:
all items have item plus byte except arrows/bolt
Quote:
if (itemCodename.StartsWith("SN_ITEM_CH") || itemCodename.StartsWith("SN_ITEM_EU") || itemCodename.StartsWith("SN_ITEM_FORT") || itemCodename.StartsWith("SN_ITEM_ROC_CH") || itemCodename.StartsWith("SN_ITEM_ROC_EU"))
{
byte plus = packet.Read<byte>();
player.Items.Add(new Item(itemID, plus));
}
|
your code looks with an if statement if something contains plus value yes or no.
that could also be going wrong (couldnt check items id since i dont have database of that sro version)