كونكر عرب

كونكر عرب (https://conquer-arab.com/index.php)
-   مشكلات السيرفيرات كونكر الشخصيه (https://conquer-arab.com/forumdisplay.php?f=12)
-   -   مشكلة فى الدودش شخصية dragon worrior (https://conquer-arab.com/showthread.php?t=5860)

ahmeduyd 2020-08-16 01:38 AM

مشكلة فى الدودش شخصية dragon worrior
 
عندى مشكلة فى شخصية دراجون ورير انا بكون قافل البى كى واسكلة الدودش تضرب والبى كى مقفول

ElSaher 2020-08-16 07:39 PM

رد: مشكلة فى الدودش شخصية dragon worrior
 
صورة من الاسكلت دي لان الاسم دا انا معرفهوش

ahmeduyd 2020-08-16 07:47 PM

رد: مشكلة فى الدودش شخصية dragon worrior
 
اقتباس:

المشاركة الأصلية كتبت بواسطة ElSaher (المشاركة 56638)
صورة من الاسكلت دي لان الاسم دا انا معرفهوش


دى اسمها dragonpunch

ElSaher 2020-08-16 08:27 PM

رد: مشكلة فى الدودش شخصية dragon worrior
 
جرب اسحبها من سورس تاني

ahmeduyd 2020-08-16 08:47 PM

رد: مشكلة فى الدودش شخصية dragon worrior
 
بردو نفس المشكلة

ElSaher 2020-08-16 08:51 PM

رد: مشكلة فى الدودش شخصية dragon worrior
 
ابحث عن اسم الاسكلت في السورس المحوله في في السورس كلو وشوف المكان الي مش موجوده فيه وضيفها

Rider 2020-08-17 09:05 AM

رد: مشكلة فى الدودش شخصية dragon worrior
 
اتشيك الاسكله عن بيكيه موجود تحت بعد ما الاسكله بتضرب و ده كان موجود ف اسكلة من اسكلات ويندولكر ف بعض سورسات طلع كود الاتشيك فوق قبل ما الاسكله تضرب

ahmeduyd 2020-08-17 07:03 PM

رد: مشكلة فى الدودش شخصية dragon worrior
 
اقتباس:

المشاركة الأصلية كتبت بواسطة Rider (المشاركة 56723)
اتشيك الاسكله عن بيكيه موجود تحت بعد ما الاسكله بتضرب و ده كان موجود ف اسكلة من اسكلات ويندولكر ف بعض سورسات طلع كود الاتشيك فوق قبل ما الاسكله تضرب


شكرا على ردك

اهى الاسكلة اعمل اية
كود PHP:

#region DragonPunch
                                
case 12240:
                                    {
                                        if (
CanUseSpell(spell, attacker.Owner))
                                        {
                                            
PrepareSpell(spell, attacker.Owner);
                                            
SpellUse suse = new SpellUse(true);
                                            
suse.Attacker = attacker.UID;
                                            
suse.SpellID = spell.ID;
                                            
suse.SpellLevel = spell.Level;

                                            if (
Kernel.GetDistance(attacker.X, attacker.Y, X, Y) <= attacker.AttackRange + 1)
                                            {
                                                foreach (
Interfaces.IMapObject _obj in attacker.Owner.Screen.Objects)
                                                {
                                                    if (
_obj == null) continue;
                                                    if (
_obj.MapObjType == MapObjectType.Monster || _obj.MapObjType == MapObjectType.Entity)
                                                    {
                                                        
attacked = _obj as Entity;

                                                        if (
Kernel.GetDistance(attacker.X, attacker.Y, attacked.X, attacked.Y) <= spell.Range)
                                                        {
                                                            if (
attacked.ContainsFlag((ulong)Update.Flags.Fly)) return;
                                                            if (
CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
                                                            {
                                                                
PrepareSpell(spell, attacker.Owner);
                                                                
attack.Effect1 = Attack.AttackEffects1.None;
                                                                
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, spell, ref attack, client_Spell.LevelHu2);
                                                                
damage = (damage * 35) / 100;
                                                                
suse.Effect1 = attack.Effect1;
                                                                
ReceiveAttack(attacker, attacked, attack, ref damage, spell);
                                                                
suse.AddTarget(attacked, damage, attack);
                                                            }
                                                        }
                                                    }
                                                    else if (
_obj.MapObjType == MapObjectType.SobNpc)
                                                    {
                                                        
attackedsob = _obj as SobNpcSpawn;
                                                        if (
Kernel.GetDistance(attacker.X, attacker.Y, attackedsob.X, attackedsob.Y) <= spell.Range)
                                                        {
                                                            if (
CanAttack(attacker, attackedsob, spell))
                                                            {
                                                                
PrepareSpell(spell, attacker.Owner);
                                                                
attack.Effect1 = Attack.AttackEffects1.None;
                                                                
uint damage = Calculate.Melee(attacker, attackedsob, ref attack);
                                                                
//damage = (uint)(damage * spell.IncreaseDMG);
                                                                //damage = (uint)(damage / spell.DecreaseDMG);
                                                                
ReceiveAttack(attacker, attackedsob, attack, damage, spell);
                                                                
suse.AddTarget(attackedsob, damage, attack);
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                            
//else
                                            //{
                                            //    attacker.AttackPacket = null;
                                            //}
                                            
attacker.Owner.SendScreen(suse, true);
                                        }
                                        break;
                                    }
                                
#endregion 


Rider 2020-08-18 11:33 AM

رد: مشكلة فى الدودش شخصية dragon worrior
 
جرب كده
كود PHP:

#region DragonPunch
                                
case 12240:
                                    {
                                        if (
CanUseSpell(spell, attacker.Owner))
                                        {
                                            
PrepareSpell(spell, attacker.Owner);
                                            
SpellUse suse = new SpellUse(true);
                                            
suse.Attacker = attacker.UID;
                                            
suse.SpellID = spell.ID;
                                            
suse.SpellLevel = spell.Level;

                                            if (
Kernel.GetDistance(attacker.X, attacker.Y, X, Y) <= attacker.AttackRange + 1)
                                            {
                                                foreach (
Interfaces.IMapObject _obj in attacker.Owner.Screen.Objects)
                                                {
                                                    if (
_obj == null) continue;
                                                    if (
_obj.MapObjType == MapObjectType.Monster || _obj.MapObjType == MapObjectType.Entity)
                                                    {
                                                        
attacked = _obj as Entity;
if (
attacked.ContainsFlag((ulong)Update.Flags.Fly)) return;
                                                            if (
CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
                                                            {
                                                        if (
Kernel.GetDistance(attacker.X, attacker.Y, attacked.X, attacked.Y) <= spell.Range)
                                                        {
                                                            
                                                                
PrepareSpell(spell, attacker.Owner);
                                                                
attack.Effect1 = Attack.AttackEffects1.None;
                                                                
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, spell, ref attack, client_Spell.LevelHu2);
                                                                
damage = (damage * 35) / 100;
                                                                
suse.Effect1 = attack.Effect1;
                                                                
ReceiveAttack(attacker, attacked, attack, ref damage, spell);
                                                                
suse.AddTarget(attacked, damage, attack);
                                                            }
                                                        }
                                                    }
                                                    else if (
_obj.MapObjType == MapObjectType.SobNpc)
                                                    {
                                                        
attackedsob = _obj as SobNpcSpawn;
                                                        if (
Kernel.GetDistance(attacker.X, attacker.Y, attackedsob.X, attackedsob.Y) <= spell.Range)
                                                        {
                                                            if (
CanAttack(attacker, attackedsob, spell))
                                                            {
                                                                
PrepareSpell(spell, attacker.Owner);
                                                                
attack.Effect1 = Attack.AttackEffects1.None;
                                                                
uint damage = Calculate.Melee(attacker, attackedsob, ref attack);
                                                                
//damage = (uint)(damage * spell.IncreaseDMG);
                                                                //damage = (uint)(damage / spell.DecreaseDMG);
                                                                
ReceiveAttack(attacker, attackedsob, attack, damage, spell);
                                                                
suse.AddTarget(attackedsob, damage, attack);
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                            
//else
                                            //{
                                            //    attacker.AttackPacket = null;
                                            //}
                                            
attacker.Owner.SendScreen(suse, true);
                                        }
                                        break;
                                    }
                                
#endregion 


ahmeduyd 2020-08-18 05:51 PM

رد: مشكلة فى الدودش شخصية dragon worrior
 
اقتباس:

المشاركة الأصلية كتبت بواسطة Rider (المشاركة 56845)
جرب كده
كود PHP:

#region DragonPunch
                                
case 12240:
                                    {
                                        if (
CanUseSpell(spell, attacker.Owner))
                                        {
                                            
PrepareSpell(spell, attacker.Owner);
                                            
SpellUse suse = new SpellUse(true);
                                            
suse.Attacker = attacker.UID;
                                            
suse.SpellID = spell.ID;
                                            
suse.SpellLevel = spell.Level;

                                            if (
Kernel.GetDistance(attacker.X, attacker.Y, X, Y) <= attacker.AttackRange + 1)
                                            {
                                                foreach (
Interfaces.IMapObject _obj in attacker.Owner.Screen.Objects)
                                                {
                                                    if (
_obj == null) continue;
                                                    if (
_obj.MapObjType == MapObjectType.Monster || _obj.MapObjType == MapObjectType.Entity)
                                                    {
                                                        
attacked = _obj as Entity;
if (
attacked.ContainsFlag((ulong)Update.Flags.Fly)) return;
                                                            if (
CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
                                                            {
                                                        if (
Kernel.GetDistance(attacker.X, attacker.Y, attacked.X, attacked.Y) <= spell.Range)
                                                        {
                                                            
                                                                
PrepareSpell(spell, attacker.Owner);
                                                                
attack.Effect1 = Attack.AttackEffects1.None;
                                                                
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, spell, ref attack, client_Spell.LevelHu2);
                                                                
damage = (damage * 35) / 100;
                                                                
suse.Effect1 = attack.Effect1;
                                                                
ReceiveAttack(attacker, attacked, attack, ref damage, spell);
                                                                
suse.AddTarget(attacked, damage, attack);
                                                            }
                                                        }
                                                    }
                                                    else if (
_obj.MapObjType == MapObjectType.SobNpc)
                                                    {
                                                        
attackedsob = _obj as SobNpcSpawn;
                                                        if (
Kernel.GetDistance(attacker.X, attacker.Y, attackedsob.X, attackedsob.Y) <= spell.Range)
                                                        {
                                                            if (
CanAttack(attacker, attackedsob, spell))
                                                            {
                                                                
PrepareSpell(spell, attacker.Owner);
                                                                
attack.Effect1 = Attack.AttackEffects1.None;
                                                                
uint damage = Calculate.Melee(attacker, attackedsob, ref attack);
                                                                
//damage = (uint)(damage * spell.IncreaseDMG);
                                                                //damage = (uint)(damage / spell.DecreaseDMG);
                                                                
ReceiveAttack(attacker, attackedsob, attack, damage, spell);
                                                                
suse.AddTarget(attackedsob, damage, attack);
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                            
//else
                                            //{
                                            //    attacker.AttackPacket = null;
                                            //}
                                            
attacker.Owner.SendScreen(suse, true);
                                        }
                                        break;
                                    }
                                
#endregion 


شكرا تم الحل


الساعة الآن 05:31 AM

مرحبا بكم في منتدي اكواد لتطوير الالعاب
new notificatio by 9adq_ala7sas