قديم 2020-04-05, 03:03 AM
المشاركة 2
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكلة الاتاك handel احمد فتحي ارجو الحل بعد اذنكم
بدل ده بالي عندك

كود:
 private void AutoAttackCallback(GameState clientint time)
        {
            if (!
Valid(client)) return;
            
Time32 Now = new Time32(time);
            
#region WaniacDance
            
if (client.Player.EpicWarrior() && client.Player.ContainsFlag3(Update.Flags3.WaniacDance))
            {
                var 
spell Database.SpellTable.GetSpell(12700client);
                
SpellUse suse = new SpellUse(true);
                
suse.Attacker client.Player.UID;
                
suse.SpellID 12700;
                
suse.client.Player.X;
                
suse.client.Player.Y;
                foreach (var 
obj in client.Screen.Objects)
                {
                    if (
obj == null) continue;
                    var 
attacked obj as Entity;
                    if (
attacked == null) continue;
                    if (
Kernel.GetDistance(client.Player.Xclient.Player.Yattacked.Xattacked.Y) < 6)
                    {
                        if (
Game.Attacking.Handle.CanAttack(client.Playerattackednulltrue))
                        {
                            var 
attack = new Attack(true);
                            
attack.Attacker client.Player.UID;
                            
attack.Attacked attacked.UID;

                            
uint damage Game.Attacking.Calculate.Melee(client.Playerattackedspellref attack);
                            
attack.Damage damage;
                            
attack.SpellID 12700;
                            
suse.Effect1 attack.Effect1;

                            
Game.Attacking.Handle.ReceiveAttack(client.Playerattackedattackref damagespell);

                            
suse.AddTarget(attackeddamageattack);
                        }
                    }
                }
                
client.SendScreen(susetrue);
            }
            
#endregion
            
if (client.Player.AttackPacket != null || client.Player.VortexPacket != null)
            {
                try
                {
                    if (
client.Player.ContainsFlag(Network.GamePackets.Update.Flags.ShurikenVortex))
                    {
                        if (
client.Player.VortexPacket != null && client.Player.VortexPacket.ToArray() != null)
                        {
                            if (
Now client.Player.VortexAttackStamp.AddMilliseconds(1))
                            {
                                
client.Player.VortexAttackStamp Now;
                                
client.Player.VortexPacket.AttackType Attack.Magic;
                                new 
Game.Attacking.Handle(client.Player.VortexPacketclient.Playernull);
                            }
                        }
                    }
                    else
                    {
                        var 
AttackPacket client.Player.AttackPacket;
                        if (
AttackPacket != null && AttackPacket.ToArray() != null)
                        {
                            
uint AttackType AttackPacket.AttackType;
                            if (
AttackType == Network.GamePackets.Attack.Magic || AttackType == Network.GamePackets.Attack.Melee || AttackType == Network.GamePackets.Attack.Ranged)
                            {
                                if (
AttackType == Network.GamePackets.Attack.Magic)
                                {
                                    if (
Now client.Player.AttackStamp.AddSeconds(2))
                                    {
                                        if (
AttackPacket.Damage != 12160 &&
                                            
AttackPacket.Damage != 12170 &&
                                            
AttackPacket.Damage != 12120 &&
                                            
AttackPacket.Damage != 12130 &&
                                            
AttackPacket.Damage != 12140 &&
                                            
AttackPacket.Damage != 12320 &&
                                            
AttackPacket.Damage != 12330 &&
                                            
AttackPacket.Damage != 12340 &&
                                            
AttackPacket.Damage != 12570 &&
                                            
AttackPacket.Damage != 12210)
                                        {
                                            new 
Game.Attacking.Handle(AttackPacketclient.Playernull);
                                        }
                                    }
                                }

                                else
                                {
                                    
int decrease = -300;
                                    if (
client.Player.ContainsFlag4(Update.Flags4.xFreezingPelter)) decrease += 1000;
                                    if (
client.Player.OnCyclone())
                                        
decrease 700;
                                    if (
client.Player.OnSuperman())
                                        
decrease 200;
                                    if (
Now client.Player.AttackStamp.AddMilliseconds((1000 client.Player.Agility decrease) * (int)(AttackType == Network.GamePackets.Attack.Ranged 1)))
                                    {
                                        new 
Game.Attacking.Handle(AttackPacketclient.Playernull);
                                    }
                                }
                            }
                        }
                    }
                }
                catch (
Exception e)
                {
                    
Program.SaveException(e);
                    
client.Player.AttackPacket null;
                    
client.Player.VortexPacket null;
                }
            }
        } 


قديم 2020-04-05, 03:53 AM
المشاركة 3
Abod ayman
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مشكلة الاتاك handel احمد فتحي ارجو الحل بعد اذنكم
بدل ده بالي عندك

