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

مشاهدة النسخة كاملة : مشكله بخصوص الضرب التلقائي


uncelsam
2019-07-04, 05:58 PM
عاوز اخلي الشخصيه اي شخصيه في الضربات العاديه تبقي سريعه شويه


لان عندي بتضرب ضربه بعد كل 3 ثواني

محمد ياسر
2019-07-04, 06:39 PM
ازاي ضرب تلقائي؟

uncelsam
2019-07-04, 09:30 PM
[QUOTE=Hazem;3705]ازاي ضرب تلقائي؟[/Q

الي هيا مثلا لو انتا سايب اميل بيضرب في عمود او في العصايه الي بتبقي في التون سيتي الي بتجيب منها سبس دي

المهم الضرب مبيبقاش اسكلات

الضرب male attack

لو سايب اميل ارشر مثلا اوتو بيضرب لوحدو ولابس السلاحين مش القوس

بيضرب ضربات male بطيئه مش وره بعض ياعني مابين كل ضربه male فرق 3 ثواني

فانا عايز اسرع الضربات ال male دي

Hassan Emprator
2019-07-04, 11:36 PM
[QUOTE=Hazem;3705]ازاي ضرب تلقائي؟[/Q

الي هيا مثلا لو انتا سايب اميل بيضرب في عمود او في العصايه الي بتبقي في التون سيتي الي بتجيب منها سبس دي

المهم الضرب مبيبقاش اسكلات

الضرب male attack

لو سايب اميل ارشر مثلا اوتو بيضرب لوحدو ولابس السلاحين مش القوس

بيضرب ضربات male بطيئه مش وره بعض ياعني مابين كل ضربه male فرق 3 ثواني

فانا عايز اسرع الضربات ال male دي



اها اها النظام دا عامله عندي زي كونكر سكاي فلام

Hassan Emprator
2019-07-04, 11:40 PM
اتفضل يحبي هتفتح كلاس World

وهتبحث عن

private void AutoAttackCallback(GameState client, int time)

لما تبحث عنه هتبدله بدا واي ايرور يطلعلك كلمني

}
private void AutoAttackCallback(GameState client, int time)
{
if (!Valid(client)) return;
Time32 Now = new Time32(time);
if (client.Entity.AttackPacket != null || client.Entity.VortexAttackStamp != null)
{
try
{
if (client.Entity.ContainsFlag((ulong)Update.Flags.Sh urikenVortex))
{
if (client.Entity.VortexPacket != null && client.Entity.VortexPacket.ToArray() != null)
{
if (Now > client.Entity.VortexAttackStamp.AddMilliseconds(14 00))
{
client.Entity.VortexAttackStamp = Now;
new Game.Attacking.Handle(client.Entity.VortexPacket, client.Entity, null);
}
}
}
else
{
client.Entity.VortexPacket = null;
var AttackPacket = client.Entity.AttackPacket;
if (AttackPacket != null && AttackPacket.ToArray() != null)
{
uint AttackType = AttackPacket.AttackType;
if (AttackType == Attack.Magic || AttackType == Attack.Melee || AttackType == Attack.Ranged)
{
if (AttackType == Attack.Magic)
{
if (Now > client.Entity.AttackStamp.AddSeconds(1))
{
if (AttackPacket.Damage != 12160 &&
AttackPacket.Damage != 12170 &&
AttackPacket.Damage != 12120 &&
AttackPacket.Damage != 12130 &&
AttackPacket.Damage != 12140 &&
AttackPacket.Damage != 12320 &&
AttackPacket.Damage != 12330 &&
AttackPacket.Damage != 12340 &&
AttackPacket.Damage != 12210)
new Game.Attacking.Handle(AttackPacket, client.Entity, null);
}
}
else
{
int decrease = -300;
if (client.Entity.OnCyclone())
decrease = 700;
if (client.Entity.OnSuperman())
decrease = 200;
if (Now > client.Entity.AttackStamp.AddMilliseconds((300 - client.Entity.Agility - decrease) * (int)(AttackType == Attack.Ranged ? 1 : 1)))
{
new Game.Attacking.Handle(AttackPacket, client.Entity, null);
}
}
}
}
}
}
catch (Exception e)
{
Program.SaveException(e);
client.Entity.AttackPacket = null;
client.Entity.VortexPacket = null;
}
}
}

Users
2019-07-05, 01:02 AM
اتفضل يحبي هتفتح كلاس World

وهتبحث عن

private void AutoAttackCallback(GameState client, int time)

لما تبحث عنه هتبدله بدا واي ايرور يطلعلك كلمني

}
private void AutoAttackCallback(GameState client, int time)
{
if (!Valid(client)) return;
Time32 Now = new Time32(time);
if (client.Entity.AttackPacket != null || client.Entity.VortexAttackStamp != null)
{
try
{
if (client.Entity.ContainsFlag((ulong)Update.Flags.Sh urikenVortex))
{
if (client.Entity.VortexPacket != null && client.Entity.VortexPacket.ToArray() != null)
{
if (Now > client.Entity.VortexAttackStamp.AddMilliseconds(14 00))
{
client.Entity.VortexAttackStamp = Now;
new Game.Attacking.Handle(client.Entity.VortexPacket, client.Entity, null);
}
}
}
else
{
client.Entity.VortexPacket = null;
var AttackPacket = client.Entity.AttackPacket;
if (AttackPacket != null && AttackPacket.ToArray() != null)
{
uint AttackType = AttackPacket.AttackType;
if (AttackType == Attack.Magic || AttackType == Attack.Melee || AttackType == Attack.Ranged)
{
if (AttackType == Attack.Magic)
{
if (Now > client.Entity.AttackStamp.AddSeconds(1))
{
if (AttackPacket.Damage != 12160 &&
AttackPacket.Damage != 12170 &&
AttackPacket.Damage != 12120 &&
AttackPacket.Damage != 12130 &&
AttackPacket.Damage != 12140 &&
AttackPacket.Damage != 12320 &&
AttackPacket.Damage != 12330 &&
AttackPacket.Damage != 12340 &&
AttackPacket.Damage != 12210)
new Game.Attacking.Handle(AttackPacket, client.Entity, null);
}
}
else
{
int decrease = -300;
if (client.Entity.OnCyclone())
decrease = 700;
if (client.Entity.OnSuperman())
decrease = 200;
if (Now > client.Entity.AttackStamp.AddMilliseconds((300 - client.Entity.Agility - decrease) * (int)(AttackType == Attack.Ranged ? 1 : 1)))
{
new Game.Attacking.Handle(AttackPacket, client.Entity, null);
}
}
}
}
}
}
catch (Exception e)
{
Program.SaveException(e);
client.Entity.AttackPacket = null;
client.Entity.VortexPacket = null;
}
}
}

عشان يا حسن