قديم 2019-09-16, 08:29 AM
المشاركة #2  
ElSaher
  • غير متواجد
افتراضي رد: طلبnpc
سريع معلشي يا رجاله

قديم 2019-09-16, 08:32 AM
المشاركة #3  
Tefa
  • غير متواجد
افتراضي رد: طلبnpc

كود:
#region helpdeskrdb
                    
case 10075:
                    case 
99123130:
                    case 
99123129:
                    case 
99123128:
                    case 
99123127:
                    case 
99123126:
                    case 
99123125:
                    case 
99123124:
                    case 
99123123:
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                
dialog.Text("Hello <tip color=0xfff05050>" client.Player.Name " </tip> Welcome to the helpdesk. Is there anything you require below?");
                                
dialog.Option("Register new Acc"1);
                              
//  dialog.Option("Vote", 2);
                                //dialog.Option("My own IP", 50);
                                
dialog.Option("Change Password"6);
                                
dialog.Option("Thanks."255);
                                
dialog.Avatar(0x5f);
                                
dialog.Send();
                                break;
                            
#region ChangeMasterPassword
                            //#region Change password

                            //case 71:
                            //    {
                            //        if (client.Account.MasterPassword != "")
                            //        {
                            //            dialog.Text("Please insert the old password you have now.");
                            //            dialog.Input("Here:", 72, 14);
                            //            dialog.Option("Forget it.", 255);
                            //        }
                            //        else
                            //        {
                            //            client.Account.MasterPassword = client.Account.Password;
                            //            dialog.Text("You don't have a password set.");
                            //            dialog.Option("really !!", 255);
                            //        }
                            //        dialog.Send();
                            //        break;
                            //    }
                            //case 72:
                            //    {
                            //        if (client.Account.MasterPassword != "")
                            //        {
                            //            if (npcRequest.Input.Length <= 14)
                            //            {
                            //                if (client.Account.MasterPassword == npcRequest.Input)
                            //                {
                            //                    dialog.Text("Please insert the password again.");
                            //                    dialog.Input("Here:", 73, 14);
                            //                    dialog.Option("Forget it.", 255);
                            //                }
                            //                else
                            //                {
                            //                    dialog.Text("Wrong password. Try again?");
                            //                    dialog.Input("Here:", 72, 14);
                            //                    dialog.Option("really !!", 255);
                            //                }
                            //            }
                            //            else
                            //            {
                            //                dialog.Text("Invalid password, please try again.");
                            //                dialog.Input("Here:", 206, 14);
                            //                dialog.Option("really !!", 255);
                            //            }
                            //        }
                            //        dialog.Send();
                            //        break;
                            //    }
                            //case 73:
                            //    {
                            //        if (client.Account.MasterPassword != "")
                            //        {
                            //            if (npcRequest.Input.Length <= 14)
                            //            {
                            //                client.TempPassword = npcRequest.Input;
                            //                dialog.Text("Please insert the password again.");
                            //                dialog.Input("Here:", 74, 14);
                            //                dialog.Option("Forget it.", 255);
                            //            }
                            //            else
                            //            {
                            //                dialog.Text("Invalid password, please try again.");
                            //                dialog.Input("Here:", 73, 14);
                            //                dialog.Option("really !!", 255);
                            //            }
                            //        }
                            //        else
                            //        {
                            //            dialog.Text("You don't have a password set.");
                            //            dialog.Option("really !!", 255);
                            //        }
                            //        dialog.Send();
                            //        break;
                            //    }
                            //case 74:
                            //    {
                            //        if (client.Account.MasterPassword != "")
                            //        {
                            //            if (npcRequest.Input.Length <= 14)
                            //            {
                            //                if (client.TempPassword == npcRequest.Input)
                            //                {
                            //                    client.TempPassword = "";
                            //                    client.Account.MasterPassword = npcRequest.Input;
                            //                    client.Account.Save();
                            //                    dialog.Text("Password changed!");
                            //                    dialog.Option("Thanks !!", 255);
                            //                }
                            //                else
                            //                {
                            //                    dialog.Text("Wrong password.");
                            //                    dialog.Input("Here:", 74, 14);
                            //                    dialog.Option("really !!", 255);
                            //                }
                            //            }
                            //            else
                            //            {
                            //                dialog.Text("Invalid password, please try again.");
                            //                dialog.Input("Here:", 74, 14);
                            //                dialog.Option("really !!", 255);
                            //            }
                            //        }
                            //        else
                            //        {
                            //            dialog.Text("You don't have a password set.");
                            //            dialog.Option("really !!", 255);
                            //        }
                            //        dialog.Send();
                            //        break;
                            //    }

                            //#endregion Change password
                            #endregion
                            
