قديم 2019-09-21, 01:38 AM
المشاركة 2
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: بعد اذن الرجاله محتاج كود يقلل ضربة ال Bot بتاح الحروب
افتح GameState.cs
سيرش

كود:
 public void SpawnElitePKBot

بدله

كود:
 public void SpawnElitePKBot(uint UID)
        {
            if (!
Kernel.GamePool.ContainsKey(UID))
            {
                
ReadyToPlay();
                
this.Account = new Database.AccountTable(null);
                
this.Account.EntityID UID;
                {
                    
#region Load Entity
                    
this.Entity = new Game.Entity(EntityFlag.Entityfalse);
                    
this.Entity.Name "ElitePK`Bot";
                    
this.Entity.Owner this;
                    
this.Entity.UID UID;
                    
this.Entity.Body EliteBody();
                    
this.Entity.Face = (ushort)Kernel.Random.Next(150);
                    
byte Color = (byte)Kernel.Random.Next(48);
                    
this.Entity.HairStyle = (ushort)(Color 100 10 + (byte)Kernel.Random.Next(49));
                    
this.Entity.Level 140;
                    
this.Entity.Class = 55;
                    
this.Entity.Reborn 2;
                    
this.Entity.Titles = new System.Collections.Concurrent.ConcurrentDictionary<TitlePacket.TitlesDateTime>();
                    
this.Entity.MyTitle = (TitlePacket.Titles)16;
                    
this.Entity.MapID ElitePKTournament.WaitingAreaID;
                    if (
this.VendingDisguise == 0)
                        
this.VendingDisguise 0xdf;
                    
this.Entity.50;
                    
this.Entity.50;
                    
uint WeaponR 601439;
                    
uint WeaponL 601439;
                    
uint Armor 135309;
                    
uint Head 123309;
                    
uint Garment 192685;
                    
this.ElitePKStats = new ElitePK.FighterStats(this.Entity.UIDthis.Entity.Namethis.Entity.Mesh);
                    if (!
Game.ConquerStructures.Nobility.Board.TryGetValue(this.Entity.UIDout this.NobilityInformation))
                    {
                        
this.NobilityInformation = new NobilityInformation();
                        
this.NobilityInformation.EntityUID this.Entity.UID;
                        
this.NobilityInformation.Name this.Entity.Name;
                        
this.NobilityInformation.Donation 0L;
                        
this.NobilityInformation.Rank NobilityRank.Serf;
                        
this.NobilityInformation.Position = -1;
                        
this.NobilityInformation.Gender 1;
                        
this.NobilityInformation.Mesh this.Entity.Mesh;
                        if ((
this.Entity.Body 10) >= 3)
                        {
                            
this.NobilityInformation.Gender 0;
                        }
                    }
                    else
                    {
                        
this.Entity.NobilityRank this.NobilityInformation.Rank;
                    }
                    
Arena.ArenaStatistics.TryGetValue(this.Entity.UIDout this.ArenaStatistic);
                    if ((
this.ArenaStatistic == null) || (this.ArenaStatistic.EntityID == 0))
                    {
                        
this.ArenaStatistic = new ArenaStatistic(true);
                        
this.ArenaStatistic.EntityID this.Entity.UID;
                        
this.ArenaStatistic.Name this.Entity.Name;
                        
this.ArenaStatistic.Level this.Entity.Level;
                        
this.ArenaStatistic.Class = this.Entity.Class;
                        
this.ArenaStatistic.Model this.Entity.Mesh;
                        
this.ArenaStatistic.ArenaPoints Database.ArenaTable.ArenaPointFill(this.Entity.Level);
                        
this.ArenaStatistic.LastArenaPointFill DateTime.Now;
                        
Database.ArenaTable.InsertArenaStatistic(this);
                        
this.ArenaStatistic.Status 0;
                        
Arena.ArenaStatistics.Add(this.Entity.UIDthis.ArenaStatistic);
                    }
                    else
                    {
                        
this.ArenaStatistic.Level this.Entity.Level;
                        
this.ArenaStatistic.Class = this.Entity.Class;
                        
this.ArenaStatistic.Model this.Entity.Mesh;
                        if (
DateTime.Now.DayOfYear != this.ArenaStatistic.LastArenaPointFill.DayOfYear)
                        {
                            
this.ArenaStatistic.LastSeasonArenaPoints this.ArenaStatistic.ArenaPoints;
                            
this.ArenaStatistic.LastSeasonWin this.ArenaStatistic.TodayWin;
                            
this.ArenaStatistic.LastSeasonLose this.ArenaStatistic.TodayBattles this.ArenaStatistic.TodayWin;
                            
this.ArenaStatistic.ArenaPoints Database.ArenaTable.ArenaPointFill(this.Entity.Level);
                            
this.ArenaStatistic.LastArenaPointFill DateTime.Now;
                            
this.ArenaStatistic.TodayWin 0;
                            
this.ArenaStatistic.TodayBattles 0;
                            
Arena.Sort();
                            
Arena.YesterdaySort();
                        }
                    }
                    
TeamArena.ArenaStatistics.TryGetValue(this.Entity.UIDout this.TeamArenaStatistic);
                    if (
this.TeamArenaStatistic == null)
                    {
                        
this.TeamArenaStatistic = new TeamArenaStatistic(true);
                        
this.TeamArenaStatistic.EntityID this.Entity.UID;
                        
this.TeamArenaStatistic.Name this.Entity.Name;
                        
this.TeamArenaStatistic.Level this.Entity.Level;
                        
this.TeamArenaStatistic.Class = this.Entity.Class;
                        
this.TeamArenaStatistic.Model this.Entity.Mesh;
                        
Database.TeamArenaTable.InsertArenaStatistic(this);
                        
this.TeamArenaStatistic.Status 0;
                        if (
TeamArena.ArenaStatistics.ContainsKey(this.Entity.UID))
                        {
                            
TeamArena.ArenaStatistics.Remove(this.Entity.UID);
                        }
                        
TeamArena.ArenaStatistics.Add(this.Entity.UIDthis.TeamArenaStatistic);
                    }
                    else if (
this.TeamArenaStatistic.EntityID == 0)
                    {
                        
this.TeamArenaStatistic = new TeamArenaStatistic(true);
                        
this.TeamArenaStatistic.EntityID this.Entity.UID;
                        
this.TeamArenaStatistic.Name this.Entity.Name;
                        
this.TeamArenaStatistic.Level this.Entity.Level;
                        
this.TeamArenaStatistic.Class = this.Entity.Class;
                        
this.TeamArenaStatistic.Model this.Entity.Mesh;
                        
Database.TeamArenaTable.InsertArenaStatistic(this);
                        
this.TeamArenaStatistic.Status 0;
                        if (
TeamArena.ArenaStatistics.ContainsKey(this.Entity.UID))
                        {
                            
TeamArena.ArenaStatistics.Remove(this.Entity.UID);
                        }
                        
TeamArena.ArenaStatistics.Add(this.Entity.UIDthis.TeamArenaStatistic);
                    }
                    else
                    {
                        
this.TeamArenaStatistic.Level this.Entity.Level;
                        
this.TeamArenaStatistic.Class = this.Entity.Class;
                        
this.TeamArenaStatistic.Model this.Entity.Mesh;
                        
this.TeamArenaStatistic.Name this.Entity.Name;
                    }
                    
Database.DetainedItemTable.LoadDetainedItems(this);
                    
Database.ClaimItemTable.LoadClaimableItems(this);
                    
this.Entity.LoadTopStatus();
                    
this.Entity.FullyLoaded true;

                    
#endregion
                    
if (this.Entity.FullyLoaded)
                    {
                        
VariableVault variables;
                        
Database.EntityVariableTable.Load(this.Account.EntityIDout variables);
                        
this.Variables variables;

                        if (
this.BackupArmorLook != 0)
                            
this.SetNewArmorLook(this.BackupArmorLook);
                        else
                            
this.SetNewArmorLook(this.ArmorLook);
                        
this.SetNewHeadgearLook(this.HeadgearLook);
                        
this.BackupArmorLook 0;

                        
this.LoadData(true);

                        if (
this.Entity.GuildID != 0)
                            
this.Entity.GuildBattlePower this.Guild.GetSharedBattlepower(this.Entity.GuildRank);
                        
this.ReviewMentor();
                        
Network.PacketHandler.LoginMessages(this);

                        
#region Equip

                        
ConquerItem item7 null;
                        
ClientEquip equip null;
                        if (
WeaponR 0)
                        {
                            
Database.ConquerItemBaseInformation CIBI Database.ConquerItemInformation.BaseInformations[WeaponR];
                            if (
CIBI == null) return;
                            
item7 = new ConquerItem(true);
                            
item7.ID WeaponR;
                            
item7.UID AuthClient.nextID;
                            
AuthClient.nextID++;
                            
item7.Position 4;
                            
item7.Durability CIBI.Durability;
                            
item7.MaximDurability CIBI.Durability;
                            
this.Equipment.Remove(4);
                            if (
this.Equipment.Objects[3] != null)
                            {
                                
this.Equipment.Objects[3] = null;
                            }
                            
this.Equipment.Add(item7);
                            
item7.Mode Enums.ItemMode.Update;
                            
item7.Send(this);
                            
equip = new ClientEquip();
                            
equip.DoEquips(this);
                            
this.Send(equip);
                            
this.Equipment.UpdateEntityPacket();

                        }
                        if (
WeaponL 0)
                        {
                            
Database.ConquerItemBaseInformation CIBI Database.ConquerItemInformation.BaseInformations[WeaponL];
                            if (
CIBI == null) return;
                            
item7 = new ConquerItem(true);
                            
item7.ID WeaponL;
                            
item7.UID AuthClient.nextID;
                            
AuthClient.nextID++;
                            
item7.Position 5;
                            
item7.Durability CIBI.Durability;
                            
item7.MaximDurability CIBI.Durability;
                            
this.Equipment.Remove(5);
                            if (
this.Equipment.Objects[4] != null)
                            {
                                
this.Equipment.Objects[4] = null;
                            }
                            
this.Equipment.Add(item7);
                            
item7.Mode Enums.ItemMode.Update;
                            
item7.Send(this);
                            
equip = new ClientEquip();
                            
equip.DoEquips(this);
                            
this.Send(equip);
                            
this.Equipment.UpdateEntityPacket();
                        }

                        if (
Armor 0)
                        {
                            
Database.ConquerItemBaseInformation CIBI Database.ConquerItemInformation.BaseInformations[Armor];
                            if (
CIBI == null) return;
                            
item7 = new ConquerItem(true);
                            
item7.ID Armor;
                            
item7.UID AuthClient.nextID;
                            
AuthClient.nextID++;
                            
item7.Position 3;
                            
item7.Durability CIBI.Durability;
                            
item7.MaximDurability CIBI.Durability;
                            
this.Equipment.Remove(3);
                            if (
this.Equipment.Objects[2] != null)
                            {
                                
this.Equipment.Objects[2] = null;
                            }
                            
this.Equipment.Add(item7);
                            
item7.Mode Enums.ItemMode.Update;
                            
item7.Send(this);
                            
equip = new ClientEquip();
                            
equip.DoEquips(this);
                            
this.Send(equip);
                            
this.Equipment.UpdateEntityPacket();

                        }

                        if (
Head 0)
                        {
                            
Database.ConquerItemBaseInformation CIBI Database.ConquerItemInformation.BaseInformations[Head];
                            if (
CIBI == null) return;
                            
item7 = new ConquerItem(true);
                            
item7.ID Head;
                            
item7.UID AuthClient.nextID;
                            
AuthClient.nextID++;
                            
item7.Position 1;
                            
item7.Durability CIBI.Durability;
                            
item7.MaximDurability CIBI.Durability;
                            
this.Equipment.Remove(1);
                            if (
this.Equipment.Objects[0] != null)
                            {
                                
this.Equipment.Objects[0] = null;
                            }
                            
this.Equipment.Add(item7);
                            
item7.Mode Enums.ItemMode.Update;
                            
item7.Send(this);
                            
equip = new ClientEquip();
                            
equip.DoEquips(this);
                            
this.Send(equip);
                            
this.Equipment.UpdateEntityPacket();

                        }

                        if (
Garment 0)
                        {
                            
Database.ConquerItemBaseInformation CIBI Database.ConquerItemInformation.BaseInformations[Garment];
                            if (
CIBI == null) return;
                            
item7 = new ConquerItem(true);
                            
item7.ID Garment;
                            
item7.UID AuthClient.nextID;
                            
AuthClient.nextID++;
                            
item7.Position 9;
                            
item7.Durability CIBI.Durability;
                            
item7.MaximDurability CIBI.Durability;
                            
this.Equipment.Remove(9);
                            if (
this.Equipment.Objects[8] != null)
                            {
                                
this.Equipment.Objects[8] = null;
                            }
                            
this.Equipment.Add(item7);
                            
item7.Mode Enums.ItemMode.Update;
                            
item7.Send(this);
                            
equip = new ClientEquip();
                            
equip.DoEquips(this);
                            
this.Send(equip);
                            
this.Equipment.UpdateEntityPacket();
                        }

                        
#endregion Equip


                        
Program.World.Register(this);
                        
Kernel.GamePool.Add(Entity.UIDthis);
                        
FakeLoaded true;
                        
LoggedIn true;
                        
Entity.NobilityRank NobilityInformation.Rank;
                        
this.Entity.MinAttack 20000;
                        
this.Entity.MaxAttack 23200;
                        
this.Attackable true;


                    }

                }
            }
        } 

