AliNasser |
2019-08-22 09:40 PM |
ازاي اعدل علي الاتاك في سورس خالد محمد
دلوقتي في سورس خالد محمد الاصدار التالت بتعديل اسامه جاي اجرب الاتاكات لقيت اتاكات النينجا خربانه وفي فرق كبير بين التاك الفيزيكال و ال spells
https://6.top4top.net/p_1329ut8nn1.jpg
https://4.top4top.net/p_1329atwaw1.jpg
انا جيت اعدل في الاتاكات في الهندل لقيت الاكواد دي
كود بلغة HTML:
if (attackedsob == null)
{
if (CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
{
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = Game.Attacking.Calculate.Ranged(attacker, attacked, ref attack);
damage = (uint)(damage * SkillsAttack.SuperTwofoldBladePlayers);
suse.Effect1 = attack.Effect1;
ReceiveAttack(attacker, attacked, attack, ref damage, spell);
suse.AddTarget(attacked, damage, attack);
send = true;
if (attacker.Owner.Spells.ContainsKey(0) && !attacked.Dead)
{
var s = attacker.Owner.Spells[0];
var spellz = Database.SpellTable.SpellInformations[s.ID][s.Level];
if (spellz != null)
روجت كلاس spell attack لقيت دول
كود بلغة HTML:
public static void SuperTwofoldBladeTime()
{
MySqlCommand cmd = new MySqlCommand(MySqlCommandType.SELECT).Select("skillsattack").Where("SkillName", "SuperTwofoldBlade");
Database.MySqlReader r = new Database.MySqlReader(cmd);
if (r.Read())
{
SuperTwofoldBladeSkillName = r.ReadString("SkillName");
SuperTwofoldBladePlayers = r.ReadDouble("Players");
SuperTwofoldBladeMonsters = r.ReadDouble("Monsters");
SuperTwofoldBladePoles = r.ReadDouble("Poles");
}
r.Close();
r.Dispose();
}
#endregion
نفس النظام ماشي علي معظم الاسكلات وانا بصراحه مش فاهم اي حاجه
|