Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: ShadowDancer on February 01, 2007, 03:56 AM

Title: 0xaa sSCmd_UnitState
Post by: ShadowDancer on February 01, 2007, 03:56 AM
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.
Title: Re: 0xaa sSCmd_UnitState
Post by: 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
Title: Re: 0xaa sSCmd_UnitState
Post by: brew on February 03, 2007, 07:56 PM
what??
Title: Re: 0xaa sSCmd_UnitState
Post by: Ringo on February 03, 2007, 08:01 PM
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
Title: Re: 0xaa sSCmd_UnitState
Post by: topaz on February 03, 2007, 08:08 PM
No, he said "we" like he belongs to this community, which is muy fannies.
Title: Re: 0xaa sSCmd_UnitState
Post by: 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.
Title: Re: 0xaa sSCmd_UnitState
Post by: Ringo on February 03, 2007, 10:02 PM
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?
Title: Re: 0xaa sSCmd_UnitState
Post by: brew on February 03, 2007, 10:40 PM
nothing i thought you were gonna go back to your old self where you constantly hate on me for no reason
Title: Re: 0xaa sSCmd_UnitState
Post by: vuther.de on February 04, 2007, 02:53 AM
Lol Brew, you make me laugh. Always getting hated on.
Title: Re: 0xaa sSCmd_UnitState
Post by: ShadowDancer on February 08, 2007, 08:37 AM
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)