قديم 2020-01-25, 04:39 PM
المشاركة 2
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: محتاج اسكلة tornado

كود:
#region Single magic damage spells
                               
                                
case 1002:
                               
                                    {
                                        if (
CanUseSpell(spellattacker.Owner))
                                        {
                                            if (
spell.ID == 10310)
                                            {
                                                if (
Time32.Now attacker.EagleEyeStamp.AddSeconds(20))
                                                    return;
                                                
attacker.EagleEyeStamp Time32.Now;
                                            }
                                            if (
attacked != null)
                                            {
                                                if (
Kernel.GetDistance(attacker.Xattacker.Yattacked.Xattacked.Y) <= spell.Distance)
                                                {

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

                                                    if (
CanAttack(attackerattackedspellattack.AttackType == Attack.Melee))
                                                    {
                                                        
PrepareSpell(spellattacker.Owner);
                                                        
attack.Effect1 Attack.AttackEffects1.None;
                                                        
uint damage Game.Attacking.Calculate.Melee(attackerattackedspellref attackclient_Spell.LevelHu2);
                                                        
damage = (uint)(damage .8);
                                                        if (
spell.ID == 11030)
                                                        {
                                                            
attack.Effect1 Attack.AttackEffects1.None;
                                                            
damage Game.Attacking.Calculate.Melee(attackerattackedspellref attack);
                                                        }
                                                        
suse.Effect1 attack.Effect1;

                                                        
suse.Effect1 attack.Effect1;

                                                        
ReceiveAttack(attackerattackedattackref damagespell);
                                                        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(attackerattackedspellref attackclient_Spell.LevelHu2);
                                                                
damage = (uint)(damage 1);

                                                            }
                                                        }
                                                        
suse.AddTarget(attackeddamageattack);
                                                        
attacker.Owner.Player.IsEagleEyeShooted true;

                                                        if (
attacked.EntityFlag == EntityFlag.Entity)
                                                            
attacked.Owner.SendScreen(susetrue);
                                                        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 
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 11030attack);
                                                                    if (
attacker.EntityFlag == EntityFlag.Entity)
                                                                    {
                                                                        
attacker.Owner.SendScreen(ssusetrue);
                                                                    }

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

                                                    if (
CanAttack(attackerattackedsobspell))
                                                    {
                                                        
PrepareSpell(spellattacker.Owner);
                                                        
attack.Effect1 Attack.AttackEffects1.None;
                                                        
uint damage Game.Attacking.Calculate.Magic(attackerattackedsobspellref attack);
                                                        
suse.Effect1 attack.Effect1;

                                                        
ReceiveAttack(attackerattackedsobattackdamagespell);

                                                        
suse.AddTarget(attackedsobdamageattack);

                                                        
attacker.Owner.SendScreen(susetrue);
                                                    }
                                                }
                                            }
                                        }
                                        else
                                        {
                                            
attacker.AttackPacket null;
                                        }
                                        break;
                                    }
                                
#endregion 



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



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

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

المواضيع المتشابهه للموضوع: محتاج اسكلة tornado
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
لو سمحت محتاج مساعدة انا محتاج اتعلم ازاى اعدل على سورسات كونكر وافكسدها fersony مشكلات السيرفيرات كونكر الشخصيه 2 2020-03-09 01:46 PM
اسكلة الرون مجدى مشكلات السيرفيرات كونكر الشخصيه 1 2020-01-31 04:59 PM
حل مشكله اسكلة ShadowClone Tefa تطوير سيرفرات كونكر 2 2019-10-24 02:55 PM
مشكلة فى اسكلة ShadowClone osama مشكلات السيرفيرات كونكر الشخصيه 2 2019-08-05 09:10 AM
مشكلة في اسكلة SuperTwofoldBlade ElSaher مشكلات السيرفيرات كونكر الشخصيه 4 2019-08-04 12:34 PM


الساعة الآن 11:20 AM

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