I am attempting to create a very simple C# Program that will track unidentified items on the ground by sniffing packets.
I can currently grab Packets and display them but have some conflicting answers regarding how to log only items that are unidentified and are on the ground (ie. dropped from a mob).
Is this information still relevant?
In Diablo 2 Resurrected, when an item is on the ground and is unidentified, the game client sends an item drop packet to the game server with the following structure:
d2itemsniffer1.PNG
The Quality field in the packet is used to indicate the quality level of the item, and it can take one of the following values:
d2itemsniffer2.PNG
I am unsure how to parse for this data in my code utilizing:
Code:
theType = ip.GetType();
ipToString = ip.ToString();
udpPacket = packet.Extract<UdpPacket>();
if (udpPacket != null)
{
var data = udpPacket.PayloadData;
// parse data here and check
// what do i look for?
}
I am willing to pay for help if it is too complex for one to give advice.
Thanks.