|
المشاركات 127 |
+التقييم 0.06 |
تاريخ التسجيل Jul 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 407 |
#region Register Commander
case 764738:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("I`m HelpDesk I'M Here For Your Help ");
dialog.Option("Register Account", 1);
dialog.Avatar(7070);
dialog.Send();
break;
}
case 1:
{
dialog.Text("Please insert UserName");
dialog.Input("here:", 2, 8);
if (npcRequest.Input.Length > 8)
{
dialog.Text("Max Letter 8");
dialog.Option("ok", 255);
dialog.Send();
return;
}
dialog.Send();
break;
}
case 2:
{
string username = npcRequest.Input;
MySqlCommand cmd2 = new MySqlCommand(MySqlCommandType.SELECT).Select("accounts").Where("Username", username);//debug and test!
MySqlReader r = new MySqlReader(cmd2);
if (!r.Read())//wait
{
client.Username = username;
}
else
{
dialog.Text("UserName Is Already Here");
dialog.Option("ok", 255);
dialog.Send();
return;
}
dialog.Text("Please insert Password");
dialog.Input("here:", 3, 14);
if (npcRequest.Input.Length > 14)
{
dialog.Text("Max Letter 14");
dialog.Option("ok", 255);
dialog.Send();
return;
}
break;
}
case 3:
{
string password = npcRequest.Input;
client.Password = password;
using (var cmd = new MySqlCommand(MySqlCommandType.INSERT))
cmd.Insert("accounts").Insert("Username", client.Username)
.Insert("Password", client.Password).Insert("IP", client.Account.IP)
.Execute();
client.Username = "";
client.Password = "";
dialog.Text("Register Successfully Done");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
}
break;
}
#endregion
GameState Or GameClient
#region Register
public string Username;
public string Password;
#endregion
#region Register Commander
case 764738:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("I`m HelpDesk I'M Here For Your Help ");
dialog.Option("Register Account", 1);
dialog.Avatar(7070);
dialog.Send();
break;
}
case 1:
{
dialog.Text("Please insert UserName");
dialog.Input("here:", 2, 8);
if (npcRequest.Input.Length > 8)
{
dialog.Text("Max Letter 8");
dialog.Option("ok", 255);
dialog.Send();
return;
}
dialog.Send();
break;
}
case 2:
{
string username = npcRequest.Input;
MySqlCommand cmd2 = new MySqlCommand(MySqlCommandType.SELECT).Select("accounts").Where("Username", username);//debug and test!
MySqlReader r = new MySqlReader(cmd2);
if (!r.Read())//wait
{
client.Username = username;
}
else
{
dialog.Text("UserName Is Already Here");
dialog.Option("ok", 255);
dialog.Send();
return;
}
dialog.Text("Please insert Password");
dialog.Input("here:", 3, 14);
if (npcRequest.Input.Length > 14)
{
dialog.Text("Max Letter 14");
dialog.Option("ok", 255);
dialog.Send();
return;
}
break;
}
case 3:
{
string password = npcRequest.Input;
client.Password = password;
dialog.Text("Please insert Email");
dialog.Input("here:", 4, 25);
dialog.Send();
if (npcRequest.Input.Length > 25)
{
dialog.Text("Max Letter 25");
dialog.Option("ok", 255);
dialog.Send();
return;
}
break;
}
case 4:
{
string Email = npcRequest.Input;
client.Email = Email;
dialog.Text("Please insert Mobilenumber");
dialog.Input("here:", 5, 25);
dialog.Send();
if (npcRequest.Input.Length > 25)
{
dialog.Text("Max Letter 25");
dialog.Option("ok", 255);
dialog.Send();
return;
}
break;
}
case 5:
{
string mobilenumber = npcRequest.Input;
client.mobilenumber = mobilenumber;
dialog.Text("Please insert Code");
dialog.Input("here:", 6, 25);
dialog.Send();
if (npcRequest.Input.Length > 25)
{
dialog.Text("Max Letter 25");
dialog.Option("ok", 255);
dialog.Send();
return;
}
break;
}
case 6:
{
string Code = npcRequest.Input;
client.Code = Code;
using (var cmd = new MySqlCommand(MySqlCommandType.INSERT))
cmd.Insert("accounts").Insert("Username", client.Username)
.Insert("Password", client.Password).Insert("MacAddress", client.Account.MacAddress).Insert("IP", client.Account.IP)
.Insert("Email", client.Email).Insert("MobileNumber", client.mobilenumber).Insert("Code", client.Code).Execute();
client.Username = "";
client.Password = "";
client.Email = "";
client.mobilenumber = "";
client.Code = "";
dialog.Text("Register Successfully Done");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
}
break;
}
#endregion
gamestate
#region Register
public string Username;
public string Password;
public string Email;
public string mobilenumber;
public string Code;
#endregion
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
شرح تشغيل سورس بدون هماشي من ال 0 لحد متنزل بل اكونت في السورس بتاعك | Mero | تطوير سيرفرات كونكر | 3 | 2023-08-05 11:39 PM |
اللعبه مش راضيه تعمل اكونت | HASSAN | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2021-08-22 12:31 PM |
تعديل اكونت | ahmedmetwally | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-03-04 12:54 PM |
مين يعرف يعمل لوجو لي جروب ولوجو لي صفحه اكونت ؟ | Hassan Emprator | قسم الاقتراحات والابداع | 4 | 2019-11-16 02:05 PM |