• Welcome to Valhalla Legends Archive.
 

Ladder Character ID code?

Started by R.a.B.B.i.T, January 27, 2004, 07:25 PM

Previous topic - Next topic

R.a.B.B.i.T

It's not listed on BnetDocs :*(
Does anybody have it at Ladder HC?

UserLoser.

Quote from: R.a.B.B.i.T on January 27, 2004, 07:25 PM
It's not listed on BnetDocs :*(
Does anybody have it at Ladder HC?

Explain what you mean any maybe we (Atleast, I) can understand you

R.a.B.B.i.T

HAH.  I got it with some help from Andy (or rather, he just told me).  I meant the byte that would allow my bot to recognize a ladder character from a non-ladder during stat-string parsing.

(As it turns out, Byte 26 value 0x40 is a ladder character.)

K

Quote from: R.a.B.B.i.T on January 28, 2004, 09:53 AM
HAH.  I got it with some help from Andy (or rather, he just told me).  I meant the byte that would allow my bot to recognize a ladder character from a non-ladder during stat-string parsing.

(As it turns out, Byte 26 value 0x40 is a ladder character.)

I'm pretty sure it's not _value_ 0x40,  it's the bit, i.e: (byte && 0x40) != 0

Spht

Quote from: K on January 28, 2004, 12:09 PM
Quote from: R.a.B.B.i.T on January 28, 2004, 09:53 AM
HAH.  I got it with some help from Andy (or rather, he just told me).  I meant the byte that would allow my bot to recognize a ladder character from a non-ladder during stat-string parsing.

(As it turns out, Byte 26 value 0x40 is a ladder character.)

I'm pretty sure it's not _value_ 0x40,  it's the bit, i.e: (byte && 0x40) != 0

Right, considering it's also used for detecting a hardcore character.

Kp

Quote from: K on January 28, 2004, 12:09 PMI'm pretty sure it's not _value_ 0x40,  it's the bit, i.e: (byte && 0x40) != 0

Correction: byte & 0x40 /* single ampersand for bit test, double ampersand for truth evaluation */
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

R.a.B.B.i.T

BAH!  It works for me.  It might have been 0x80, I didn't look at it for a while when I posted (I still haven't).

K

Quote from: Kp on January 28, 2004, 03:28 PM
Quote from: K on January 28, 2004, 12:09 PMI'm pretty sure it's not _value_ 0x40,  it's the bit, i.e: (byte && 0x40) != 0

Correction: byte & 0x40 /* single ampersand for bit test, double ampersand for truth evaluation */

Righto -- what was I thinking? I actually went back and replaced the single amperstand with a double after I finished writing.

Stealth

Quote from: R.a.B.B.i.T on January 28, 2004, 05:46 PM
BAH!  It works for me.  It might have been 0x80, I didn't look at it for a while when I posted (I still haven't).

I told you it was a bitwise And comparison. :)
- Stealth
Author of StealthBot

R.a.B.B.i.T

Shhh...I've forgotten about it completely by now and moved on to other problems...