المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ChargingVortex بتضرب بأرقام عاليه جدا


ahmedshetos888
2020-01-25, 01:47 AM
عايز احل مشكله ChargingVortex اضعفها ازاي يا رجاله بعد ازن النااس

Hassan Emprator
2020-01-25, 02:01 AM
جرب تبدل الاسكله دي بي الي عندك

case 1260:
{
if (CanUseSpell(spell, attacker.Owner))
{
spell.UseStamina = 20;
PrepareSpell(spell, attacker.Owner);
Game.Attacking.InLineAlgorithm ila = new MrHassan.Game.Attacking.InLineAlgorithm(attacker.X ,
X, attacker.Y, Y, (byte)spell.Range, InLineAlgorithm.Algorithm.DDA);
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = SpellID;
suse.SpellLevel = attacker.Owner.Spells[SpellID].Level;
suse.X = X;
suse.Y = Y;
//suse.SpellLevelHu = client_Spell.LevelHu2;
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 (ila.InLine(attacked.X, attacked.Y))
{
if (!CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
continue;

attack.Effect1 = Attack.AttackEffects1.None;
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, ref attack, client_Spell.LevelHu2);
damage = (uint)(damage * 0.1);

suse.Effect1 = attack.Effect1;
attack.Damage = damage;

ReceiveAttack(attacker, attacked, attack, ref damage, spell);

suse.AddTarget(attacked, damage, attack);
}
}
else if (_obj.MapObjType == MapObjectType.SobNpc)
{
attackedsob = _obj as SobNpcSpawn;

if (ila.InLine(attackedsob.X, attackedsob.Y))
{
if (!CanAttack(attacker, attackedsob, spell))
continue;

attack.Effect1 = Attack.AttackEffects1.None;
uint damage = Game.Attacking.Calculate.Melee(attacker, attackedsob, ref attack);
attack.Damage = damage;

ReceiveAttack(attacker, attackedsob, attack, damage, spell);

suse.AddTarget(attackedsob, damage, attack);
}
}
}
attacker.Owner.SendScreen(suse, true);
}
break;
}

ahmedshetos888
2020-01-25, 02:06 AM
لسه نفس المشكله يا حسن نفس الموضوع بتضرب بي نفس الكلام باردو

Hassan Emprator
2020-01-25, 02:11 AM
لسه نفس المشكله يا حسن نفس الموضوع بتضرب بي نفس الكلام باردو

طيب شوف الرساله بتاعت الخاص عشان كدا في حاجه غلط

Hassan Emprator
2020-01-25, 02:52 AM
تم حل المشكله عا الخاص