عرض مشاركة واحدة
احصائياتى

الردود
5

المشاهدات
3427
 
Users

Users is on a distinguished road

    غير متواجد

المشاركات
894

+التقييم
0.42

تاريخ التسجيل
Apr 2019

الاقامة

نظام التشغيل

رقم العضوية
115
2019-07-05, 09:21 PM
المشاركة 1 
#1  
افتراضي حل مشكله الضرب التلقائى فى العمود
بسم الله الرحمن الرحيم
موضوع جميل مقدم من العضو المميز حسن شكرا ليه
الضرب التلقائى
يعنى لما تسيب الاميل يضرب لوحدو فى البوله او الخشبه بيضرب ويقف
او ضربه كل كام ثانيه وانت عاوزه سريع
طيب ايه الحل
هتفتح كلاص

كود:
World 

تبحث عن كود

كود:
private void AutoAttackCallback(GameState clientint time

وهتبدل الكود بالكود ده

كود:
}
        private 
void AutoAttackCallback(GameState clientint time)
        {
            if (!
Valid(client)) return;
            
Time32 Now = new Time32(time);
            if (
client.Entity.AttackPacket != null || client.Entity.VortexAttackStamp != null)
            {
                try
                {
                    if (
client.Entity.ContainsFlag((ulong)Update.Flags.ShurikenVortex))
                    {
                        if (
client.Entity.VortexPacket != null && client.Entity.VortexPacket.ToArray() != null)
                        {
                            if (
Now client.Entity.VortexAttackStamp.AddMilliseconds(1400))
                            {
                                
client.Entity.VortexAttackStamp Now;
                                new 
Game.Attacking.Handle(client.Entity.VortexPacketclient.Entitynull);
                            }
                        }
                    }
                    else
                    {
                        
client.Entity.VortexPacket null;
                        var 
AttackPacket client.Entity.AttackPacket;
                        if (
AttackPacket != null && AttackPacket.ToArray() != null)
                        {
                            
uint AttackType AttackPacket.AttackType;
                            if (
AttackType == Attack.Magic || AttackType == Attack.Melee || AttackType == Attack.Ranged)
                            {
                                if (
AttackType == Attack.Magic)
                                {
                                    if (
Now client.Entity.AttackStamp.AddSeconds(1))
                                    {
                                        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 != 12210)
                                            new 
Game.Attacking.Handle(AttackPacketclient.Entitynull);
                                    }
                                }
                                else
                                {
                                    
int decrease = -300;
                                    if (
client.Entity.OnCyclone())
                                        
decrease 700;
                                    if (
client.Entity.OnSuperman())
                                        
decrease 200;
                                    if (
Now client.Entity.AttackStamp.AddMilliseconds((300 client.Entity.Agility decrease) * (int)(AttackType == Attack.Ranged 1)))
                                    {
                                        new 
Game.Attacking.Handle(AttackPacketclient.Entitynull);
                                    }
                                }
                            }
                        }
                    }
                }
                catch (
Exception e)
                {
                    
Program.SaveException(e);
                    
client.Entity.AttackPacket null;
                    
client.Entity.VortexPacket null;
                }
            }
        } 


لو فى اى مشكله ممكن تكتبها فى التعليقات
شكرا لكم جميعا