case 1:
                                
dialog.Text("Welcome to the helpdesk. Is there anything you require below?");
                                
dialog.Option("Client Register"100);
                                
//dialog.Option("Web Register", 11);
                                
dialog.Avatar(0x5f);
                                
dialog.Send();
                                break;

                            case 
6:
                                
dialog.Text("Welcome to the helpdesk. Is there anything you require below?");
                                
dialog.Option("Client Chg Pass"200);
                                
//dialog.Option("Web Chg Pass", 66);
                                
dialog.Avatar(0x5f);
                                
dialog.Send();
                                break;
                            
#region ChangePassword
                            
case 200:
                                {
                                    
dialog.Text("Hello. I'm the one that was choosen to set/change your account  password .you can change you password for 14 letters nubmer or characters.");

                                    
dialog.Option("I want to change the password."202);
                                    
// dialog.Option("I want to remove the password.", 3);
                                    
dialog.Option("Forget it."255);
                                    
dialog.Send();
                                    break;
                                }

                            
#region Change password

                            
case 202:
                                {
                                    if (
client.Account.Password != "")
                                    {
                                        
dialog.Text("aktb el pass el adym ele byfy7 byh.");
                                        
dialog.Input("Here:"20614);
                                        
dialog.Option("Forget it."255);
                                    }
                                    else
                                    {
                                        
dialog.Text("You don't have a password set.");
                                        
dialog.Option("really !!"255);
                                    }
                                    
dialog.Send();
                                    break;
                                }
                            case 