كود:
 private void AutoAttackCallback(GameState clientint time)
        {
            if (!
Valid(client)) return;
            
Time32 Now = new Time32(time);
            
#region WaniacDance
            
if (client.Player.EpicWarrior() && client.Player.ContainsFlag3(Update.Flags3.WaniacDance))
            {
                var 
spell Database.SpellTable.GetSpell(12700client);
                
SpellUse suse = new SpellUse(true);
                
suse.Attacker client.Player.UID;
                
suse.SpellID 12700;
                
suse.client.Player.X;
                
suse.client.Player.Y;
                foreach (var 
obj in client.Screen.Objects)
                {
                    if (
obj == null) continue;
                    var 
attacked obj as Entity;
                    if (
attacked == null) continue;
                    if (
Kernel.GetDistance(client.Player.Xclient.Player.Yattacked.Xattacked.Y) < 6)
                    {
                        if (
Game.Attacking.Handle.CanAttack(client.Playerattackednulltrue))
                        {
                            var 
attack = new Attack(true);
                            
attack.Attacker client.Player.UID;
                            
attack.Attacked attacked.UID;

                            
uint damage Game.Attacking.Calculate.Melee(client.Playerattackedspellref attack);
                            
attack.Damage damage;
                            
attack.SpellID 12700;
                            
suse.Effect1 attack.Effect1;

                            
Game.Attacking.Handle.ReceiveAttack(client.Playerattackedattackref damagespell);

                            
suse.AddTarget(attackeddamageattack);
                        }
                    }
                }
                
client.SendScreen(susetrue);
            }
            
#endregion
            
if (client.Player.AttackPacket != null || client.Player.VortexPacket != null)
            {
                try
                {
                    if (
client.Player.ContainsFlag(Network.GamePackets.Update.Flags.ShurikenVortex))
                    {
                        if (
client.Player.VortexPacket != null && client.Player.VortexPacket.ToArray() != null)
                        {
                            if (
Now client.Player.VortexAttackStamp.AddMilliseconds(1))
                            {
                                
client.Player.VortexAttackStamp Now;
                                
client.Player.VortexPacket.AttackType Attack.Magic;
                                new 
Game.Attacking.Handle(client.Player.VortexPacketclient.Playernull);
                            }
                        }
                    }
                    else
                    {
                        var 
AttackPacket client.Player.AttackPacket;
                        if (
AttackPacket != null && AttackPacket.ToArray() != null)
                        {
                            
uint AttackType AttackPacket.AttackType;
                            if (
AttackType == Network.GamePackets.Attack.Magic || AttackType == Network.GamePackets.Attack.Melee || AttackType == Network.GamePackets.Attack.Ranged)
                            {
                                if (
AttackType == Network.GamePackets.Attack.Magic)
                                {
                                    if (
Now client.Player.AttackStamp.AddSeconds(2))
                                    {
                                        if (
AttackPacket.Damage != 12160 &&
                                            
AttackPacket.Damage != 12170 &&
                                            
AttackPacket.Damage != 12120 &&
                                            
AttackPacket.Damage != 12130 &&
                                            
AttackPacket.Damage != 12140 &&
                                            
AttackPacket.Damage != 12320 &&
                                            
AttackPacket.Damage != 12330 &&
                                            
AttackPacket.Damage != 12340 &&
                                            
AttackPacket.Damage != 12570 &&
                                            
AttackPacket.Damage != 12210)
                                        {
                                            new 
Game.Attacking.Handle(AttackPacketclient.Playernull);
                                        }
                                    }
                                }

                                else
                                {
                                    
int decrease = -300;
                                    if (
client.Player.ContainsFlag4(Update.Flags4.xFreezingPelter)) decrease += 1000;
                                    if (
client.Player.OnCyclone())
                                        
decrease 700;
                                    if (
client.Player.OnSuperman())
                                        
decrease 200;
                                    if (
Now client.Player.AttackStamp.AddMilliseconds((1000 client.Player.Agility decrease) * (int)(AttackType == Network.GamePackets.Attack.Ranged 1)))
                                    {
                                        new 
Game.Attacking.Handle(AttackPacketclient.Playernull);
                                    }
                                }
                            }
                        }
                    }
                }
                catch (
Exception e)
                {
                    
Program.SaveException(e);
                    
client.Player.AttackPacket null;
                    
client.Player.VortexPacket null;
                }
            }
        } 
جربت ومتحلتش المشكلة ممكن كود غيره
انا عملت افضل اجابة لاني كنت واثق في حلك بس منفعش للاسف xD

قديم 2020-04-05, 09:26 AM
المشاركة 4
ahmedfathy
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: مشكلة الاتاك handel احمد فتحي ارجو الحل بعد اذنكم
مع احترامي لكل اللي رد لحل المشكلة

ملوش دعوة ملف Handel خالص بي المشكلة بتعتك والموضوع سهل وبسيط بس انت متاكد ان في مشكلة في التربيل اصلآ ولا لا
ابعتلي موقع السيرفر بتعاك وانا هنزل اجرب

ولو في مشكلة هبعتلك حلها دلؤتي هنا ممكن نعدل علي الاضافة بتعت الاسكله وممكن نمسح الاسكله خالص ونزلهالك من اول وجديد

بس انت ابعتلي موقع لعبتك اتاكد في مشكلة اصلآ ولا لا

لان تقيمك للسكله ممكن يكون غلط


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



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

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

المواضيع المتشابهه للموضوع: مشكلة الاتاك handel احمد فتحي ارجو الحل بعد اذنكم
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
ازاي اخلي الدم يتراكم فوق بعض ..بعد اذنكم Abod ayman مشكلات السيرفيرات كونكر الشخصيه 5 2020-05-02 11:54 PM
مشكلة بخصوص الجناح ارجو الحل ضروري جدا بعد اذنكم Abod ayman مشكلات السيرفيرات كونكر الشخصيه 5 2020-04-04 08:10 PM
مشكلة كونكر تهيس ارجو الرد بعد اذنكم Abod ayman مشكلات السيرفيرات كونكر الشخصيه 3 2020-03-28 01:04 PM
مشكله فى سورس احمد فتحى ارجو الحل taha مشكلات السيرفيرات كونكر الشخصيه 2 2019-12-09 03:05 AM
مشكلة فى الاتاك كله بايظ خالص من فضلكم محتاج الحل ضرورى ViORX مشكلات السيرفيرات كونكر الشخصيه 9 2019-09-03 05:20 PM


الساعة الآن 09:06 PM

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