|
public void Teleport(ushort BaseID, ushort DynamicID, ushort X, ushort Y)
public bool OnFatalStrike()
{
return ContainsFlag(Network.GamePackets.Update.Flags.FatalStrike);
}
#region XPSpells inoffensive
#region XPSpells inoffensive
case 1015:
case 1020:
case 1025:
case 1110:
case 6011:
case 10390:
{
if (CanUseSpell(spell, attacker.Owner))
{
PrepareSpell(spell, attacker.Owner);
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = spell.ID;
suse.SpellLevel = spell.Level;
suse.X = X;
suse.Y = Y;
suse.AddTarget(attacked.UID, 0, attack);
if (spell.ID == 6011)
{
attacked.FatalStrikeStamp = Time32.Now;
attacked.FatalStrikeTime = 60;
attacked.AddFlag((ulong)Update.Flags.FatalStrike);
attacker.RemoveFlag((ulong)Update.Flags.Ride);
}
else if (spell.ID == 1110 || spell.ID == 1025 || spell.ID == 10390)
{
if (!attacked.OnKOSpell())
attacked.KOCount = 0;
attacked.KOSpell = spell.ID;
if (spell.ID == 1110)
{
attacked.CycloneStamp = Time32.Now;
attacked.CycloneTime = 20;
attacked.AddFlag((ulong)Update.Flags.Cyclone);
}
else if (spell.ID == 10390)
{
attacked.OblivionStamp = Time32.Now;
attacked.OblivionTime = 20;
attacked.AddFlag2((ulong)Update.Flags2.Oblivion);
}
else
{
attacked.SupermanStamp = Time32.Now;
attacked.SupermanTime = 20;
attacked.AddFlag((ulong)Update.Flags.Superman);
}
}
else if (spell.ID == 1020)
{
attacked.ShieldStamp = Time32.Now;
attacked.MagicShieldStamp = Time32.Now;
attacked.MagicShieldTime = 0;
attacked.ShieldTime = 0;
attacked.AddFlag((ulong)Update.Flags.MagicShield);
attacked.ShieldStamp = Time32.Now;
attacked.ShieldIncrease = spell.PowerPercent;
attacked.ShieldTime = 60;
}
else
{
attacked.AccuracyStamp = Time32.Now;
attacked.StarOfAccuracyStamp = Time32.Now;
attacked.StarOfAccuracyTime = 0;
attacked.AccuracyTime = 0;
attacked.AddFlag((ulong)Update.Flags.StarOfAccuracy);
attacked.AccuracyStamp = Time32.Now;
attacked.AccuracyTime = (byte)spell.Duration;
}
attacked.Owner.SendScreen(suse, true);
}
break;
}
#endregion
public void Teleport(ushort BaseID, ushort DynamicID, ushort X, ushort Y)
public bool OnFatalStrike()
{
return ContainsFlag(Network.GamePackets.Update.Flags.FatalStrike);
}
#region XPSpells inoffensive
#region XPSpells inoffensive
case 1015:
case 1020:
case 1025:
case 1110:
case 6011:
case 10390:
{
if (CanUseSpell(spell, attacker.Owner))
{
PrepareSpell(spell, attacker.Owner);
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = spell.ID;
suse.SpellLevel = spell.Level;
suse.X = X;
suse.Y = Y;
suse.AddTarget(attacked.UID, 0, attack);
if (spell.ID == 6011)
{
attacked.FatalStrikeStamp = Time32.Now;
attacked.FatalStrikeTime = 60;
attacked.AddFlag((ulong)Update.Flags.FatalStrike);
attacker.RemoveFlag((ulong)Update.Flags.Ride);
}
else if (spell.ID == 1110 || spell.ID == 1025 || spell.ID == 10390)
{
if (!attacked.OnKOSpell())
attacked.KOCount = 0;
attacked.KOSpell = spell.ID;
if (spell.ID == 1110)
{
attacked.CycloneStamp = Time32.Now;
attacked.CycloneTime = 20;
attacked.AddFlag((ulong)Update.Flags.Cyclone);
}
else if (spell.ID == 10390)
{
attacked.OblivionStamp = Time32.Now;
attacked.OblivionTime = 20;
attacked.AddFlag2((ulong)Update.Flags2.Oblivion);
}
else
{
attacked.SupermanStamp = Time32.Now;
attacked.SupermanTime = 20;
attacked.AddFlag((ulong)Update.Flags.Superman);
}
}
else if (spell.ID == 1020)
{
attacked.ShieldStamp = Time32.Now;
attacked.MagicShieldStamp = Time32.Now;
attacked.MagicShieldTime = 0;
attacked.ShieldTime = 0;
attacked.AddFlag((ulong)Update.Flags.MagicShield);
attacked.ShieldStamp = Time32.Now;
attacked.ShieldIncrease = spell.PowerPercent;
attacked.ShieldTime = 60;
}
else
{
attacked.AccuracyStamp = Time32.Now;
attacked.StarOfAccuracyStamp = Time32.Now;
attacked.StarOfAccuracyTime = 0;
attacked.AccuracyTime = 0;
attacked.AddFlag((ulong)Update.Flags.StarOfAccuracy);
attacked.AccuracyStamp = Time32.Now;
attacked.AccuracyTime = (byte)spell.Duration;
}
attacked.Owner.SendScreen(suse, true);
}
break;
}
#endregion
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
بخصوص الاضافة بتاعت التيم والاسكل تيم بكيه | nova | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2020-04-07 06:34 PM |
بخصوص اسكل الاكسبي بتاعت القرصان | محمودمحمدسالم | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2020-02-17 01:06 AM |
بخصوص اسكلة ال thunderrampage بتاعت الثاندر | nova | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-12-06 01:34 PM |
مشكلة فى اسكلة بتاعت الننجا بعد ما نزلت شخصية تانية | osama | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2019-08-08 09:13 PM |
حاجه بخصوص الرساله بتاعت الكروس سيرفر | uncelsam | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2019-07-10 01:28 PM |