206:
                                {
                                    if (
client.Account.Password != "")
                                    {
                                        if (
npcRequest.Input.Length >= && npcRequest.Input.Length <= 14)
                                        {
                                            if (
client.Account.Password == npcRequest.Input)
                                            {
                                                
dialog.Text("Aktb el Password el gdeed.");
                                                
dialog.Input("Here:"20714);
                                                
dialog.Option("Forget it."255);
                                            }
                                            else
                                            {
                                                
dialog.Text("Wrong password. Try again?");
                                                
dialog.Input("Here:"20614);
                                                
dialog.Option("really !!"255);
                                            }
                                        }
                                        else
                                        {
                                            
dialog.Text("Invalid password, please try again.");
                                            
dialog.Input("Here:"20614);
                                            
dialog.Option("really !!"255);
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("You don't have a password set.");
                                        
dialog.Option("really !!"255);
                                    }
                                    
dialog.Send();
                                    break;
                                }
                            case 
207:
                                {
                                    if (
client.Account.Password != "")
                                    {
                                        if (
npcRequest.Input.Length <= 14)
                                        {
                                            
client.TempPassword npcRequest.Input;
                                            
dialog.Text("Aktb el Password el gdeed tany.");
                                            
dialog.Input("Here:"20814);
                                            
dialog.Option("Forget it."255);
                                        }
                                        else
                                        {
                                            
dialog.Text("Invalid password, please try again.");
                                            
dialog.Input("Here:"20714);
                                            
dialog.Option("really !!"255);
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("You don't have a password set.");
                                        
dialog.Option("really !!"255);
                                    }
                                    
dialog.Send();
                                    break;
                                }
                            case 
208:
                                {
                                    if (
client.Account.Password != "")
                                    {
                                        if (
npcRequest.Input.Length <= 14)
                                        {
                                            if (
client.TempPassword == npcRequest.Input)
                                            {
                                                
client.TempPassword "";
                                                
client.Account.Password npcRequest.Input;
                                                
client.Account.Save();
                                                
dialog.Text("Password changed!");
                                                
dialog.Option("Thanks !!"255);
                                            }
                                            else
                                            {
                                                
dialog.Text("Wrong password.");
                                                
dialog.Input("Here:"20814);
                                                
dialog.Option("really !!"255);
                                            }
                                        }
                                        else
                                        {
                                            
dialog.Text("Invalid password, please try again.");
                                            
dialog.Input("Here:"20814);
                                            
dialog.Option("really !!"255);
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("You don't have a password set.");
                                        
dialog.Option("really !!"255);
                                    }
                                    
dialog.Send();
                                    break;
                                }

                            
#endregion Change password


                            #endregion ChangePassword

                            
case 11:
                                
client.Send(new Message("" helpdesk.Register ""client.Player.NameSystem.Drawing.Color.Yellow0x839));
                                break;

                            
#region New Register
                            
case 100://New Register Fixed and Done by Mr_Panda :P
                                
{
                                    
dialog.Text("Hello. I'm the one that was choosen to Make your new account.");
                                    
dialog.Option("I want to Register."102);
                                    
dialog.Option("Nooooo."255);
                                    
dialog.Send();
                                    break;
                                }

                            
#region New Register

                            
case 102:
                                {
                                    
dialog.Text("Please insert the New Acc you Want now.");
                                    
dialog.Input("Here:"10616);
                                    
dialog.Option("Forget it."110);
                                    
dialog.Send();
                                    break;
                                }
                            case 
106:
                                
uint input;
                                if (
uint.TryParse(npcRequest.Inputout*input))
                                {
                                    
string accountname;
                                    
accountname npcRequest.Input;
                                    
client.accountname accountname;
                                    if (!
Exists(accountname) && input 4)
                                    {
                                        
dialog.Text("Please insert the password .");
                                        
dialog.Input("Here:"10714);
                                        
dialog.Option("No."255);

                                    }
                                    else
                                    {
                                        
dialog.Text("invaild Account Name or Account Name already Exit.");
                                        
dialog.Option("really"255);
                                    }
                                    
dialog.Send();
                                    break;
                                }
                                else
                                {
                                    
dialog.Text("Please write the correct value 6 litters or more.");
                                    
dialog.Option("Try Again."102);
                                    
dialog.Option("Quit."110);
                                    
dialog.Send();
                                }
                                break;
                            case 
107:
                                if (
uint.TryParse(npcRequest.Inputout*input))
                                {
                                    
string accountpass1;
                                    
accountpass1 npcRequest.Input;
                                    
client.accountpass1 accountpass1;
                                    if (
input 6) return;
                                    
dialog.Text("Please insert the password again.");
                                    
dialog.Input("Here:"10814);
                                    
dialog.Option("No."110);
                                    
dialog.Send();
                                    break;
                                }
                                else
                                {
                                    
dialog.Text("Please write the correct value 6 litters or more.");
                                    
dialog.Option("Try Again."106);
                                    
dialog.Option("Quit."110);
                                    
dialog.Send();
                                }
                                break;
                            case 
108:
                                try
                                {
                                    
string accountpass2;

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

                                    }
                                    else
                                    {
                                        
dialog.Text("Wrong Pass.");
                                        
dialog.Option("really !!"10);
                                    }
                                    
dialog.Send();
                                    break;
                                }
                                catch
                                {
                                    
dialog.Text("Please write the correct value.");
                                    
dialog.Option("Try Again."7);
                                    
dialog.Option("Quit."0xff);
                                    
dialog.Send();
                                }
                                break;
                            case 
109:
                                
string accountEmail;
                                
accountEmail npcRequest.Input "@yahoo.com";
                                
client.accountEmail accountEmail;
                                
string str2 client.Socket.IP.ToString().Split(new char[] { ':' })[0].ToString();
                                
client.Account.IP str2;
                                
using (var cmd = new MySqlCommand(MySqlCommandType.INSERT))
                                    
cmd.Insert("accounts").Insert("Username"client.accountname)
                                        .
Insert("Password"client.accountpass1).Insert("State", (int)0).Insert("IP"client.Account.IP).Insert("LastIP"client.Account.IP)
                                        .
Execute();
                                
//  Conquer.Database.Account.Insert(client.accountname, client.accountpass1, client.Account.IP, client.Account.IP, (ulong)0, (byte)0, 0, client.accountEmail);
                                
client.accountname "";
                                
client.accountpass1 "";
                                
client.accountpass2 "";
                                
client.accountEmail "";
                                
dialog.Text("New Account Successfully Done. || All rights® reserved to Ahmed ©");
                                
dialog.Option("Ty 4 ur time."255);
                                
dialog.Send();
                                break;
                            case 
110:
                                
client.accountname "";
                                
client.accountpass1 "";
                                
client.accountpass2 "";
                                
client.accountEmail "";
                                
dialog.Text("Failed !!. Good Luck Next Time.");
                                
dialog.Option("Ty 4 ur time."255);
                                
dialog.Send();
                                break;

                            
#endregion New Register



                            #endregion ChangePassword
                            
case 2:
                                
client.Send(new Message("" helpdesk.Vote ""client.Player.NameSystem.Drawing.Color.Yellow0x839));
                                break;

                            case 
3:
                                
client.Send(new Message("" helpdesk.ChatBox ""client.Player.NameSystem.Drawing.Color.Yellow0x839));
                                break;

                            case 
4:
                                
client.Send(new Message("" helpdesk.Purchase ""client.Player.NameSystem.Drawing.Color.Yellow0x839));
                                break;

                            case 
5:
                                
client.Send(new Message("" helpdesk.Facebook ""client.Player.NameSystem.Drawing.Color.Yellow0x839));
                                break;

                            case 
66:
                                
client.Send(new Message("" helpdesk.ChangePass ""client.Player.NameSystem.Drawing.Color.Yellow0x839));
                                break;
                        }
                        break;

                    
#endregion 


قديم 2019-09-16, 08:36 AM
المشاركة #4  
ElSaher
  • غير متواجد
افتراضي رد: طلبnpc
كود:
#region helpdeskrdb
                    
case 10075:
                    Case 
99123130:
                    Case 
99123129:
                    Case 
99123128:
                    Case 
99123127:
                    Case 
99123126:
                    Case 
99123125:
                    Case 
99123124:
                    Case 
99123123:
                        Switch (
npcrequest.optionid)
                        {
                            case 
0:
                                
Dialog.text("hello <tip color=0xfff05050>" client.player.name " </tip> welcome to the helpdesk. Is there anything you require below?");
                                
dialog.option("register new acc"1);
                              
//  dialog.option("vote", 2);
                                //dialog.option("my own ip", 50);
                                
dialog.option("change password"6);
                                
dialog.option("thanks."255);
                                
dialog.avatar(0x5f);
                                
dialog.send();
                                break;
                            
#region changemasterpassword
                            //#region change password

                            //case 71:
                            //    {
                            //        if (client.account.masterpassword != "")
                            //        {
                            //            dialog.text("please insert the old password you have now.");
                            //            dialog.input("here:", 72, 14);
                            //            dialog.option("forget it.", 255);
                            //        }
                            //        else
                            //        {
                            //            client.account.masterpassword = client.account.password;
                            //            dialog.text("you don't have a password set.");
                            //            dialog.option("really !!", 255);
                            //        }
                            //        dialog.send();
                            //        break;
                            //    }
                            //case 72:
                            //    {
                            //        if (client.account.masterpassword != "")
                            //        {
                            //            if (npcrequest.input.length <= 14)
                            //            {
                            //                if (client.account.masterpassword == npcrequest.input)
                            //                {
                            //                    dialog.text("please insert the password again.");
                            //                    dialog.input("here:", 73, 14);
                            //                    dialog.option("forget it.", 255);
                            //                }
                            //                else
                            //                {
                            //                    dialog.text("wrong password. Try again?");
                            //                    dialog.input("here:", 72, 14);
                            //                    dialog.option("really !!", 255);
                            //                }
                            //            }
                            //            else
                            //            {
                            //                dialog.text("invalid password, please try again.");
                            //                dialog.input("here:", 206, 14);
                            //                dialog.option("really !!", 255);
                            //            }
                            //        }
                            //        dialog.send();
                            //        break;
                            //    }
                            //case 73:
                            //    {
                            //        if (client.account.masterpassword != "")
                            //        {
                            //            if (npcrequest.input.length <= 14)
                            //            {
                            //                client.temppassword = npcrequest.input;
                            //                dialog.text("please insert the password again.");
                            //                dialog.input("here:", 74, 14);
                            //                dialog.option("forget it.", 255);
                            //            }
                            //            else
                            //            {
                            //                dialog.text("invalid password, please try again.");
                            //                dialog.input("here:", 73, 14);
                            //                dialog.option("really !!", 255);
                            //            }
                            //        }
                            //        else
                            //        {
                            //            dialog.text("you don't have a password set.");
                            //            dialog.option("really !!", 255);
                            //        }
                            //        dialog.send();
                            //        break;
                            //    }
                            //case 74:
                            //    {
                            //        if (client.account.masterpassword != "")
                            //        {
                            //            if (npcrequest.input.length <= 14)
                            //            {
                            //                if (client.temppassword == npcrequest.input)
                            //                {
                            //                    client.temppassword = "";
                            //                    client.account.masterpassword = npcrequest.input;
                            //                    client.account.save();
                            //                    dialog.text("password changed!");
                            //                    dialog.option("thanks !!", 255);
                            //                }
                            //                else
                            //                {
                            //                    dialog.text("wrong password.");
                            //                    dialog.input("here:", 74, 14);
                            //                    dialog.option("really !!", 255);
                            //                }
                            //            }
                            //            else
                            //            {
                            //                dialog.text("invalid password, please try again.");
                            //                dialog.input("here:", 74, 14);
                            //                dialog.option("really !!", 255);
                            //            }
                            //        }
                            //        else
                            //        {
                            //            dialog.text("you don't have a password set.");
                            //            dialog.option("really !!", 255);
                            //        }
                            //        dialog.send();
                            //        break;
                            //    }

                            //#endregion change password
                            #endregion
                            
case 1:
                                
Dialog.text("welcome to the helpdesk. Is there anything you require below?");
                                
dialog.option("client register"100);
                                
//dialog.option("web register", 11);
                                
dialog.avatar(0x5f);
                                
dialog.send();
                                break;

                            case 
6:
                                
Dialog.text("welcome to the helpdesk. Is there anything you require below?");
                                
dialog.option("client chg pass"200);
                                
//dialog.option("web chg pass", 66);
                                
dialog.avatar(0x5f);
                                
dialog.send();
                                break;
                            
#region changepassword
                            
case 200:
                                {
                                    
dialog.text("hello. I'm the one that was choosen to set/change your account  password .you can change you password for 14 letters nubmer or characters.");

                                    
dialog.option("i want to change the password."202);
                                    
// dialog.option("i want to remove the password.", 3);
                                    
dialog.option("forget it."255);
                                    
dialog.send();
                                    break;
                                }

                            
#region change password

                            
case 202:
                                {
                                    if (
client.account.password != "")
                                    {
                                        
dialog.text("aktb el pass el adym ele byfy7 byh.");
                                        
dialog.input("here:"20614);
                                        
dialog.option("forget it."255);
                                    }
                                    else
                                    {
                                        
dialog.text("you don't have a password set.");
                                        
dialog.option("really !!"255);
                                    }
                                    
dialog.send();
                                    break;
                                }
                            case 
206:
                                {
                                    if (
client.account.password != "")
                                    {
                                        if (
npcrequest.input.length >= && npcrequest.input.length <= 14)
                                        {
                                            if (
client.account.password == npcrequest.input)
                                            {
                                                
dialog.text("aktb el password el gdeed.");
                                                
dialog.input("here:"20714);
                                                
dialog.option("forget it."255);
                                            }
                                            else
                                            {
                                                
dialog.text("wrong password. Try again?");
                                                
dialog.input("here:"20614);
                                                
dialog.option("really !!"255);
                                            }
                                        }
                                        else
                                        {
                                            
dialog.text("invalid password, please try again.");
                                            
dialog.input("here:"20614);
                                            
dialog.option("really !!"255);
                                        }
                                    }
                                    else
                                    {
                                        
dialog.text("you don't have a password set.");
                                        
dialog.option("really !!"255);
                                    }
                                    
dialog.send();
                                    break;
                                }
                            case 
207:
                                {
                                    if (
client.account.password != "")
                                    {
                                        if (
npcrequest.input.length <= 14)
                                        {
                                            
client.temppassword npcrequest.input;
                                            
dialog.text("aktb el password el gdeed tany.");
                                            
dialog.input("here:"20814);
                                            
dialog.option("forget it."255);
                                        }
                                        else
                                        {
                                            
dialog.text("invalid password, please try again.");
                                            
dialog.input("here:"20714);
                                            
dialog.option("really !!"255);
                                        }
                                    }
                                    else
                                    {
                                        
dialog.text("you don't have a password set.");
                                        
dialog.option("really !!"255);
                                    }
                                    
dialog.send();
                                    break;
                                }
                            case 
208:
                                {
                                    if (
client.account.password != "")
                                    {
                                        if (
npcrequest.input.length <= 14)
                                        {
                                            if (
client.temppassword == npcrequest.input)
                                            {
                                                
client.temppassword "";
                                                
client.account.password npcrequest.input;
                                                
client.account.save();
                                                
dialog.text("password changed!");
                                                
dialog.option("thanks !!"255);
                                            }
                                            else
                                            {
                                                
dialog.text("wrong password.");
                                                
dialog.input("here:"20814);
                                                
dialog.option("really !!"255);
                                            }
                                        }
                                        else
                                        {
                                            
dialog.text("invalid password, please try again.");
                                            
dialog.input("here:"20814);
                                            
dialog.option("really !!"255);
                                        }
                                    }
                                    else
                                    {
                                        
dialog.text("you don't have a password set.");
                                        
dialog.option("really !!"255);
                                    }
                                    
dialog.send();
                                    break;
                                }

                            
#endregion change password


                            #endregion changepassword

                            
case 11:
                                
Client.send(new message("" helpdesk.register ""client.player.namesystem.drawing.color.yellow0x839));
                                break;

                            
#region new register
                            
case 100://new register fixed and done by mr_panda :p
                                
{
                                    
dialog.text("hello. I'm the one that was choosen to make your new account.");
                                    
dialog.option("i want to register."102);
                                    
dialog.option("nooooo."255);
                                    
dialog.send();
                                    break;
                                }

                            
#region new register

                            
case 102:
                                {
                                    
dialog.text("please insert the new acc you want now.");
                                    
dialog.input("here:"10616);
                                    
dialog.option("forget it."110);
                                    
dialog.send();
                                    break;
                                }
                            case 
106:
                                
Uint input;
                                if (
uint.tryparse(npcrequest.inputout*input))
                                {
                                    
string accountname;
                                    
accountname npcrequest.input;
                                    
client.accountname accountname;
                                    if (!
exists(accountname) && input 4)
                                    {
                                        
dialog.text("please insert the password .");
                                        
dialog.input("here:"10714);
                                        
dialog.option("no."255);

                                    }
                                    else
                                    {
                                        
dialog.text("invaild account name or account name already exit.");
                                        
dialog.option("really"255);
                                    }
                                    
dialog.send();
                                    break;
                                }
                                else
                                {
                                    
dialog.text("please write the correct value 6 litters or more.");
                                    
dialog.option("try again."102);
                                    
dialog.option("quit."110);
                                    
dialog.send();
                                }
                                break;
                            case 
107:
                                If (
uint.tryparse(npcrequest.inputout*input))
                                {
                                    
string accountpass1;
                                    
accountpass1 npcrequest.input;
                                    
client.accountpass1 accountpass1;
                                    if (
input 6) return;
                                    
dialog.text("please insert the password again.");
                                    
dialog.input("here:"10814);
                                    
dialog.option("no."110);
                                    
dialog.send();
                                    break;
                                }
                                else
                                {
                                    
dialog.text("please write the correct value 6 litters or more.");
                                    
dialog.option("try again."106);
                                    
dialog.option("quit."110);
                                    
dialog.send();
                                }
                                break;
                            case 
108:
                                Try
                                {
                                    
string accountpass2;

                                    
accountpass2 npcrequest.input;
                                    
client.accountpass2 accountpass2;
                                    if (
accountpass2 == client.accountpass1)
                                    {
                                        
dialog.text("please insert the email || @yahoo.com will be added automatically.");
                                        
dialog.input("here:"109100);
                                        
dialog.option("no."10);

                                    }
                                    else
                                    {
                                        
dialog.text("wrong pass.");
                                        
dialog.option("really !!"10);
                                    }
                                    
dialog.send();
                                    break;
                                }
                                catch
                                {
                                    
dialog.text("please write the correct value.");
                                    
dialog.option("try again."7);
                                    
dialog.option("quit."0xff);
                                    
dialog.send();
                                }
                                break;
                            case 
109:
                                
String accountemail;
                                
accountemail npcrequest.input "@yahoo.com";
                                
client.accountemail accountemail;
                                
string str2 client.socket.ip.tostring().split(new char[] { ':' })[0].tostring();
                                
client.account.ip str2;
                                
using (var cmd = new mysqlcommand(mysqlcommandtype.insert))
                                    
cmd.insert("accounts").insert("username"client.accountname)
                                        .
insert("password"client.accountpass1).insert("state", (int)0).insert("ip"client.account.ip).insert("lastip"client.account.ip)
                                        .
execute();
                                
//  conquer.database.account.insert(client.accountname, client.accountpass1, client.account.ip, client.account.ip, (ulong)0, (byte)0, 0, client.accountemail);
                                
client.accountname "";
                                
client.accountpass1 "";
                                
client.accountpass2 "";
                                
client.accountemail "";
                                
dialog.text("new account successfully done. || all rights® reserved to ahmed ©");
                                
dialog.option("ty 4 ur time."255);
                                
dialog.send();
                                break;
                            case 
110:
                                
Client.accountname "";
                                
client.accountpass1 "";
                                
client.accountpass2 "";
                                
client.accountemail "";
                                
dialog.text("failed !!. Good luck next time.");
                                
dialog.option("ty 4 ur time."255);
                                
dialog.send();
                                break;

                            
#endregion new register



                            #endregion changepassword
                            
case 2:
                                
Client.send(new message("" helpdesk.vote ""client.player.namesystem.drawing.color.yellow0x839));
                                break;

                            case 
3:
                                
Client.send(new message("" helpdesk.chatbox ""client.player.namesystem.drawing.color.yellow0x839));
                                break;

                            case 
4:
                                
Client.send(new message("" helpdesk.purchase ""client.player.namesystem.drawing.color.yellow0x839));
                                break;

                            case 
5:
                                
Client.send(new message("" helpdesk.facebook ""client.player.namesystem.drawing.color.yellow0x839));
                                break;

                            case 
66:
                                
Client.send(new message("" helpdesk.changepass ""client.player.namesystem.drawing.color.yellow0x839));
                                break;
                        }
                        break;

                    
#endregion 
انتا الي بتجيب النهيا كل مره شوف المشكلة الي تحت


العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 
أدوات الموضوع

الانتقال السريع



الساعة الآن 11:19 AM

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.