قديم 2019-08-02, 10:34 PM
المشاركة 2
ElSaher
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكلة في اسكلة SuperTwofoldBlade
عايز الحل بسرعه

قديم 2019-08-03, 01:32 AM
المشاركة 3
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكلة في اسكلة SuperTwofoldBlade
احسن عشان بتفتري علي الوحوش ههههههه

Handle.cs

بدل الاسكله ب دي و متنساش تغير اسم بروجيكت

كود:
 #region SuperTwofoldBlade
                                
case 12080:
                                    {
                                        if (
CanUseSpell(spellattacker.Owner))
                                        {
                                            
//var dis = spell.Distance;
                                            //if (Kernel.GetDistance(attacker.X, attacker.Y, X, Y) <= dis)
                                            
if (Kernel.GetDistance(attacker.Xattacker.YXY) <= spell.Distance)
                                            {
                                                
PrepareSpell(spellattacker.Owner);

                                                
SpellUse suse = new SpellUse(true);
                                                
suse.Attacker attacker.UID;
                                                
suse.SpellID spell.ID;
                                                
suse.SpellLevel spell.Level;
                                                
suse.X;
                                                
suse.Y;
                                                
//suse.SpellLevelHu = client_Spell.UseSpell;
                                                
Game.Attacking.InLineAlgorithm ila = new KhaledMohamed.Game.Attacking.InLineAlgorithm(attacker.X,
                              
Xattacker.YY, (byte)spell.RangeInLineAlgorithm.Algorithm.DDA);
                                                
bool aaAttack false;
                                                var Array = 
attacker.Owner.Screen.Objects;
                                                foreach (
Interfaces.IMapObject _obj in Array)
                                                {
                                                    if (
_obj.MapObjType == MapObjectType.Monster)
                                                    {
                                                        
attacked _obj as Entity;
                                                        if (
Kernel.GetDistance(attacker.Xattacker.Yattacked.Xattacked.Y) <= 7)
                                                        {
                                                            if (
attacked.UID == Target)
                                                            {
                                                                if (
CanAttack(attackerattackedspellattack.AttackType == Attack.Melee))
                                                                {
                                                                    
aaAttack true;
                                                                    var 
damage Game.Attacking.Calculate.Melee(attackerattackedref attackclient_Spell.LevelHu2);
                                                                    
damage = (uint)(damage 1.4);
                                                                    
ReceiveAttack(attackerattackedattackref damagespell);

                                                                    
suse.AddTarget(attackeddamageattack);
                                                                }
                                                            }
                                                            else if (
ila.InLine(attacked.Xattacked.Y))
                                                            {
                                                                if (
CanAttack(attackerattackedspellattack.AttackType == Attack.Melee))
                                                                {
                                                                    
aaAttack true;
                                                                    var 
damage Game.Attacking.Calculate.Melee(attackerattackedspellref attackclient_Spell.LevelHu2);
                                                                    
damage = (uint)(damage 0.1);
                                                                    
ReceiveAttack(attackerattackedattackref damagespell);

                                                                    
suse.AddTarget(attackeddamageattack);
                                                                }
                                                            }
                                                        }
                                                    }
                                                    else if (
_obj.MapObjType == MapObjectType.Entity)
                                                    {
                                                        
attacked _obj as Entity;
                                                        if (
Kernel.GetDistance(attacker.Xattacker.Yattacked.Xattacked.Y) <= 7)
                                                        {
                                                            if (
attacked.UID == Target)
                                                            {
                                                                if (
CanAttack(attackerattackedspellattack.AttackType == Attack.Melee))
                                                                {
                                                                    
aaAttack true;
                                                                    var 
damage Game.Attacking.Calculate.Ranged(attackerattackedref attackclient_Spell.LevelHu2);
                                                                    
damage = (uint)(damage 80 100);
                                                                    
ReceiveAttack(attackerattackedattackref damagespell);

                                                                    
suse.AddTarget(attackeddamageattack);
                                                                }
                                                            }
                                                        }
                                                    }
                                                    else if (
_obj.MapObjType == MapObjectType.SobNpc)
                                                    {
                                                        
attackedsob _obj as SobNpcSpawn;
                                                        if (
attackedsob.UID == Target)
                                                        {
                                                            if (
CanAttack(attackerattackedsobspell))
                                                            {
                                                                
aaAttack true;
                                                                
// if (!moveIn.InRange(attackedsob.X, attackedsob.Y, 4, ranger))
                                                                //  continue;
                                                                
var damage Game.Attacking.Calculate.Melee(attackerattackedsobref attack);
                                                                
damage = (uint)(damage 2.4);
                                                                
ReceiveAttack(attackerattackedsobattackdamagespell);
                                                                
suse.AddTarget(attackedsobdamageattack);
                                                            }
                                                        }
                                                    }
                                                }
                                                if (
aaAttack)
                                                    
attacker.Owner.SendScreen(susetrue);
                                                
attacker.SpellStamp Time32.Now;
                                                
//attacker.RadiantStamp = DateTime.Now;
                                            
}

                                        }
                                        break;
                                    }


                                
#endregion 


قديم 2019-08-04, 12:38 AM
المشاركة 4
ElSaher
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكلة في اسكلة SuperTwofoldBlade
تمم يا ريدر تسلم ايدك
رود عليه فيس بوك جيبلك هديا ليك وا لي حازم

قديم 2019-08-04, 12:34 PM
المشاركة 5
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكلة في اسكلة SuperTwofoldBlade
ههههههههه انا هاخد الهديه الكبيره مليش دعوه
//
تم التواصل خاص


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



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

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

المواضيع المتشابهه للموضوع: مشكلة في اسكلة SuperTwofoldBlade
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
مشكلة اسلت SuperTwofoldBlade ElSaher مشكلات السيرفيرات كونكر الشخصيه 3 2020-02-04 02:14 AM
حل مشكلة ان الاميل بيرقص لما يبندرب بي اسكلت SuperTwofoldBlade ElSaher تطوير سيرفرات كونكر 0 2020-02-04 01:08 AM
مشكلة في اسكلة ThunedCloud Mostafa Shalby مشكلات السيرفيرات كونكر الشخصيه 2 2019-11-01 12:42 AM
مشكلة فى اسكلة TwilightDance ViORX مشكلات السيرفيرات كونكر الشخصيه 4 2019-09-27 02:44 PM
مشكلة في اسكلة SuperTwofoldBlade ElSaher مشكلات السيرفيرات كونكر الشخصيه 1 2019-08-03 03:06 AM


الساعة الآن 12:31 PM

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