Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: FuzZ on March 11, 2004, 12:31 PM

Title: MCP_CREATECHAR Flags
Post by: FuzZ on March 11, 2004, 12:31 PM
I tried to add a comment and contribute on BnetDocs but, I recieved errors. Thought this might help some people.
These are MCP_CREATECHAR Flags (as the subject says.)

Expansion = 0x20
Expansion Ladder = 0x60
Expansion Hardcore = 0x24
Expansion Hardcore Ladder = 0x64
Classic = 0x00
Classic Ladder = 0x40
Classic Hardcore = 0x04
Classic Hardcore Ladder = 0x44


:EDIT: Had Classic HCL wrong. Changed to pre, for *cough* reasons.

Quote
How about:

Code:

Hardcore = 0x04
Expansion = 0x20
Ladder = 0x40

// or any other combination
MyFlags = (Hardcore Or Ladder Or Expansion

It's not supposed to be variables, just a list of what each flag is. Notice the spaces ?
Title: Re:MCP_CREATECHAR Flags
Post by: K on March 11, 2004, 05:46 PM
Whoops, accidentally deleted my post.  Anyway what I meant was that you really only need these:

Expansion = 0x20
Ladder = 0x40
Hardcore = 0x04
(Classic = 0x00)

And the rest are combinations of the above.  
Title: Re:MCP_CREATECHAR Flags
Post by: Skywing on March 11, 2004, 07:34 PM
Classic is defined as !(flags & 0x20), not 0.