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

الردود
4

المشاهدات
2382
 
ابو مروان

ابو مروان is on a distinguished road

    غير متواجد

المشاركات
292

+التقييم
0.14

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

الاقامة

نظام التشغيل

رقم العضوية
486
2019-09-06, 04:15 PM
المشاركة 1 
#1  
Smiley3 بعد اذنك يا رايدر طلب بسيط لو سمحت بخصوص الاتاك
دالوقت انا لغيت حوار تظبيط اللسكلات ان هى تضرب كينج اصد كينج وبرينس اصد برنس والكلام دا
وكنت عايز اخليه بالكلاس مثلا كدا

كود:
if (attacker.IsMonk(attacker.Class))
                                                                
//if (attacker.NobilityRank == M.AzozProject.Game.ConquerStructures.NobilityRank.King)
                                                                
{
                                                                    
damage = (uint)(damage 100 1000);
                                                                } 

بس جربت كذا مرة اظبطها على كدا الكود مشتغلش صح يعني اللسكله دالوقت بالشكل دا

كود:
#region SuperTwofoldBlade
                                
case 12080:
                                    {
                                        if (
attacker.Stamina >= 10)
                                            
attacker.Stamina -= 10;
                                        if (
Time32.Now >= attacker.SpellStamp.AddMilliseconds(1000))
                                        {
                                            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) <= spell.Distance)
                                                {
                                                    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.IsMonk(attacker.Class))
                                                                
//if (attacker.NobilityRank == M.AzozProject.Game.ConquerStructures.NobilityRank.King)
                                                                
{
                                                                    
damage = (uint)(damage 100 1000);
                                                                }
                                                            if (
attacker.IsPirate(attacker.Class))
                                                            
//if (attacker.NobilityRank == M.AzozProject.Game.ConquerStructures.NobilityRank.King)
                                                            
{
                                                                    
damage = (uint)(damage 2.9);
                                                            }
                                                            
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 

والكود ال عملتو دا مش شغال
ممكن انت تظبطهولى على اساس ان اللسكله تضرب شخصيه معينه بالرقم الى انا عايزه ؟