احصائياتى

الردود
5

المشاهدات
643
 
Hassan Emprator
.:: مشرف قسم المشاكل ::.
الإجابات المقدمة: 301

    غير متواجد

المشاركات
1,723

+التقييم
0.63

تاريخ التسجيل
Apr 2019

الاقامة
شرقيه/زقازيق

نظام التشغيل

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


أفضل جواب - كتبه Rider
هنعمل سيرش علي Handle.cs خد بالك في ملفين بنفس الاسم
افتح واحد منهم لو لقيت فيه namespace AsmELsourceBta3k.Game.Attacking
يبقي هوه ده اعمل سيرش علي if (attack.SpellID == 13060)
#region Rectangle
امسح الاسكله كلها و ضيف دي مكنها
كود بلغة HTML:
#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
قديم 2019-07-10, 06:26 AM
المشاركة 2
Hazem
.:: المدير العام::.
الإجابات المقدمة: 181
  • غير متواجد
افتراضي رد: مشكله
الوند وكر بس الي بيضرب ؟

قديم 2019-07-10, 11:16 AM
المشاركة 3
Hassan Emprator
.:: مشرف قسم المشاكل ::.
الإجابات المقدمة: 301
  • غير متواجد
new رد: مشكله
اها هوا بس يضرب الضربه بي الي هيا الشخصيه الي بتضرب بي ضرب بعيد مش الي زي الارشر لا الهجوم بدنو يضربك بي السلاح كدا وي يموت من خبطه

قديم 2019-07-10, 01:00 PM
المشاركة 4
Rider
.:: نائب المدير ::.
الإجابات المقدمة: 989
  • غير متواجد
gifts رد: مشكله
هنعمل سيرش علي Handle.cs خد بالك في ملفين بنفس الاسم
افتح واحد منهم لو لقيت فيه namespace AsmELsourceBta3k.Game.Attacking
يبقي هوه ده اعمل سيرش علي if (attack.SpellID == 13060)
#region Rectangle
امسح الاسكله كلها و ضيف دي مكنها
كود بلغة HTML:
#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

قديم 2019-07-10, 03:18 PM
المشاركة 5
Mr~Rayzo
::. المدير العام ::.
الإجابات المقدمة: 174
  • غير متواجد
افتراضي رد: مشكله
جرب وقولنا

قديم 2019-07-10, 07:18 PM
المشاركة 6
Hassan Emprator
.:: مشرف قسم المشاكل ::.
الإجابات المقدمة: 301
  • غير متواجد
افتراضي رد: مشكله
هنعمل سيرش علي handle.cs خد بالك في ملفين بنفس الاسم
افتح واحد منهم لو لقيت فيه namespace asmelsourcebta3k.game.attacking
يبقي هوه ده اعمل سيرش علي if (attack.spellid == 13060)
#region rectangle
امسح الاسكله كلها و ضيف دي مكنها
كود بلغة HTML:
#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
تسلم ايدك وربنا انت برنس تسلمممممم


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



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

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



الساعة الآن 12:54 AM