Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

I want to know how this game is registered account!

Banned
Banned
Joined
Jan 25, 2023
Messages
125
Reaction score
36
I want to know how this game is registered account! What is the encryption method? Who can tell me? I don't know anything about databases.
 
Experienced Elementalist
Joined
Mar 30, 2015
Messages
222
Reaction score
44
I want to know how this game is registered account! What is the encryption method? Who can tell me? I don't know anything about databases.
the password is md5hash or what do you want to know?
 
Upvote 0
Banned
Banned
Joined
Jan 25, 2023
Messages
125
Reaction score
36
I want to create an account registration program, so I need how the account number and password are saved in the database? I don't know anything about databases. What is the encryption and decryption method? I want to make a login, account registration, password retrieval function.
 
Upvote 0
Experienced Elementalist
Joined
Mar 30, 2015
Messages
222
Reaction score
44
I want to create an account registration program, so I need how the account number and password are saved in the database? I don't know anything about databases. What is the encryption and decryption method? I want to make a login, account registration, password retrieval function.
example from my launcher (but iam using the way via website So it is easiest to register directly via a website)
Code:
 internal class ResponseReg
    {
        [JsonProperty("code")] public int Code { get; set; }
        [JsonProperty("msg")] public string message { get; set; }
        [JsonProperty("token")] public string Token { get; set; }

        [JsonProperty("accountinfo")]
        public Accountinfos Accountinfo { get; set; }
    }

public class Accountinfos
    {
        [JsonProperty("AccountDBID")] public int AccountDBID { get; set; }
        [JsonProperty("Username")] public string Username { get; set; }
        [JsonProperty("RegisterTime")] public string RegisterTime { get; set; }
        [JsonProperty("RegisterIP")] public string RegisterIP { get; set; }
        [JsonProperty("LastLoginTime")] public string LastLoginTime { get; set; }
        [JsonProperty("LastLoginIP")] public string LastLoginIP { get; set; }
        [JsonProperty("IsBlocked")] public int IsBlocked { get; set; }
        [JsonProperty("Real_Balance")] public double Real_Balance { get; set; }
        [JsonProperty("Bonus_Balance")] public double Bonus_Balance { get; set; }
        [JsonProperty("BirthDate")] public string BirthDate { get; set; }
        [JsonProperty("Email")] public string Email { get; set; }
        [JsonProperty("Version")] public string Version { get; set; }
    }


Billing to a webpage like this

public static function CreateAccount($params)
{
$Account = new AccountInfo;
$Account->Username = $params['Username'];
$Account->Password = md5($params['Password']);
$Account->UUID = $params['UUID'];
$Account->RegisterIP = '127.0.0.1';
$Account->RegisterTime = now();
$Account->IsBlocked = 0;
$Account->Real_Balance = 0;
$Account->Bonus_Balance = 0;
//$Account->BirthDate = now();
$Account->Email = 'teste@teste.com.br';
//$Account->AccountType = 0;
//$Account->AccountRecoverCode = '123456';
//$Account->IsActivated = 0;
//$Account->RegFont = 'quenio';
$Account->Permission = 0;
$Account->save();
}
public function RegisterAccountActionPost(Request $request)
{
$request['UUID'] = vsprintf('%s%s-%s-4000-8%.3s-%s%s%s0',str_split(dechex( microtime(true) * 1000 ) . bin2hex( random_bytes(8) ),4));

$validator = \Validator::make($request->all(), [
'Username' => 'required|min:5|max:30|unique:Login.AccountInfo,Username',
'Password' => 'required|min:5|max:30'
], [], [
'Username' => 'Username',
'Password' => 'Password'
]);


if(!$validator->passes())
return response()->json(['code' => -1, 'msg' => $validator->errors() ], 400);

$saveAcc = AccountInfo::CreateAccount($request);

if ($saveAcc == 0)
return Response::json( ['code' => 0, 'msg' => 'Success!' ] ,200 );

return Response::json( ['code' => -3, 'msg' => 'Failed to create account!' ] ,400 );
}
 
Last edited:
Upvote 0
Back
Top