عرض مشاركة واحدة
قديم 2019-08-26, 04:39 PM
المشاركة 5
MeGoo
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: طلب بخصوص ترابل اتاك الفزيكل
افتح كلاس world.cs وهتبحث عن الكود دا
كود:
 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((1000 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;
                }
            }
        } 

بس كدا تم حلها
تسلم ايدك و جارى التجربة