• Welcome to Valhalla Legends Archive.
 

0xaa sSCmd_UnitState

Started by ShadowDancer, February 01, 2007, 03:56 AM

Previous topic - Next topic

ShadowDancer

mmm, i dont know if this has been posted but...

this packet is send when the unit comes to your range of vision after 0xac and tells you the unit states, for all units u will at least receive the alignment state (0x69) ^^...

from the packet size it reads:

repeat
8 bits -> state
if (state = 0xFF) { break }
1 bit -> continue
if (contine = 0) {break}
repeat
9 bits -> itemstatscost->id
if (itemstatscost->id = 0x1ff) { break }
read the Send Bits and Send Param Bits from itemstatcost.txt and read them
until
until

ShadowDancer.
Quote from: MyndFyre-vL
No. We help people who help themselves.
http://sourceforge.net/projects/d2gs
http://assembla.com/space/d2gs

brew

Interesting. I'm assuming this is a Starcraft packet it sends/receives in game. We need more people like you, please post this in the bnetdocs section of the forum because your help is much needed. We have next to nothing bout what goes on in game :P
<3 Zorm
Quote[01:08:05 AM] <@Zorm> haha, me get pussy? don't kid yourself quik
Scio te esse, sed quid sumne? :P

brew

<3 Zorm
Quote[01:08:05 AM] <@Zorm> haha, me get pussy? don't kid yourself quik
Scio te esse, sed quid sumne? :P

Ringo

Quote from: BreW on February 03, 2007, 07:53 PM
Interesting. I'm assuming this is a Starcraft packet it sends/receives in game. We need more people like you, please post this in the bnetdocs section of the forum because your help is much needed. We have next to nothing bout what goes on in game :P
Its a S>C D2GS packet (Diablo 2 Game Server) nothing to do with SC.
http://forum.valhallalegends.com/index.php?topic=12107.msg130894#msg130894
Whom ever this "we" is you speek of, needs to use the search button :P

topaz

No, he said "we" like he belongs to this community, which is muy fannies.
RLY...?

brew

#5
rob dont start plz. also quit posing on bnetweb?
and he really, should have specified it's for a d2gs server. because I, for one, was completely confused at what he ment and took it an entirely different way.
Sorry about that, but nice contribution, ShadowDancer.
<3 Zorm
Quote[01:08:05 AM] <@Zorm> haha, me get pussy? don't kid yourself quik
Scio te esse, sed quid sumne? :P

Ringo

Quote from: BreW on February 03, 2007, 08:57 PM
rob dont start plz. also quit posing on bnetweb?
and he really, should have specified it's for a d2gs server. because I, for one, was completely confused at what he ment and took it an entirely different way.
Sorry about that, but nice contribution, ShadowDancer.
Dont start what? Im not starting anything, I simply told you this was a D2GS packet, and linked you to a list of ingame SC packets.
Or are you refering to Topaz?

brew

nothing i thought you were gonna go back to your old self where you constantly hate on me for no reason
<3 Zorm
Quote[01:08:05 AM] <@Zorm> haha, me get pussy? don't kid yourself quik
Scio te esse, sed quid sumne? :P

vuther.de

Lol Brew, you make me laugh. Always getting hated on.

ShadowDancer

from eon by e.t.
Quote
1 bit -> continue
if (contine = 0) {continue}

Meaning skip reading stats and read the next state instead, not break the main loop...

Works great otherwise. Sample output of parsing code I just wrote:

GS: 49 aa 01 4d 10 1a fe 31 10 61 28 01 c4 00 03 b8 83 0c ff 41 32 a9 01 68 52 03 20 aa 06 fc 2f b9 4a 1f c0 2b 9a af 13 ff 67 fe 09 f8 9f 96 95 ff ff 01

GS: 0xAA AddUnit; UnitType: NPC; UID: 4263120973; States: Enchant (Fire Min Damage: 74, Fire Max Damage: 96, To Hit Percent: 200), Battle Orders (Max Life Percent: 53, Max Mana Percent: 53, Skill Stamina Percent: 53), Defiance (Skill Armor Percent: 250, Modifier List Skill: 104, Modifier List Level: 19), Battle Command (All Skills Bonus: 1), Alignment (Alignment: 2)
Quote from: MyndFyre-vL
No. We help people who help themselves.
http://sourceforge.net/projects/d2gs
http://assembla.com/space/d2gs