• Welcome to Valhalla Legends Archive.
 

Hey all need some help.

Started by Final, September 29, 2006, 06:15 PM

Previous topic - Next topic

Final

Hey I need some help for some reason when i use these packets to go into channel HELLO i go to the void what am i doing wrong

                               InsertNTString("unkownname");
                               InsertNTString("");
                               SendPacket(0x0A);
                               
                               InsertDWORD(0x01);
                               InsertNTString("hello");
                               SendPacket(0x0C);

UserLoser

Sending channel join flag type 1 with a name like that will most likely send you to the wrong place.  1 is for joining product specific channels

Final

Would it mean anything if my key is muted?

l2k-Shadow

Quote from: Final on September 30, 2006, 05:37 PM
Would it mean anything if my key is muted?

no, only if it is voided. sending flag 0x02 will force join a channel.
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

Final

Am i doing this correctly?
Cuz i sometimes cant get in wierd.

case 0x000:
           {
                      addchat("[BNET]Passed challenge");
                      char hashedpassword[MAX_PATH];
                      doubleHashPassword(bnet_password,clienttoken,servertoken,hashedpassword);
                      InsertDWORD(clienttoken);
                      InsertDWORD(servertoken);
                      InsertNonNTString(hashedpassword);//Hashed Password//
                      InsertNTString(bnet_username);     
                      SendPacket(0x29);   
                      addchat("[BNET]Sent 0x29");
           }break;

l2k-Shadow

#35
Quote from: Final on September 30, 2006, 07:35 PM
Am i doing this correctly?
Cuz i sometimes cant get in wierd.

case 0x000:
           {
                      addchat("[BNET]Passed challenge");
                      char hashedpassword[MAX_PATH];
                      doubleHashPassword(bnet_password,clienttoken,servertoken,hashedpassword);
                      InsertDWORD(clienttoken);
                      InsertDWORD(servertoken);
                      InsertNonNTString(hashedpassword);//Hashed Password//
                      InsertNTString(bnet_username);     
                      SendPacket(0x29);   
                      addchat("[BNET]Sent 0x29");
           }break;


the password hash will always be 20 bytes long for OLS clients, so try changing that... also make sure your client token is static throughout the entire login sequence (however that won't make a difference here).
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

Final

well how would i go about changing it ? I dont understand you.

l2k-Shadow

Quote from: Final on September 30, 2006, 08:29 PM
well how would i go about changing it ? I dont understand you.

lol... how about something along these lines?

char hashedpassword[19];
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

MyndFyre

Quote from: l2k-Shadow on September 30, 2006, 09:09 PM
Quote from: Final on September 30, 2006, 08:29 PM
well how would i go about changing it ? I dont understand you.

lol... how about something along these lines?

char hashedpassword[19];

Usually hashes are 20 bytes, aren't they?
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.

l2k-Shadow

Quote from: MyndFyre[vL] on September 30, 2006, 11:56 PM
Quote from: l2k-Shadow on September 30, 2006, 09:09 PM
Quote from: Final on September 30, 2006, 08:29 PM
well how would i go about changing it ? I dont understand you.

lol... how about something along these lines?

char hashedpassword[19];

Usually hashes are 20 bytes, aren't they?

which is why it would be 19. arrays start at 0, or is there something i am mssing?
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

MyndFyre

Quote from: l2k-Shadow on October 01, 2006, 12:07 AM
Quote from: MyndFyre[vL] on September 30, 2006, 11:56 PM
Quote from: l2k-Shadow on September 30, 2006, 09:09 PM
Quote from: Final on September 30, 2006, 08:29 PM
well how would i go about changing it ? I dont understand you.

lol... how about something along these lines?

char hashedpassword[19];

Usually hashes are 20 bytes, aren't they?

which is why it would be 19. arrays start at 0, or is there something i am mssing?
But C arrays are declared and initialized with the size, not the top index.
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.

Final


UserLoser

Quote from: l2k-Shadow on October 01, 2006, 12:07 AM
Quote from: MyndFyre[vL] on September 30, 2006, 11:56 PM
Quote from: l2k-Shadow on September 30, 2006, 09:09 PM
Quote from: Final on September 30, 2006, 08:29 PM
well how would i go about changing it ? I dont understand you.

lol... how about something along these lines?

char hashedpassword[19];

Usually hashes are 20 bytes, aren't they?

which is why it would be 19. arrays start at 0, or is there something i am mssing?

19 means 19 elements. 0 - 18 is 19 items.  There is no 19th

l2k-Shadow

Quote from: UserLoser on October 01, 2006, 12:38 AM
Quote from: l2k-Shadow on October 01, 2006, 12:07 AM
Quote from: MyndFyre[vL] on September 30, 2006, 11:56 PM
Quote from: l2k-Shadow on September 30, 2006, 09:09 PM
Quote from: Final on September 30, 2006, 08:29 PM
well how would i go about changing it ? I dont understand you.

lol... how about something along these lines?

char hashedpassword[19];

Usually hashes are 20 bytes, aren't they?

which is why it would be 19. arrays start at 0, or is there something i am mssing?

19 means 19 elements. 0 - 18 is 19 items.  There is no 19th

right i get it now. thanks for clarifiying.
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

Final

#44
Thanks to that It logins more reccently heh thanks.

-Well I need some more help-
Ok ive having problems getting strings.

class debuff
{     
      public:
             char packet[MAX_PATH];
             int ps;
             void setpos(int set);
             void newpacket(char buffer[MAX_PATH]);
             WORD getword();
             DWORD getdword();
             char* getstring();
             void skipfiletime();
};
void debuff::newpacket(char buffer[MAX_PATH]){
     memcpy(packet,buffer,sizeof(buffer)+1);
     ps=4;                   
}
WORD debuff::getword(){
     WORD value=*(unsigned long*)(packet+ps);
     ps=ps+2;   
     return value; 
}
DWORD debuff::getdword(){
     DWORD value=*(unsigned long*)(packet+ps);
     ps=ps+4;     
     return value;         
}
char* debuff::getstring(){
     char* value=packet+ps;
     ps=ps+strlen(value);
     return value;             
}
void debuff::skipfiletime(){
     ps=ps+8;                   
}

|