|
|
أفضل جواب - كتبه ElSaher
|
|
ابحث عن كود:
روح علي كود:
هتلاقي جواها اسكلت كود:
بدلها بدي كود:
|
void HandleRedBlueRunesSkills
#region Leelong
#region CounterPunch
#region Leelong
#region CounterPunch
case (ushort)Enums.Skill.CounterPunch:
{
if (Kernel.GetDistance(attacked.X, attacked.Y, attacker.X, attacker.Y) <= 1)
{
if (Kernel.Rate(spell.Percent))
{
if (Handle.CanUseSpell(spell, attacker.Owner))
{
Handle.PrepareSpell(spell, attacker.Owner);
InLineAlgorithm ila = new InLineAlgorithm(attacker.X, attacked.X, attacker.Y, attacked.Y, 2, InLineAlgorithm.Algorithm.DDA);
MsgMagicEffect suse = new MsgMagicEffect(true);
suse.Attacker = attacker.UID;
suse.SpellID = spell.ID;
suse.SpellLevel = attacker.Owner.Spells[spell.ID].Level;
suse.X = X;
suse.Y = Y;
var attacke = new MsgInteract(true);
attacke.Attacker = suse.Attacker = attacker.UID;
attacke.SpellID = spell.ID;
attacke.X = X;
attacke.Y = Y;
attacke.InteractType = MsgInteract.Magic;
foreach (IMapObject _obj in attacker.Owner.Screen.Objects)
{
if (_obj == null) continue;
if (_obj.MapObjType == MapObjectType.Monster || _obj.MapObjType == MapObjectType.Player)
{
attacked = _obj as Player;
if (ila.InLine(attacked.X, attacked.Y))
{
if (!Handle.CanAttack(attacker, attacked, spell, false)) continue;
attacke.Effect = MsgInteract.InteractEffects.None;
uint damage = Calculate.Melee(attacker, attacked, ref attack, spell);
suse.Effect = attacke.Effect;
Handle.ReceiveAttack(attacker, attacked, attacke, ref damage, spell);
suse.AddTarget(attacked.UID, damage, attacke);
}
}
}
attacker.Owner.SendScreen(suse, true);
}
}
}
break;
}
#endregion
#endregion
void HandleRedBlueRunesSkills
#region Leelong
#region CounterPunch
#region Leelong
#region CounterPunch
case (ushort)Enums.Skill.CounterPunch:
{
if (Kernel.GetDistance(attacked.X, attacked.Y, attacker.X, attacker.Y) <= 1)
{
if (Kernel.Rate(spell.Percent))
{
if (Handle.CanUseSpell(spell, attacker.Owner))
{
Handle.PrepareSpell(spell, attacker.Owner);
InLineAlgorithm ila = new InLineAlgorithm(attacker.X, attacked.X, attacker.Y, attacked.Y, 2, InLineAlgorithm.Algorithm.DDA);
MsgMagicEffect suse = new MsgMagicEffect(true);
suse.Attacker = attacker.UID;
suse.SpellID = spell.ID;
suse.SpellLevel = attacker.Owner.Spells[spell.ID].Level;
suse.X = X;
suse.Y = Y;
var attacke = new MsgInteract(true);
attacke.Attacker = suse.Attacker = attacker.UID;
attacke.SpellID = spell.ID;
attacke.X = X;
attacke.Y = Y;
attacke.InteractType = MsgInteract.Magic;
foreach (IMapObject _obj in attacker.Owner.Screen.Objects)
{
if (_obj == null) continue;
if (_obj.MapObjType == MapObjectType.Monster || _obj.MapObjType == MapObjectType.Player)
{
attacked = _obj as Player;
if (ila.InLine(attacked.X, attacked.Y))
{
if (!Handle.CanAttack(attacker, attacked, spell, false)) continue;
attacke.Effect = MsgInteract.InteractEffects.None;
uint damage = Calculate.Melee(attacker, attacked, ref attack, spell);
suse.Effect = attacke.Effect;
Handle.ReceiveAttack(attacker, attacked, attacke, ref damage, spell);
suse.AddTarget(attacked.UID, damage, attacke);
}
}
}
attacker.Owner.SendScreen(suse, true);
}
}
}
break;
}
#endregion
#endregion
| الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
| مشكلة ف الاليت بي كي والارينا سورس سكواد | kingpepo32 | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-10-27 03:36 AM |
| مشكلة ايتمز سورس سكواد | kingpepo32 | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2020-09-17 06:41 PM |
| مشكلة شادو كلون سورس سكواد | kingpepo32 | مشكلات السيرفيرات كونكر الشخصيه | 6 | 2020-09-17 06:09 PM |
| مشكلة ف الاتشي سورس سكواد | kingpepo32 | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-09-12 06:07 PM |
| مشكلة الاسكلات سورس سكواد | kingpepo32 | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2020-09-07 09:13 PM |