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

مشاهدة النسخة كاملة : مشكله


Hassan Emprator
2019-07-09, 11:56 PM
في مشكله عندي انا اولا انا مانع الPK في التوام من كلاس Contast من PKFobrinonMap دا وعامل موضوع حازم اليه وا حط فيه المابه 40 او كدا عندي الوند واكر بيضرب في السلاح في التوام تلاقيه بيضرب الواد بي السلاح نفسه في التوام يقوم موته ممكن حل ؟

محمد ياسر
2019-07-10, 06:26 AM
الوند وكر بس الي بيضرب ؟

Hassan Emprator
2019-07-10, 11:16 AM
الوند وكر بس الي بيضرب ؟

اها هوا بس يضرب الضربه بي الي هيا الشخصيه الي بتضرب بي ضرب بعيد مش الي زي الارشر لا الهجوم بدنو يضربك بي السلاح كدا وي يموت من خبطه

Rider
2019-07-10, 01:00 PM
هنعمل سيرش علي Handle.cs خد بالك في ملفين بنفس الاسم
افتح واحد منهم لو لقيت فيه namespace AsmELsourceBta3k.Game.Attacking
يبقي هوه ده اعمل سيرش علي if (attack.SpellID == 13060)
#region Rectangle
امسح الاسكله كلها و ضيف دي مكنها

#region Rectangle
if (attack.SpellID == 13060)
{
var spell = Database.SpellTable.GetSpell(13060, attacker.Owner);
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = attack.SpellID;
suse.X = attacker.X;
suse.Y = attacker.Y;
var angle = Kernel.GetAngle(attacker.X, attacker.Y, attacked.X, attacked.Y);
Map.UpdateCoordonatesForAngle(ref X, ref Y, angle);
Fan sector = new Fan(attacker.X, attacker.Y, X, Y, spell.Range, spell.Sector);
uint damage2 = Game.Attacking.Calculate.Melee(attacker, attacked, ref attack);
attack.Damage = 0;
if (CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
{
ReceiveAttack(attacker, attacked, attack, ref damage2, spell);
suse.AddTarget(attacked, damage2, attack);
foreach (Interfaces.IMapObject _obj in attacker.Owner.Screen.Objects)
{
if (_obj.MapObjType == MapObjectType.Entity || _obj.MapObjType == MapObjectType.Monster)
{
if (_obj == null)
continue;
attacked = _obj as Entity;
if (attacked == null) continue;

if (sector.IsInFan(attacked.X, attacked.Y))
{
if (Kernel.GetDistance(attacked.X, attacked.Y, attacker.X, attacker.Y) > 7) continue;
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, ref attack);
damage = (uint)(damage * 0.2);
attack.Damage = 0;
ReceiveAttack(attacker, attacked, attack, ref damage, spell);
suse.AddTarget(attacked, damage, attack);
}
}
}
}
attacker.Owner.SendScreen(suse, true);
return;
}
#endregion
بس كده دعوه حلوه بس منك <3

Users
2019-07-10, 03:18 PM
جرب وقولنا

Hassan Emprator
2019-07-10, 07:18 PM
هنعمل سيرش علي handle.cs خد بالك في ملفين بنفس الاسم
افتح واحد منهم لو لقيت فيه namespace asmelsourcebta3k.game.attacking
يبقي هوه ده اعمل سيرش علي if (attack.spellid == 13060)
#region rectangle
امسح الاسكله كلها و ضيف دي مكنها

#region rectangle
if (attack.spellid == 13060)
{
var spell = database.spelltable.getspell(13060, attacker.owner);
spelluse suse = new spelluse(true);
suse.attacker = attacker.uid;
suse.spellid = attack.spellid;
suse.x = attacker.x;
suse.y = attacker.y;
var angle = kernel.getangle(attacker.x, attacker.y, attacked.x, attacked.y);
map.updatecoordonatesforangle(ref x, ref y, angle);
fan sector = new fan(attacker.x, attacker.y, x, y, spell.range, spell.sector);
uint damage2 = game.attacking.calculate.melee(attacker, attacked, ref attack);
attack.damage = 0;
if (canattack(attacker, attacked, spell, attack.attacktype == attack.melee))
{
receiveattack(attacker, attacked, attack, ref damage2, spell);
suse.addtarget(attacked, damage2, attack);
foreach (interfaces.imapobject _obj in attacker.owner.screen.objects)
{
if (_obj.mapobjtype == mapobjecttype.entity || _obj.mapobjtype == mapobjecttype.monster)
{
if (_obj == null)
continue;
attacked = _obj as entity;
if (attacked == null) continue;

if (sector.isinfan(attacked.x, attacked.y))
{
if (kernel.getdistance(attacked.x, attacked.y, attacker.x, attacker.y) > 7) continue;
attack.effect1 = attack.attackeffects1.none;
uint damage = game.attacking.calculate.melee(attacker, attacked, ref attack);
damage = (uint)(damage * 0.2);
attack.damage = 0;
receiveattack(attacker, attacked, attack, ref damage, spell);
suse.addtarget(attacked, damage, attack);
}
}
}
}
attacker.owner.sendscreen(suse, true);
return;
}
#endregion
بس كده دعوه حلوه بس منك <3

تسلم ايدك وربنا انت برنس تسلمممممم