المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : npcs تسجيل حساب داخل اللعبه


محمد ياسر
2019-04-27, 10:56 PM
في السورس
npcs.cs ضيف دول
#region New Register
case 10614411: //New Register
{


switch (npcRequest.OptionID)
{
case 0:
{
dialogs.Text("Hello. I'm the one that was choosen to Make your new account.");
dialogs.Option("I want to Register.", 2);
dialogs.Option("Nooooo.", 255);
dialogs.Send();
break;
}

#region New Register

case 2:
{
dialogs.Text("Please insert the New Acc you Want now.");
dialogs.Input("Here:", 6, 16);
dialogs.Option("Forget it.", 10);
dialogs.Send();
break;
}
case 6:
try
{
string accountname;
accountname = npcRequest.Input;
client.accountname = accountname;
if (!Exists(accountname))
{
dialogs.Text("Please insert the password .");
dialogs.Input("Here:", 7, 14);
dialogs.Option("No.", 255);

}
else
{
dialogs.Text("Account Name already Exit.");
dialogs.Option("Alright.", 255);
}
dialogs.Send();
break;
}
catch
{
dialogs.Text("Please write the correct value.");
dialogs.Option("Try Again.", 2);
dialogs.Option("Quit.", 10);
dialogs.Send();
}
break;
case 7:
try
{
string accountpass1;

accountpass1 = npcRequest.Input;
client.accountpass1 = accountpass1;
dialogs.Text("Please insert the password again.");
dialogs.Input("Here:", 8, 14);
dialogs.Option("No.", 10);
dialogs.Send();
break;
}
catch
{
dialogs.Text("Please write the correct value.");
dialogs.Option("Try Again.", 6);
dialogs.Option("Quit.", 10);
dialogs.Send();
}
break;
case 8:
try
{
string accountpass2;

accountpass2 = npcRequest.Input;
client.accountpass2 = accountpass2;
if (accountpass2 == client.accountpass1)
{
dialogs.Text("Please insert the Email || @yahoo.Com will be added automatically.");
dialogs.Input("Here:", 9, 100);
dialogs.Option("No.", 10);

}
else
{
dialogs.Text("Wrong Pass.");
dialogs.Option("Alright.", 10);
}
dialogs.Send();
break;
}
catch
{
dialogs.Text("Please write the correct value.");
dialogs.Option("Try Again.", 7);
dialogs.Option("Quit.", 0xff);
dialogs.Send();
}
break;
case 9:
string accountEmail;
accountEmail = npcRequest.Input +"@yahoo.com";
client.accountEmail = accountEmail;
string str2 = client.Socket.RemoteEndPoint.ToString().Split(new char[] { ':' })[0].ToString();
client.Account.IP = str2;
Conquer.Database.Account.Insert(client.accountname , client.accountpass1, client.Account.IP, (ulong)0, (byte)0, 0, client.accountEmail);
client.accountname = "";
client.accountpass1 = "";
client.accountpass2 = "";
client.accountEmail = "";
dialogs.Text("New Account Successfully Done. || All rights® reserved to AbdouMatrix ©");
dialogs.Option("Ty 4 ur time.", 255);
dialogs.Send();
break;
case 10:
client.accountname = "";
client.accountpass1 = "";
client.accountpass2 = "";
client.accountEmail = "";
dialogs.Text("Failed !!. Good Luck Next Time.");
dialogs.Option("Ty 4 ur time.", 255);
dialogs.Send();
break;

#endregion New Register
}
break;
}

#endregion ChangePassword

في النفي كات ضيف دول
REPLACE INTO `npcs` VALUES ('10614411', '0', '0', 'New Register', '0002', '50120', '-1', '1002', '0429', '0385', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '', '0000', '00', '00', '0000', '00', null);