• Welcome to Valhalla Legends Archive.
 

Accounts

Started by Death-Merchant, September 12, 2003, 05:25 PM

Previous topic - Next topic

Death-Merchant

How do you make a bot make accounts on connect?

Camel

#1
0x2A (SID_CREATEACCOUNT) or 0x3D (SID_CREATEACCOUNT2)

[edit] Also note that when creating an account, the password should only be hashed once.


Zakath

This is a bit old, but it should still work:

void Connection::ProcPacket29( BYTE *data, int size ) {
   DWORD Result = *(LPDWORD)(data + 4);

   if ( !Result ) {
      ErrorMessage( "Login failed, attempting to create account..." );
   
      DWORD Hash[6];
      HashData(Hash, cfg.Password, strlen(cfg.Password));
   
      Insert( Hash[0] );
      Insert( Hash[1] );
      Insert( Hash[2] );
      Insert( Hash[3] );
      Insert( Hash[4] );
      Insert( cfg.AccountName );
      SendPacket(0x3D);
      return;
   }
   LogonMessage( "Login Accepted!" );
}
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.