• Welcome to Valhalla Legends Archive.
 

CSB_FlagsUpate..?

Started by Vernors, January 29, 2005, 01:03 PM

Previous topic - Next topic

Mephisto

Because they probably have additional flags than just operator status and being squelched?  When I squelch an operator w/o a UDP plug their flags are 0x22.  When I squelch a user w/ a UDP plug their flags are 0x30.  Any combinations of flags can result in a final result.

Vernors

Ok so how can I fix all of this exactly?

Mephisto

It's already been explained.  If you still can't figure it out stop asking questions about bots and go learn VB.

It might also be of value to read Grok's recent post in the News forum.

QwertyMonster

Vernors, not saying this and coming down on ya like a ton of bricks but,

People usually dont answer every single question. I can understand why, because they want you to learn it yourself, so then you wont need to ask and ask and ask.
Maybe if you thought about it, learnt it, you could maybe work it out forself.

Sorry if i offended you in this post! :)

Vernors

Lol, nope no offence I understand.. It's just I have tried and tried and tried but I don't understand.. Maybe my friends Unleaded and Tagban were right that I need to just learn all of VB first and then look at source codes learn from them and then start from scratch with what I have learned. Tagban said use CSB as a start but it seems to make everyone look like a newb.. maybe I should just give up and just do it with winsock it seems to be a bit easier then CSB.. lmao sounds funny but yea.. to me winsock seems just easier then CSB.

EDIT: Had to fix some typos.

QwertyMonster

Yo dude i didnt send my post for you to say your gunna delete all your work.

My only advice is.. Keep the code and keep reviewing it and do start again with winsock. But keep your CSB code just incase winsock is too hard. I would be more than happy to help you with winsock!

Vernors

Lol, nah I am not gonna delete it. I am gonna keep it but make the same exact project but just use Winsock instead.

Zakath

Quote from: Vernors on January 30, 2005, 02:44 PMThen tell me, how come when I squelch a user with flags of 0 their flags turn to 32? I would like to know. Also when I squelch an ops with flags of 2 their flags turn to 34?

20 (hexadecimal) equals 32 (decimal)


You're viewing flags in base-10 rather than base-16. That's a mistake.
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

Mephisto

Quote from: Zakath on January 30, 2005, 06:08 PM
Quote from: Vernors on January 30, 2005, 02:44 PMThen tell me, how come when I squelch a user with flags of 0 their flags turn to 32? I would like to know. Also when I squelch an ops with flags of 2 their flags turn to 34?

20 (hexadecimal) equals 32 (decimal)


You're viewing flags in base-10 rather than base-16. That's a mistake.

And just to clarify for him who probably doesn't know the difference...
base-10 = decimal
base-16 = hexidecimal (hex)

When dealing with flag manipulation (in the assumption flags are represented as unsigned integers and mnipulated with binary bitwise operators) you should process the flags in hexidecimal, not decimal.

Joe[x86]

OK, I'm learning about hex too. I'm asuming when you count in hex it goes like..
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
10
11
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
20

And so on.. Right?
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

tA-Kane

Silly people. Can't you pay attention to his code?
Quote from: Mephisto on January 30, 2005, 02:39 PMAlso, 0x32 is not squelched, it's 0x20.
Who said anything about 0x32?? His code has 32. 32 = 0x20.

Though you are right that he should use bitwise functions to check if flags are set.


Edit: bah, didn't notice there was a page 2  :(
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com

Kp

Quote from: Mephisto on January 30, 2005, 08:29 PM(in the assumption flags are represented as unsigned integers and mnipulated with binary bitwise operators)

Actually, VB can't represent flags as an unsigned integer.  It only supports signed integers. ;)
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Mephisto

Quote from: Kp on January 30, 2005, 09:26 PM
Quote from: Mephisto on January 30, 2005, 08:29 PM(in the assumption flags are represented as unsigned integers and mnipulated with binary bitwise operators)

Actually, VB can't represent flags as an unsigned integer.  It only supports signed integers. ;)

Ew.

MyndFyre

Quote from: Zakath on January 30, 2005, 06:08 PM
You're viewing flags in base-10 rather than base-16. That's a mistake.
The ideal would be binary.  That way you know what each hex digit can represent.  For example, if the hex number 20 represents squelched, that means, you can break it into binary:

0010 0000
..^. ....
  |-(that is the bit that indicates the user is squelched)
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.