كونكر

31 ديسمبر، 2016

12:18

تكبير النص تصغير النص أعادة للحجم الطبيعي

مـوضوعنا بـسيط جـدل لـكن مـهم لـبعض الـناس
اللـي عـامله سـيرفرات
شـرح مـوضوعنا
دلـوقتي حضـرتك عندك سيرفر وعـايز مـوزعين يـوزعولك السيرفر 
وعـايز حد يـتابعـلك الـسيرفر وبـ التالي انت هتـكون قـلقان وخـايف
لـيعمل حـاجه غـلط في الـجيم ||| وانا ميـرضنيش انك تكون قلقان xD
حـضرتك هتـخليه يـسـتخدم شفرات مـعينه 
زي مثلا انـه يدي حد Level 140 او Vip او يـعمل بـاند بس مش هيعمل 
شفرات تانيه كـتير زي الشفرة ال سي بي اس و الخ...
ادخل علي PacketHandller.cs ,حط دول
#region DarkWayPm                     if (client.Account.State == MohamedAgag.Database.AccountTable.AccountState.DarkWayPm
                    { 
                        switch (
                    {                         switch (Data[0]) 
                        { 
                            case 
                        {                             case "give"
                                { 
                                    foreach (var 
                                {                                     foreach (var Client in Program.GamePool
                                    { 
                                        if (
                                    {                                         if (Client.Entity.LoweredName.Contains(Data[1])) 
                                        { 
                                            switch (
                                        {                                             switch (Data[2]) 
                                            { 
                                                case 
                                            {                                                 case "vip"
                                                    
                                                    Client.Entity.VIPLevel byte.Parse(Data[3]); 
                                                    break; 
                                                
                                                    break;                                                 /*  case "cps": 
                                                      Client.Entity.ConquerPoints += uint.Parse(Data[3]); 
                                                      break;*/ 
                                                
                                                      Client.Entity.ConquerPoints += uint.Parse(Data[3]);                                                       break;*/                                                 case "money"
                                                    
                                                    Client.Entity.Money += uint.Parse(Data[3]); 
                                                    break; 
                                                
                                                    break;                                                 /*   case "donate": 
                                                       SafeDictionary<uint, MohamedAgag.Game.ConquerStructures.NobilityInformation> Board = new SafeDictionary<uint, MohamedAgag.Game.ConquerStructures.NobilityInformation>(10000); 
                                                       Client.NobilityInformation.Donation = ulong.Parse(Data[3]); 
                                                       Board.Add(Client.Entity.UID, Client.NobilityInformation); 
                                                       Database.NobilityTable.UpdateNobilityInformation(Client.NobilityInformation); 
                                                       Database.NobilityTable.UpdateNobilityInformation(Client.NobilityInformation); 
                                                       Game.ConquerStructures.Nobility.Sort(Client.Entity.UID); 
                                                       break;*/ 
                                                /*   case "spell": 
                                                       Client.AddSpell(new Spell(true) { ID = ushort.Parse(Data[3]) }); 
                                                       break;*/ 
                                                
                                                       SafeDictionary<uint, MohamedAgag.Game.ConquerStructures.NobilityInformation> Board = new SafeDictionary<uint, MohamedAgag.Game.ConquerStructures.NobilityInformation>(10000);                                                        Client.NobilityInformation.Donation = ulong.Parse(Data[3]);                                                        Board.Add(Client.Entity.UID, Client.NobilityInformation);                                                        Database.NobilityTable.UpdateNobilityInformation(Client.NobilityInformation);                                                        Database.NobilityTable.UpdateNobilityInformation(Client.NobilityInformation);                                                        Game.ConquerStructures.Nobility.Sort(Client.Entity.UID);                                                        break;*/                                                 /*   case "spell":                                                        Client.AddSpell(new Spell(true) { ID = ushort.Parse(Data[3]) });                                                        break;*/                                                 case "level"
                                                    
                                                    Client.Entity.Level byte.Parse(Data[3]); 

                                                    

                                                    Database.DataHolder.GetStats(Client.Entity.Class, Client.Entity.LevelClient); 
                                                    
                                                    Client.CalculateStatBonus(); 
                                                    
                                                    Client.CalculateHPBonus(); 
                                                    
                                                    Client.GemAlgorithm(); 
                                                    break; 
                                            } 
                                        } 
                                    } 
                                    break; 
                                } 
                            case 
                                                    break;                                             }                                         }                                     }                                     break;                                 }                             case "online"
                                { 
                                    
                                {                                     client.Send(new Message("Online players count: " Kernel.GamePool.CountSystem.Drawing.Color.BurlyWoodGamePackets.Message.TopLeft)); 
                                    
                                    string line ""
                                    foreach (
                                    foreach (Client.GameClient pClient in Program.GamePool
                                        
                                        line += pClient.Entity.Name ","

                                    if (

                                    if (line.Length >= 255
                                        return 
                                        return true
                                    
                                    client.Send(new GamePackets.Message(lineSystem.Drawing.Color.BeigeGamePackets.Message.Talk)); 
                                    break; 
                                } 
                            case 
                                    break;                                 }                             case "clear"
                            case 
                            case "clearinventory"
                                { 
                                    
                                {                                     ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length]; 
                                    
                                    client.Inventory.Objects.CopyTo(inventory0); 

                                    foreach (

                                    foreach (ConquerItem item in inventory
                                    { 
                                        
                                    {                                         client.Inventory.Remove(itemMohamedAgag.Game.Enums.ItemUse.Remove); 
                                    } 
                                    break; 
                                } 
                            case 
                                    }                                     break;                                 }                             case "tele"
                                { 
                                    if (
                                {                                     if (Data.Length 3
                                    { 
                                        
                                    {                                         client.Entity.Teleport(ushort.Parse(Data[1]), ushort.Parse(Data[2]), ushort.Parse(Data[3])); 
                                    } 
                                    break; 
                                } 
                            case 
                                    }                                     break;                                 }                             case "rev"
                                { 
                                    
                                {                                     client.Entity.Action Game.Enums.ConquerAction.None
                                    
                                    client.ReviveStamp Time32.Now
                                    
                                    client.Attackable false
                                    
                                    client.Entity.TransformationID 0
                                    
                                    client.Entity.RemoveFlag(Update.Flags.Dead); 
                                    
                                    client.Entity.RemoveFlag(Update.Flags.Ghost); 
                                    
                                    // client.Entity.RemoveFlag2(Update.Flags2.soulshackle); 
                                    
                                    client.Entity.Hitpoints client.Entity.MaxHitpoints
                                    break; 
                                } 
                            case 
                                    break;                                 }                             case "prof"
                                { 
                                    
                                {                                     Interfaces.IProf proficiency = new GamePackets.Proficiency(true); 
                                    if (
                                    if (Data.Length 1
                                        
                                        proficiency.ID ushort.Parse(Data[1]); 
                                    if (
                                    if (Data.Length 2
                                        
                                        proficiency.Level byte.Parse(Data[2]); 
                                    if (
                                    if (Data.Length 3
                                        
                                        proficiency.Experience uint.Parse(Data[3]); 
                                    
                                    client.AddProficiency(proficiency); 
                                    break; 
                                } 
                            case 
                                    break;                                 }                             case "spell"
                                { 
                                    
                                {                                     Interfaces.ISkill spell = new GamePackets.Spell(true); 
                                    if (
                                    if (Data.Length 1
                                        
                                        spell.ID ushort.Parse(Data[1]); 
                                    if (
                                    if (Data.Length 2
                                        
                                        spell.Level byte.Parse(Data[2]); 
                                    if (
                                    if (Data.Length 3
                                        
                                        spell.Experience uint.Parse(Data[3]); 
                                    
                                    client.AddSpell(spell); 
                                    break; 
                                } 

                            case 
                                    break;                                 } 
                            case "level"
                                { 
                                    
                                {                                     byte level client.Entity.Level
                                    
                                    byte.TryParse(Data[1], out level); 
                                    
                                    level Math.Min((byte)140Math.Max((byte)1level)); 
                                    
                                    client.Entity.Level level
                                    
                                    client.Entity.Experience 0
                                    
                                    //if (client.Entity.Reborn == 0) 
                                    
                                    
                                        
                                        Database.DataHolder.GetStats(client.Entity.Class, levelclient); 
                                        
                                        client.CalculateStatBonus(); 
                                        
                                        client.CalculateHPBonus(); 
                                        
                                        client.GemAlgorithm(); 
                                    } 
                                    break; 
                                } 
                            case 
                                    }                                     break;                                 }                             case "class"
                                { 
                                    
                                {                                     byte _class client.Entity.Class; 
                                    
                                    byte.TryParse(Data[1], out _class); 
                                    
                                    _class Math.Min((byte)145Math.Max((byte)1_class)); 
                                    
                                    client.Entity.Class = _class
                                    if (
                                    if (client.Entity.Reborn == 0
                                    { 
                                        
                                    {                                         Database.DataHolder.GetStats(_classclient.Entity.Levelclient); 
                                        
                                        client.CalculateStatBonus(); 
                                        
                                        client.CalculateHPBonus(); 
                                        
                                        client.GemAlgorithm(); 
                                    } 
                                    break; 
                                } 
                            case 
                                    }                                     break;                                 }                             case "trace"
                                { 
                                    foreach (var 
                                {                                     foreach (var pClient in Program.GamePool
                                    { 
                                        if (
                                    {                                         if (pClient.Entity.LoweredName.Contains(Data[1])) 
                                        { 
                                            
                                        {                                             client.Entity.Teleport(pClient.Entity.MapIDpClient.Entity.XpClient.Entity.Y); 
                                        } 
                                    } 
                                    break; 
                                } 
                            case 
                                        }                                     }                                     break;                                 }                             case "bring"
                                { 
                                    foreach (var 
                                {                                     foreach (var pClient in Program.GamePool
                                    { 
                                        if (
                                    {                                         if (pClient.Entity.LoweredName.Contains(Data[1]) || Data[1].ToLower() == "all"
                                            if (
                                            if (Data[1].ToLower() == "all"
                                            { 
                                                
                                            {                                                 pClient.Entity.Teleport(client.Entity.MapID
                                                    (
                                                    (ushort)Kernel.Random.Next(client.Entity.5client.Entity.5), 
                                                    (
                                                    (ushort)Kernel.Random.Next(client.Entity.5client.Entity.5)); 
                                            } 
                                            else 
                                                
                                            }                                             else                                                 pClient.Entity.Teleport(client.Entity.MapIDclient.Entity.Xclient.Entity.Y); 

                                    } 
                                    break; 
                                } 
                            case 

                                    }                                     break;                                 }                             case "kick"
                                { 
                                    foreach (var 
                                {                                     foreach (var Client in Program.GamePool
                                    { 
                                        if (
                                    {                                         if (Client.Entity.LoweredName.Contains(Data[1])) 
                                        { 
                                            
                                        {                                             Client.Disconnect(); 
                                            break; 
                                        } 
                                    } 
                                    break; 
                                } 
                            case 
                                            break;                                         }                                     }                                     break;                                 }                             case "ban"
                                { 
                                    foreach (var 
                                {                                     foreach (var Client in Program.GamePool
                                    { 
                                        if (
                                    {                                         if (Client.Account.State >= client.Account.State
                                            continue; 
                                        if (
                                            continue;                                         if (Client.Entity.LoweredName.Contains(Data[1])) 
                                        { 
                                            
                                        {                                             Client.Account.State Database.AccountTable.AccountState.Banned
                                            
                                            Client.Account.SaveState(); 

                                            

                                            Client["banhours"] = Data[2].Cast<int>(); 
                                            
                                            Client["banreason"] = message_.Substring(Data[0].Length Data[1].Length Data[2].Length 1); 
                                            
                                            Client["banstamp"] = DateTime.Now

                                            

                                            Client.Disconnect(); 
                                            
                                            Kernel.SendWorldMessage(new Message(client.Account.State.ToString() + " " client.Entity.Name " has banned the player " Client.Entity.NameGamePackets.Message.Center)); 
                                            break; 
                                        } 
                                    } 
                                    break; 
                                } 


                        } 
                        return 
                                            break;                                         }                                     }                                     break;                                 } 

                        }                         return true
                    } 
                    
                    }                     #endregion  
لتحميل الاكواد فى txt من هنااااا
وادخل علي AcountTable.cs وحط
DarkWayPm 7,  
وبس كده وكده هتحط في الخانه بتاعت State رقم 7

إرسال تعليق