قديم 2020-04-30, 10:27 PM
المشاركة 2
AliNasser
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: مشكله بخصوص الاتاك
ياما في كلاس هاندل هتلاقي تحت الاسكله الانت عاوز تعدلها كود بتاع اتاك الكنج وباقي الرنكات

لو ملقتش هتلاقي الكود في كلاس calculate دور عليه وشيله خالص في الحالتين

قديم 2020-05-01, 12:52 AM
المشاركة 3
Mr NemNem
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مشكله بخصوص الاتاك
ياما في كلاس هاندل هتلاقي تحت الاسكله الانت عاوز تعدلها كود بتاع اتاك الكنج وباقي الرنكات

لو ملقتش هتلاقي الكود في كلاس calculate دور عليه وشيله خالص في الحالتين
للاسف مش موجود اكواد الرانكات هل فى حل تاني

قديم 2020-05-01, 01:17 AM
المشاركة 4
AliNasser
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: مشكله بخصوص الاتاك
ابعت اكواد الكلاسين هنا

game/attacking/handle.cs
game/attacking/calculate.cs

قديم 2020-05-01, 01:52 AM
المشاركة 5
ElSaher
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكله بخصوص الاتاك
هتروح علي الاسكلت
الي انتا عايز تعدل عليها لي الكنج واكيد هتلاقي كنج برنس دوك
مسلن اسكلت الننجا

كود:
 #region SuperTwofoldBlade
                                
case 12080

هتلاقي الاكواد دي
هتلاقي الاكواد دي

كود:
if (attacker.NobilityRank == AbdoRedaGxV4.Game.ConquerStructures.NobilityRank.King)
                                                            {
                                                                
damage = (uint)(damage 0.950);
                                                            }
                                                            if (
attacker.NobilityRank == AbdoRedaGxV4.Game.ConquerStructures.NobilityRank.Prince)
                                                            {
                                                                
damage = (uint)(damage 0.960);
                                                            }
                                                            if (
attacker.NobilityRank == AbdoRedaGxV4.Game.ConquerStructures.NobilityRank.Duke)
                                                            {
                                                                
damage = (uint)(damage 0.930);
                                                            }
                                                            if (
attacker.NobilityRank == AbdoRedaGxV4.Game.ConquerStructures.NobilityRank.Earl)
                                                            {
                                                                
damage = (uint)(damage 0.930);
                                                            }
                                                            if (
attacker.NobilityRank == AbdoRedaGxV4.Game.ConquerStructures.NobilityRank.Baron)
                                                            {
                                                                
damage = (uint)(damage 0.750);
                                                            }
                                                            if (
attacker.NobilityRank == AbdoRedaGxV4.Game.ConquerStructures.NobilityRank.Knight)
                                                            {
                                                                
damage = (uint)(damage 0.750);
                                                            }
                                                            if (
attacker.NobilityRank == AbdoRedaGxV4.Game.ConquerStructures.NobilityRank.Serf)
                                                            {
                                                                
damage = (uint)(damage 0.300);
                                                            } 

دا اتاك الكنج

كود:
if (attacker.NobilityRank == AbdoRedaGxV4.Game.ConquerStructures.NobilityRank.King)
                                                            {
                                                                
damage = (uint)(damage 0.950);
                                                            } 

التعديل هيكون علي الرقم دا
0.950
هتنقص هيوطي هتعلي هيعلا
تحتو هتلاثي Prince
تحت البرنس هتلاقي Duke
تحت الدوك هتلاقي Earl
تحت الايرل هتلاقي Baron
ولو انتا سيرفرك صعب
كنج برنس دوك

كود:
                                #region SuperTwofoldBlade
                                
case 12080:
                                    {
                                        if (
Time32.Now >= attacker.SpellStamp.AddMilliseconds(600))
                                        {
                                            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 == AbdoRedaGxV4.Game.ConquerStructures.NobilityRank.King)
                                                            {
                                                                
damage = (uint)(damage 0.950);
                                                            }
                                                            if (
attacker.NobilityRank == AbdoRedaGxV4.Game.ConquerStructures.NobilityRank.Prince)
                                                            {
                                                                
damage = (uint)(damage 0.960);
                                                            }
                                                            if (
attacker.NobilityRank == AbdoRedaGxV4.Game.ConquerStructures.NobilityRank.Duke)
                                                            {
                                                                
damage = (uint)(damage 0.930);
                                                            }
                                                            if (
attacker.NobilityRank == AbdoRedaGxV4.Game.ConquerStructures.NobilityRank.Earl)
                                                            {
                                                                
damage = (uint)(damage 0.930);
                                                            }
                                                            if (
attacker.NobilityRank == AbdoRedaGxV4.Game.ConquerStructures.NobilityRank.Baron)
                                                            {
                                                                
damage = (uint)(damage 0.750);
                                                            }
                                                            if (
attacker.NobilityRank == AbdoRedaGxV4.Game.ConquerStructures.NobilityRank.Knight)
                                                            {
                                                                
damage = (uint)(damage 0.750);
                                                            }
                                                            if (
attacker.NobilityRank == AbdoRedaGxV4.Game.ConquerStructures.NobilityRank.Serf)
                                                            {
                                                                
damage = (uint)(damage 0.300);
                                                            }
                                                            
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 

بدل الاسكلت دي بلي عندك


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



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

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

المواضيع المتشابهه للموضوع: مشكله بخصوص الاتاك
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
تعديل علي الاتاك 2 Tarek Roshdi مشكلات السيرفيرات كونكر الشخصيه 3 2020-03-22 03:08 AM
تعديل علي الاتاك Tarek Roshdi مشكلات السيرفيرات كونكر الشخصيه 5 2020-03-19 03:28 PM
بعد اذنك يا رايدر طلب بسيط لو سمحت بخصوص الاتاك ابو مروان مشكلات السيرفيرات كونكر الشخصيه 4 2019-09-06 05:07 PM
مشكله بخصوص الاتاك انا اسف جدا مشاكلى كتير ابو مروان مشكلات السيرفيرات كونكر الشخصيه 3 2019-09-01 11:18 PM
بخصوص ملف الاتاك فى سورس خالد محمد Handle MRonlineGvrix مشكلات السيرفيرات كونكر الشخصيه 3 2019-08-19 06:19 PM


الساعة الآن 07:21 AM

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