struct SearchJobOptions
{
public bool Beginner;
public bool Hero;
public bool Paladin;
// Continue with whatever jobs there are
}
//...
// Inside some class where you'll parse the job bits
// jobBits is simply the int you read in the packet
void ParseJobOptions(int jobBits, out SearchJobOptions outOptions)
{
outOptions = new SearchJobOptions();
outOptions.Beginner = (jobBits & 2) != 0;
outOptions.Hero = (jobBits & 8) != 0;
outOptions.Paladin = (jobBits & 16) != 0;
// Continue with whatever jobs there are and the bit that it's flag corresponds to
}
You sure? It seems odd that they would only put packets for 40 levels. Frankly i don't know how to do this either, because packets are constantly changing, so you would have to sen/rev quite frequently. The way i was going to do it wouldn't work like that.
Hmm I get the basic structure, seems simple, but the job thing I do not get, lol.
Isn't warrior 2?
Box Check Amounts?
Am I the only person to see that they're just using bit flags? Convert those 'box values' to binary (Go toTo view the content, you need to sign in or registerand type in bin(<value>) into one of the boxes) and you'll see what I mean.
I don't actually know what this party search thing is, I haven't played maple in ages, but it seems pretty straightforward...
Example C# code :
Code:struct SearchJobOptions { public bool Beginner; public bool Hero; public bool Paladin; // Continue with whatever jobs there are } //... // Inside some class where you'll parse the job bits // jobBits is simply the int you read in the packet void ParseJobOptions(int jobBits, out SearchJobOptions outOptions) { outOptions = new SearchJobOptions(); outOptions.Beginner = (jobBits & 2) != 0; outOptions.Hero = (jobBits & 8) != 0; outOptions.Paladin = (jobBits & 16) != 0; // Continue with whatever jobs there are and the bit that it's flag corresponds to }
Box Check Amounts?
Am I the only person to see that they're just using bit flags? Convert those 'box values' to binary (Go toTo view the content, you need to sign in or registerand type in bin(<value>) into one of the boxes) and you'll see what I mean.
I don't actually know what this party search thing is, I haven't played maple in ages, but it seems pretty straightforward...
Example C# code :
Code:struct SearchJobOptions { public bool Beginner; public bool Hero; public bool Paladin; // Continue with whatever jobs there are } //... // Inside some class where you'll parse the job bits // jobBits is simply the int you read in the packet void ParseJobOptions(int jobBits, out SearchJobOptions outOptions) { outOptions = new SearchJobOptions(); outOptions.Beginner = (jobBits & 2) != 0; outOptions.Hero = (jobBits & 8) != 0; outOptions.Paladin = (jobBits & 16) != 0; // Continue with whatever jobs there are and the bit that it's flag corresponds to }
Box Check Amounts?
Am I the only person to see that they're just using bit flags? Convert those 'box values' to binary (Go toTo view the content, you need to sign in or registerand type in bin(<value>) into one of the boxes) and you'll see what I mean.
I don't actually know what this party search thing is, I haven't played maple in ages, but it seems pretty straightforward...
Example C# code :
Code:struct SearchJobOptions { public bool Beginner; public bool Hero; public bool Paladin; // Continue with whatever jobs there are } //... // Inside some class where you'll parse the job bits // jobBits is simply the int you read in the packet void ParseJobOptions(int jobBits, out SearchJobOptions outOptions) { outOptions = new SearchJobOptions(); outOptions.Beginner = (jobBits & 2) != 0; outOptions.Hero = (jobBits & 8) != 0; outOptions.Paladin = (jobBits & 16) != 0; // Continue with whatever jobs there are and the bit that it's flag corresponds to }
I'm just bored, and whenever I find something interesting to do, I do it (I just saw this and noticed the values), don't think I'm planning on becoming a regular, I have my own forum to tend to.Hey JonyLesson you are in our forum!
Nice though I thought you were a WZ repacker, so I thought you played MapleStory in v.56+.