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

الردود
0

المشاهدات
952
 
ElSaher

ElSaher is on a distinguished road

    غير متواجد

المشاركات
1,998

+التقييم
0.94

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

الاقامة

نظام التشغيل

رقم العضوية
279
2020-02-04, 01:08 AM
المشاركة 1 
#1  
Arrow حل مشكلة ان الاميل بيرقص لما يبندرب بي اسكلت SuperTwofoldBlade

ناس كتير هيقبلها المشكلة دي احل مشكلة ان الاميل بيرقص لما يبندرب بي اسكلت SuperTwofoldBlade
الحل اهو

هتبحث عن الايديه بتاع الاسكلت في Handle

كود:
12080 

هقفلها بي السالب وتغيرها بدي

كود:
                                #region SuperTwofoldBlade
                                
case 12080:
                                    {
                                        if (
Time32.Now >= attacker.SpellStamp.AddMilliseconds(500))
                                        {
                                            if (
CanUseSpell(spellattacker.Owner))
                                            {
                                                
ushort XxYx;
                                                if (
attacked != null)
                                                {
                                                    
Xx attacked.X;
                                                    
Yx attacked.Y;
                                                }
                                                else
                                                {
                                                    
Xx attackedsob.X;
                                                    
Yx attackedsob.Y;
                                                }
                                                if (
Kernel.GetDistance(attacker.Xattacker.YXxYx) <= 5)
                                                {
                                                    if (
attackedsob == null)
                                                        if (
attacked.ContainsFlag(Update.Flags.Fly))
                                                            return;
                                                    if (
attacker.ContainsFlag(Update.Flags.Fly))
                                                        return;
                                                    
PrepareSpell(spellattacker.Owner);

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

                                                    if (
attackedsob == null)
                                                    {
                                                        if (
CanAttack(attackerattackedspellattack.AttackType == Attack.Melee))
                                                        {
                                                            
attack.Effect1 Attack.AttackEffects1.None;
                                                            
uint damage Game.Attacking.Calculate.Melee(attackerattackedref attack);
                                                            if (
attacker.NobilityRank == ElSaher.Game.ConquerStructures.NobilityRank.King)
                                                            {
                                                                
damage = (uint)(damage 1.750);
                                                            }
                                                            if (
attacker.NobilityRank == ElSaher.Game.ConquerStructures.NobilityRank.Prince)
                                                            {
                                                                
damage = (uint)(damage 1.600);
                                                            }
                                                            if (
attacker.NobilityRank == ElSaher.Game.ConquerStructures.NobilityRank.Duke)
                                                            {
                                                                
damage = (uint)(damage 1.600);
                                                            }
                                                            
suse.Effect1 attack.Effect1;
                                                            
ReceiveAttack(attackerattackedattackref damagespell);

                                                            
suse.AddTarget(attackeddamageattack);
                                                            
send true;

                                                            if (
attacker.Owner.Spells.ContainsKey(0) && !attacked.Dead)
                                                            {
                                                                var 
attacker.Owner.Spells[0];
                                                                var 
spellz Database.SpellTable.SpellInformations[s.ID][s.Level];
                                                                if (
spellz != null)
                                                                {
                                                                    if (
Kernel.Rate(spellz.Percent))
                                                                    {
                                                                        
SpellUse ssuse = new SpellUse(true);
                                                                        
ssuse.Attacker attacker.UID;
                                                                        
ssuse.SpellID spellz.ID;

                                                                        
ssuse.SpellLevel spellz.Level;
                                                                        
damage Game.Attacking.Calculate.Melee(attackerattackedref attack);
                                                                        
ssuse.AddTarget(attacked, new SpellUse.DamageClass().Damage damageattack);
                                                                        
ReceiveAttack(attackerattackedattackref damagespell);
                                                                        
attacker.Owner.SendScreen(ssusetrue);
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                    else
                                                    {
                                                        if (
CanAttack(attackerattackedsobspell))
                                                        {
                                                            
attack.Effect1 Attack.AttackEffects1.None;
                                                            
uint damage Game.Attacking.Calculate.Melee(attackerattackedsobref attack);
                                                            
damage = (uint)(damage 180 100);
                                                            
ReceiveAttack(attackerattackedsobattackdamagespell);
                                                            
suse.Effect1 attack.Effect1;

                                                            
suse.AddTarget(attackedsobdamageattack);
                                                            
send true;
                                                        }
                                                    }
                                                    if (
send)
                                                        
attacker.Owner.SendScreen(susetrue);
                                                    
attacker.SpellStamp Time32.Now;
                                                }
                                                else
                                                {
                                                    
attacker.AttackPacket null;
                                                }
                                            }
                                        }
                                        break;
                                    }


                                
#endregion 

حل 6ايرور هيجيلك
هتبدل ElSaher بي اسم البروجكت بتاعك
زبكدا يكون تم حل المشكلة