بعدها ادخل علي Lobby.cs

سيرش علي
كود:
#region Attack 

بدله ب ده

كود:
 #region Attack


                                        
if (Now client.Entity.AttackStamp.AddSeconds(1))
                                        {
                                            if (
SomailProject.MyMath.Success(ai.ShootChance))
                                            {
                                                var 
dist Kernel.GetDistance(Bot.Entity.XBot.Entity.YTarget.XTarget.Y);
                                                var 
spelldist SpellTable.SpellInformations[spell.ID][spell.Level].Range;
                                                if (
dist spelldist)
                                                {
                                                    var 
interact = new Attack(true);
                                                    
interact.AttackType Attack.Magic;
                                                    
interact.MagicType spell.ID;
                                                    
interact.Attacker Bot.Entity.UID;
                                                    
interact.Attacked Target.UID;
                                                    
interact.MagicLevel spell.Level;
                                                    
interact.Decoded true;
                                                    if (
SomailProject.MyMath.Success(ai.Accuracy))
                                                    {
                                                        
interact.Target.X;
                                                        
interact.Target.Y;
                                                    }
                                                    else
                                                    {
                                                        
interact.= (ushort)(Target.1);
                                                        
interact.= (ushort)(Target.1);
                                                    }
                                                    
Bot.Entity.MinAttack 5000;
                                                    
Bot.Entity.MaxAttack 7300;
                                                    
Bot.Entity.AttackPacket interact;
                                                    
interact.Damage 7000;
                                                    new 
SomailProject.Game.Attacking.Handle(interactBot.EntityTarget);
                                                    
                                                    
                                                }
                                                
//if (dist < 2)
                                                //{
                                                //    var interact = new Attack(true);
                                                //    interact.AttackType = Attack.Melee;
                                                //    interact.Attacker = Bot.Entity.UID;
                                                //    interact.Attacked = Target.UID;
                                                //    if (Kernel.ChanceSuccess(ai.Accuracy))
                                                //    {
                                                //        interact.X = Target.X;
                                                //        interact.Y = Target.Y;
                                                //    }
                                                //    else
                                                //    {
                                                //        interact.X = (ushort)(Target.X + 1);
                                                //        interact.Y = (ushort)(Target.Y + 1);
                                                //    }
                                                //    Bot.Entity.AttackPacket = interact;
                                                //    new SomailProject.Game.Attacking.Handle(interact, Bot.Entity, Target);
                                                //}
                                            
}
                                        }
                                        
