منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   npcs تسجيل حساب داخل اللعبه (https://code.vpscairo.com/showthread.php?t=216)

محمد ياسر 2019-04-27 10:56 PM

npcs تسجيل حساب داخل اللعبه
 

في السورس
npcs.cs ضيف دول
كود PHP:

  #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:"616); 
                                    
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:"714); 
                                        
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:"814); 
                                    
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:"9100); 
                                        
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.accountnameclient.accountpass1client.Account.IP, (ulong)0, (byte)00client.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 

في النفي كات ضيف دول
كود PHP:

REPLACE INTO `npcsVALUES ('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); 



الساعة الآن 05:33 AM

مرحبا بكم في منتدي اكواد لتطوير الالعاب