اسم العضو كلمة المرور حفظ البيانات؟ تسجيل عضوية



ايجى4يو || Egy4u





اعلانات ايجى4يو
جديد المواضيع
المشاركات: 27 [+]
المخالفات: [+]
مجموع الاوسمة: [+]
محمد مصطفي غير متواجد حالياً
محمد مصطفي
( مراقب اقسام كونكر برفيت )
أكثر من فكره للشحن :) !
: 07-22-2017 فى تمام الساعة 08:56 PM| المشاركة رقم: 1| من قسم: تطوير سيرفرات كـــونـــكر تـــهيس

بما ان الناس بتدخل تفتح الموقع لسببين بس وهما ,

يسجل اكونت او يحمل باتش فانا هضيف للانبسي بتاع HelpDesk ,

كود زياده وهو كود الشحن عشان لما حد يضغط عليه يفتحله ,

الصفحه اللي هيشحن منها علطول بدل اللف والدوران .. مجبتش جديد انا ,

نبدأ ,,

اول حاجه هتفتح كلاس helpdesk.cs ,

امسحه خالص وضيف فيه دول ,

Html

namespace Conquer_Online_Server.Database 

    
using Conquer_Online_Server
    
using System

    
internal class helpdesk 
    

        public static 
string ChangePass ""
        public static 
string ChatBox ""
        public static 
string Facebook ""
        public static 
string Purchase ""
        public static 
string Register ""
        public static 
string Vote ""
        public static 
string Charge ""

        public static 
void LoadRates() 
        { 
            
MySqlReader reader = new MySqlReader(new MySqlCommand(MySqlCommandType.SELECT).Select("helpdesk")); 
            if (
reader.Read()) 
            { 
                
Charge reader.ReadString("Charge"); 
                
Register reader.ReadString("Register"); 
                
Vote reader.ReadString("Vote"); 
                
ChatBox reader.ReadString("ChatBox"); 
                
Purchase reader.ReadString("Purchase"); 
                
Facebook reader.ReadString("Facebook"); 
                
ChangePass reader.ReadString("ChangePass"); 
            } 
          
//  Conquer_Online_Server.Console.WriteLine("helpdesk Table Loaded.");             
        

    } 

اكيد حتبدل ,,

Html

Conquer_Online_Server 
باسم البروجكت بتاعك ! ,, أكثر فكره للشحن

بعد كدا هنروح للانبسي Npcs.cs ,

لو عندك الانبسي امسحه وضيف دا مكانه ,

Html

#region Help Desk 
                            #region HelpDesk 
                            
case 10620
                                switch (
npcRequest.OptionID
                                { 
                                    case 
0
                                        
dialog.Text("Welcome to the Phoenix[Helpdesk]. Is there anything you require below?"); 
                                        
dialog.Option("Register"1); 
                                        
dialog.Option("Vote"2); 
                                        
dialog.Option("Donte"4); 
                                        
dialog.Option("Facebook Page"5); 
                                        
dialog.Option("ChangePassword"6); 
                                        
dialog.Option("Charge"7); 
                                        
dialog.Avatar(0x5f); 
                                        
dialog.Send(); 
                                        break; 

                                    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("Please insert the old password you have now."); 
                                                
dialog.Input("Here:"20614); 
                                                
dialog.Option("Forget it."255); 
                                            } 
                                            else 
                                            { 
                                                
dialog.Text("You don't have a password set."); 
                                                
dialog.Option("Alright."255); 
                                            } 
                                            
dialog.Send(); 
                                            break; 
                                        } 
                                    case 
