|
public static void Refinary(Entity attacker, Entity attacked, ref double Damage, ref Attack Packet, bool magic = false)
public static void Refinary(Entity attacker, Entity attacked, ref double Damage, ref Attack Packet, bool magic = false)
{
if (attacker.Name == "Thundercloud") return;
if (attacker.EntityFlag == EntityFlag.Entity)
{
if (!attacker.IsTaoist(attacker.Class))
{
if (attacked.BattlePower > attacker.BattlePower)
{
if (attacker.Breaktrough > 0)
{
if (attacker.Breaktrough > attacked.Counteraction)
{
double Power = (double)(attacker.Breaktrough - attacked.Counteraction);
if (attacker.NobilityRank < ConquerStructures.NobilityRank.King)
{
Power = (double)(Power / 0);
if (MyMath.Success2(Power))
{
Damage += Damage * 0 / 1;
Damage += 15000;
Packet.Effect1 |= Attack.AttackEffects1.Break;
}
else Immu(attacked);
}
else
{
Power = (double)(Power / 0);
if (MyMath.Success(Power))
{
Damage += Damage * 0 / 1;
Packet.Effect1 |= Attack.AttackEffects1.Break;
}
else Immu(attacked);
}
}
else
Immu(attacked);
}
}
if (RateStatus(80))
{
if (!magic)
{
if (attacker.CriticalStrike > 0)
{
if (attacker.CriticalStrike > attacked.Immunity)
{
double Power = (double)(attacker.CriticalStrike - attacked.Immunity);
if (Kernel.ChanceSuccess2(((float)attacker.CriticalStrike / 300f) - ((float)attacked.Immunity / 300f)))
{
Damage += 15000;
Packet.Effect1 |= Attack.AttackEffects1.CriticalStrike;
}
else
Immu(attacked);
}
else
Immu(attacked);
}
}
else
{
if (attacker.Penetration > 0)
{
double Power = (double)(attacker.Penetration / 1);
if (MyMath.Success(Power))
{
Damage += Damage * 0 / 4;
Packet.Effect1 |= Attack.AttackEffects1.Penetration;
}
else if (attacker.SkillCStrike > 0)
{
if (attacker.SkillCStrike >= attacked.Immunity)
{
Power = (double)(attacker.SkillCStrike - attacked.Immunity);
Power = (double)(Power / 100);
if (MyMath.Success(Power))
{
Damage += Damage * 50 / 100;
Packet.Effect1 |= Attack.AttackEffects1.CriticalStrike;
}
else
Immu(attacked);
}
}
else
Immu(attacked);
}
else if (attacker.SkillCStrike > 0)
{
if (attacker.SkillCStrike >= attacked.Immunity)
{
double Power = (double)(attacker.SkillCStrike - attacked.Immunity);
Power = (double)(Power / 100);
if (MyMath.Success(Power))
{
Damage += Damage * 50 / 100;
Packet.Effect1 |= Attack.AttackEffects1.CriticalStrike;
}
else
Immu(attacked);
}
}
else
Immu(attacked);
}
}
}
}
if (attacked.EntityFlag == EntityFlag.Entity)
{
if (RateStatus(5))
{
if (attacked.Block > 0)
{
double Power = (double)(attacked.Block / 2);
if (MyMath.Success(Power))
{
Damage = Damage / 2;
Packet.Effect1 |= Attack.AttackEffects1.Block;
}
}
if (attacked.IsShieldBlock)
{
if (MyMath.Success(attacked.ShieldBlockPercent))
{
Damage = Damage / 2;
Packet.Effect1 |= Attack.AttackEffects1.Block;
}
}
}
}
}
if (item.ID >= 4030901 && item.ID >= 4030909)
{
if (monster != null)
{
if (monster.EntityFlag == EntityFlag.Monster)
{
if (monster.MonsterInfo.Boss || monster.Boss == 1)
{
Level = item.ID;
Level -= RuneItems.GatIDItemRune9and27(Level);
Damage += (int)(Damage * ((Level / 10) + 2));
}
}
}
}
}
if (item.ID >= 4030901 && item.ID >= 4030909)
{
if (monster != null)
{
if (monster.EntityFlag == EntityFlag.Monster)
{
if (monster.MonsterInfo.Boss || monster.Boss == 1)
{
Level = item.ID;
Level -= RuneItems.GatIDItemRune9and27(Level);
Damage += (int)(Damage * ((Level / 10) + 2));
}
}
}
}
}
if (item.ID >= 4031501 && item.ID >= 4031509)
{
if (monster != null)
{
if (monster.EntityFlag == EntityFlag.Monster)
{
if (monster.MonsterInfo.Boss || monster.Boss == 1)
{
Level = item.ID;
Level -= RuneItems.GatIDItemRune9and27(Level);
Damage += (int)(Damage * ((Level / 10) + 2));
}
}
}
}
if (user.Screen.TryGetValue(Attack.OpponentUID, out target, MapObjectType.SobNpc))
{
var attacked = target as Network.GamePackets.SobNpcSpawn;
if (user.Screen.TryGetValue(Attack.OpponentUID, out target, MapObjectType.SobNpc))
{
var attacked = target as Network.GamePackets.SobNpcSpawn;
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
سورس اليكس بي البروتو :] الابيك و الرونز و كل حاجه | محمودمحمدسالم | سورسات كونكر | 254 | يوم أمس 10:05 PM |
بخصوص سورس ماتركس اللي نزلتة | Mostafa Shalby | تطوير سيرفرات كونكر | 11 | 2024-04-11 04:35 AM |
مشكله بخصوص سورس ماتركس | AdmAhmed | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-05-09 09:30 AM |
الرونز سورس رايزو | محمودمحمدسالم | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-03-17 03:19 PM |
سستم الرونز سورس اليكس بورتو | محمودمحمدسالم | تطوير سيرفرات كونكر | 11 | 2019-09-24 02:56 AM |