#endregion 


قديم 2019-09-21, 11:55 PM
المشاركة 3
ابو مروان
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: بعد اذن الرجاله محتاج كود يقلل ضربة ال Bot بتاح الحروب
الله يسترك

قديم 2019-11-06, 04:03 AM
المشاركة 4
Omar Mohamed100
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: بعد اذن الرجاله محتاج كود يقلل ضربة ال Bot بتاح الحروب
انت شغال بي سورس مين يسطا عشان عايز اسحب سيستم البوت
وي انت البوت شغال عند في Team & Skill & Elite شغال عندك ف ال 3 ؟


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



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

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

المواضيع المتشابهه للموضوع: بعد اذن الرجاله محتاج كود يقلل ضربة ال Bot بتاح الحروب
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
بعد ازن الرجاله حل المشكله دي سورس ماتركس toteo3344 مشكلات السيرفيرات كونكر الشخصيه 8 2020-05-16 09:11 AM
في مشكله ياريت حل بعد ازن الرجاله Amr Khalid مشكلات السيرفيرات كونكر الشخصيه 2 2020-05-02 02:44 AM
يا رجاله كل الرجاله تخش وتشوف المشكله دي حله اي؟ Mr3bdallahPro مشكلات السيرفيرات كونكر الشخصيه 1 2020-04-16 08:36 AM
مشكله في اسكله جننتني بعد ازن الرجاله حل ahmedshetos7171 مشكلات السيرفيرات كونكر الشخصيه 2 2020-01-23 08:20 AM
بعد اذنك الرجاله مشكله بسيطه Eslamahmed مشكلات السيرفيرات كونكر الشخصيه 16 2019-08-05 04:16 AM


الساعة الآن 01:09 AM

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