كونكر عرب

كونكر عرب (https://conquer-arab.com/index.php)
-   مشكلات السيرفيرات كونكر الشخصيه (https://conquer-arab.com/forumdisplay.php?f=12)
-   -   محتاج اسكلة tornado (https://conquer-arab.com/showthread.php?t=3444)

Mostafa Shalby 2020-01-25 04:33 PM

محتاج اسكلة tornado
 
ممكن حد يبعت اسكلة tornado بتاعت الفير

Rider 2020-01-25 04:39 PM

رد: محتاج اسكلة tornado
 
كود PHP:

#region Single magic damage spells
                               
                                
case 1002:
                               
                                    {
                                        if (
CanUseSpell(spell, attacker.Owner))
                                        {
                                            if (
spell.ID == 10310)
                                            {
                                                if (
Time32.Now > attacker.EagleEyeStamp.AddSeconds(20))
                                                    return;
                                                
attacker.EagleEyeStamp = Time32.Now;
                                            }
                                            if (
attacked != null)
                                            {
                                                if (
Kernel.GetDistance(attacker.X, attacker.Y, attacked.X, attacked.Y) <= spell.Distance)
                                                {

                                                    
SpellUse suse = new SpellUse(true);
                                                    
suse.Attacker = attacker.UID;
                                                    
suse.SpellID = spell.ID;
                                                    
suse.SpellLevel = spell.Level;
                                                    
suse.X = X;
                                                    
suse.Y = Y;

                                                    if (
CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
                                                    {
                                                        
PrepareSpell(spell, attacker.Owner);
                                                        
attack.Effect1 = Attack.AttackEffects1.None;
                                                        
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, spell, ref attack, client_Spell.LevelHu2);
                                                        
damage = (uint)(damage * .8);
                                                        if (
spell.ID == 11030)
                                                        {
                                                            
attack.Effect1 = Attack.AttackEffects1.None;
                                                            
damage = Game.Attacking.Calculate.Melee(attacker, attacked, spell, ref attack);
                                                        }
                                                        
suse.Effect1 = attack.Effect1;

                                                        
suse.Effect1 = attack.Effect1;

                                                        
ReceiveAttack(attacker, attacked, attack, ref damage, spell);
                                                        if (
Time32.Now >= attacker.SpellStamp.AddMilliseconds(1900))
                                                        {
                                                            if (
spell.ID == 1002)
                                                            {
                                                                if (
attacked.EntityFlag == EntityFlag.Entity)
                                                                    
attacked.Owner.BreakTouch(attacker.Owner);

                                                                
attack.Effect1 = Attack.AttackEffects1.None;
                                                                
damage = Game.Attacking.Calculate.Melee(attacker, attacked, spell, ref attack, client_Spell.LevelHu2);
                                                                
damage = (uint)(damage * 1);

                                                            }
                                                        }
                                                        
suse.AddTarget(attacked, damage, attack);
                                                        
attacker.Owner.Player.IsEagleEyeShooted = true;

                                                        if (
attacked.EntityFlag == EntityFlag.Entity)
                                                            
attacked.Owner.SendScreen(suse, true);
                                                        else
                                                            
attacked.MonsterInfo.SendScreen(suse);

                                                        var 
attackd = attacked as Entity;
                                                        if (
Kernel.BlackSpoted.ContainsKey(attackd.UID) && spell.ID == 11030)
                                                        {
                                                            
attacker.Owner.Player.IsEagleEyeShooted = false;
                                                            if (
attacker.Owner.Spells.ContainsKey(11130))
                                                            {
                                                                var 
s = attacker.Owner.Spells[11130];
                                                                var 
sspell = Database.SpellTable.SpellInformations[s.ID][s.Level];
                                                                if (
spell != null)
                                                                {
                                                                    
attacker.EagleEyeStamp = Time32.Now;
                                                                    
attacker.Owner.Player.IsEagleEyeShooted = false;
                                                                    
SpellUse ssuse = new SpellUse(true);
                                                                    
ssuse.Attacker = attacker.UID;
                                                                    
ssuse.SpellID = sspell.ID;
                                                                    
ssuse.SpellLevel = sspell.Level;
                                                                    
ssuse.AddTarget(attacker.Owner.Player, new SpellUse.DamageClass().Damage = 11030, attack);
                                                                    if (
attacker.EntityFlag == EntityFlag.Entity)
                                                                    {
                                                                        
attacker.Owner.SendScreen(ssuse, true);
                                                                    }

                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                                else
                                                {
                                                    
attacker.AttackPacket = null;
                                                }
                                            }
                                            else
                                            {
                                                if (
Kernel.GetDistance(attacker.X, attacker.Y, attackedsob.X, attackedsob.Y) <= spell.Distance)
                                                {
                                                    
SpellUse suse = new SpellUse(true);
                                                    
suse.Attacker = attacker.UID;
                                                    
suse.SpellID = spell.ID;
                                                    
suse.SpellLevel = spell.Level;
                                                    
suse.X = X;
                                                    
suse.Y = Y;

                                                    if (
CanAttack(attacker, attackedsob, spell))
                                                    {
                                                        
PrepareSpell(spell, attacker.Owner);
                                                        
attack.Effect1 = Attack.AttackEffects1.None;
                                                        
uint damage = Game.Attacking.Calculate.Magic(attacker, attackedsob, spell, ref attack);
                                                        
suse.Effect1 = attack.Effect1;

                                                        
ReceiveAttack(attacker, attackedsob, attack, damage, spell);

                                                        
suse.AddTarget(attackedsob, damage, attack);

                                                        
attacker.Owner.SendScreen(suse, true);
                                                    }
                                                }
                                            }
                                        }
                                        else
                                        {
                                            
attacker.AttackPacket = null;
                                        }
                                        break;
                                    }
                                
#endregion 



الساعة الآن 03:04 AM

مرحبا بكم في منتدي اكواد لتطوير الالعاب
new notificatio by 9adq_ala7sas