• Welcome to Valhalla Legends Archive.
 

question about D2 S->C packet--Add Unit(0xAA)

Started by anyway1234, June 22, 2008, 04:12 AM

Previous topic - Next topic

anyway1234

Hi, guys
I read the post http://forum.valhallalegends.com/index.php?topic=16228.msg163725#msg163725
and got a bit confused about the algorithm to interprit 0xaa packet.
I got this on d2smells:
aa 01 7f 00 00 00 10 2b bd ca f9 ca f0 3f cd 3f
and it was interprited as :
Holy Wind (Modifier List Skill: 114, Modifier List Level: 12), Alignment

I understand where the Holy Wind comes from, but cannot figure out the rest.
Could someone please give me some tips? Thanks a lot :)


[Kp edit: made URL a link.  Left the bad spelling intact.]

Ringo

Looks like you have all you need in that link.
Its basicly an array of states, seen in 0xA7/0xA8 singley.
Rather than the server spamming you with a list of states (0xA7/0xA8 iirc) that an entity is coverd by, you get an 0xAA.
As shown in the link you posted, you need to read the itemstatscost file to know a given state's bit field sizes, like iirc, Battle orders has 3 bitfields listing the effects of the state. You can get the number of bit fields and sizes of the bit fields from the statscost file.