كود بلغة 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
نفس النظام ماشي علي معظم الاسكلات وانا بصراحه مش فاهم اي حاجه