206
                                        { 
                                            if (
client.Account.Password != ""
                                            { 
                                                if (
npcRequest.Input.Length <= 14
                                                { 
                                                    if (
client.Account.Password == npcRequest.Input
                                                    { 
                                                        
dialog.Text("Please insert the password again."); 
                                                        
dialog.Input("Here:"20714); 
                                                        
dialog.Option("Forget it."255); 
                                                    } 
                                                    else 
                                                    { 
                                                        
dialog.Text("Wrong password. Try again?"); 
                                                        
dialog.Input("Here:"20614); 
                                                        
dialog.Option("Alright."255); 
                                                    } 
                                                } 
                                                else 
                                                { 
                                                    
dialog.Text("Invalid password, please try again."); 
                                                    
dialog.Input("Here:"20614); 
                                                    
dialog.Option("Alright."255); 
                                                } 
                                            } 
                                            else 
                                            { 
                                                
dialog.Text("You don't have a password set."); 
                                                
dialog.Option("Alright."255); 
                                            } 
                                            
dialog.Send(); 
                                            break; 
                                        } 
                                    case 
207
                                        { 
                                            if (
client.Account.Password != ""
                                            { 
                                                if (
npcRequest.Input.Length <= 14
                                                { 
                                                    
client.TempPassword npcRequest.Input
                                                    
dialog.Text("Please insert the password again."); 
                                                    
dialog.Input("Here:"20814); 
                                                    
dialog.Option("Forget it."255); 
                                                } 
                                                else 
                                                { 
                                                    
dialog.Text("Invalid password, please try again."); 
                                                    
dialog.Input("Here:"20714); 
                                                    
dialog.Option("Alright."255); 
                                                } 
                                            } 
                                            else 
                                            { 
                                                
dialog.Text("You don't have a password set."); 
                                                
dialog.Option("Alright."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("Thank you."255); 
                                                    } 
                                                    else 
                                                    { 
                                                        
dialog.Text("Wrong password."); 
                                                        
dialog.Input("Here:"20814); 
                                                        
dialog.Option("Alright."255); 
                                                    } 
                                                } 
                                                else 
                                                { 
                                                    
dialog.Text("Invalid password, please try again."); 
                                                    
dialog.Input("Here:"20814); 
                                                    
dialog.Option("Alright."255); 
                                                } 
                                            } 
                                            else 
                                            { 
                                                
dialog.Text("You don't have a password set."); 
                                                
dialog.Option("Alright."255); 
                                            } 
                                            
dialog.Send(); 
                                            break; 
                                        } 

                                    
#endregion Change password 


                                    #endregion ChangePassword 

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

                                    
#region New Register 
                                    
case 100://New Register 
                                        

                                            
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
                                        try 
                                        { 
                                            
string accountname
                                            
accountname npcRequest.Input
                                            
client.accountname accountname
                                            if (!
Exists(accountname)) 
                                            { 
                                                
dialog.Text("Please insert the password ."); 
                                                
dialog.Input("Here:"10714); 
                                                
dialog.Option("No."255); 

                                            } 
                                            else 
                                            { 
                                                
dialog.Text("Account Name already Exit."); 
                                                
dialog.Option("Alright."255); 
                                            } 
                                            
dialog.Send(); 
                                            break; 
                                        } 
                                        catch 
                                        { 
                                            
dialog.Text("Please write the correct value."); 
                                            
dialog.Option("Try Again."102); 
                                            
dialog.Option("Quit."110); 
                                            
dialog.Send(); 
                                        } 
                                        break; 
                                    case 
107
                                        try 
                                        { 
                                            
string accountpass1
                                            
accountpass1 npcRequest.Input
                                            
client.accountpass1 accountpass1
                                            
dialog.Text("Please insert the password again."); 
                                            
dialog.Input("Here:"10814); 
                                            
dialog.Option("No."110); 
                                            
dialog.Send(); 
                                            break; 
                                        } 
                                        catch 
                                        { 
                                            
dialog.Text("Please write the correct value."); 
                                            
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("Alright."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
                                                .
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 Gameover ©"); 
                                        
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.Entity.NameSystem.Drawing.Color.Yellow0x839)); 
                                        break; 

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

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

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

                                    case 
7
                                        
client.Send(new Message("" helpdesk.Charge ""client.Entity.NameSystem.Drawing.Color.Yellow0x839)); 
                                        break; 

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

                            
#endregion 
                            #endregion 
مميزات الانبسي كتير من ضمنها انك تقدر تسجل اكونت جديد من جوه اللعبه ,
لو جابت عندك ايرور .. هتفتح Gamestate.cs ,
هتبحث عن ,

Html

public Database.VipVariables 
وهتضيف ده فوقه بالظبط ,


Html

#region New acc Reg. 
        
public string accountname
        public 
string accountpass1
        public 
string accountpass2
        public 
string accountEmail
        
#endregion 
وفي قاعدة البيانات هتعمل DesignTable للتيبل بتاعت HelpDsk ,

وهتضيف Falid دا ,

Html

Charge    char    255    0    0    0    0    0    0        0        utf8    utf8_general_ci        0    0 
بالتوفيق أكثر فكره للشحن

ساعد في نشر والارتقاء بنا عبر مشاركة رأيك في الفيس بوك




H;ev lk t;vi ggapk :) !


  إضافة رد


«     التحكم في بلاص الايتيم Compse and Quick Control | شرح : تقليل سحب ال Cpu في كل السورسات ! »


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



المواضيع المتشابهه
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
اصحاب السيرفرات الصعبه اعمل عندك فكره جديدا للدروب ! محمد مصطفي تطوير سيرفرات كـــونـــكر تـــهيس 0 07-22-2017 07:11 PM
حصرى !! فكره جديده للـ ViP خلى الفى اى بى 6 يدي واحد بآتل بآور زيآآده Senior.Egy4U تطوير سيرفرات كـــونـــكر تـــهيس 1 06-04-2017 02:44 PM

Facebook Comments by: ABDU_GO - شركة الإبداع الرقمية
RSS RSS 2.0 XML MAP HTML