|
المشاركات 271 |
+التقييم 0.14 |
تاريخ التسجيل Jul 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 486 |
if (attacker.IsMonk(attacker.Class))
//if (attacker.NobilityRank == M.AzozProject.Game.ConquerStructures.NobilityRank.King)
{
damage = (uint)(damage * 100 / 1000);
}
#region SuperTwofoldBlade
case 12080:
{
if (attacker.Stamina >= 10)
attacker.Stamina -= 10;
if (Time32.Now >= attacker.SpellStamp.AddMilliseconds(1000))
{
if (CanUseSpell(spell, attacker.Owner))
{
ushort Xx, Yx;
if (attacked != null)
{
Xx = attacked.X;
Yx = attacked.Y;
}
else
{
Xx = attackedsob.X;
Yx = attackedsob.Y;
}
if (Kernel.GetDistance(attacker.X, attacker.Y, Xx, Yx) <= spell.Distance)
{
if (attackedsob == null)
if (attacked.ContainsFlag(Update.Flags.Fly))
return;
if (attacker.ContainsFlag(Update.Flags.Fly))
return;
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;
bool send = false;
if (attackedsob == null)
{
if (CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
{
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, ref attack);
if (attacker.IsMonk(attacker.Class))
//if (attacker.NobilityRank == M.AzozProject.Game.ConquerStructures.NobilityRank.King)
{
damage = (uint)(damage * 100 / 1000);
}
if (attacker.IsPirate(attacker.Class))
//if (attacker.NobilityRank == M.AzozProject.Game.ConquerStructures.NobilityRank.King)
{
damage = (uint)(damage * 2.9);
}
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)
{
if (Kernel.Rate(spellz.Percent))
{
SpellUse ssuse = new SpellUse(true);
ssuse.Attacker = attacker.UID;
ssuse.SpellID = spellz.ID;
ssuse.SpellLevel = spellz.Level;
damage = Game.Attacking.Calculate.Melee(attacker, attacked, ref attack);
ssuse.AddTarget(attacked, new SpellUse.DamageClass().Damage = damage, attack);
ReceiveAttack(attacker, attacked, attack, ref damage, spell);
attacker.Owner.SendScreen(ssuse, true);
}
}
}
}
}
else
{
if (CanAttack(attacker, attackedsob, spell))
{
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = Game.Attacking.Calculate.Melee(attacker, attackedsob, ref attack);
//damage = (uint)(damage * 180 / 100);
ReceiveAttack(attacker, attackedsob, attack, damage, spell);
suse.Effect1 = attack.Effect1;
suse.AddTarget(attackedsob, damage, attack);
send = true;
}
}
if (send)
attacker.Owner.SendScreen(suse, true);
attacker.SpellStamp = Time32.Now;
}
else
{
attacker.AttackPacket = null;
}
}
}
break;
}
#endregion
case 1000000:
case 1000010:
case 1000020:
case 1000030:
case 1002000:
case 1002010:
case 1002020:
case 1002050:
case 1000040:
case 725065:
{
if (Time32.Now > client.Player.LastUseHp.AddMilliseconds(170))
{
client.Player.LastUseHp = Time32.Now;
}
else
{
//client.Disconnect();
return;
}
if (Constants.NoHp.Contains(client.Player.MapID))
{
return;
}
if (client.Player.NoDrugsTime > 0)
{
if (Time32.Now > client.Player.NoDrugsStamp.AddSeconds(client.Player.NoDrugsTime))
{
client.Player.NoDrugsTime = 0;
}
else
{
return;
}
}
if (client.Player.Hitpoints == client.Player.MaxHitpoints)
return;
client.Inventory.Remove(item, Game.Enums.ItemUse.RemoveFromStack);
client.Player.Hitpoints = Math.Min(client.Player.Hitpoints + infos.BaseInformation.ItemHP, client.Player.MaxHitpoints);
break;
}
if (attacked.ismonk(attacked.class))
//if (attacker.nobilityrank == m.azozproject.game.conquerstructures.nobilityrank.king)
{
damage = (uint)(damage * 100 / 1000);
}
if (attacked.IsMonk(attacked.Class))
//if (attacker.NobilityRank == M.AzozProject.Game.ConquerStructures.NobilityRank.King)
{
damage = (uint)(damage * 100 / 1000);
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
طلب بسيط بخصوص الجارد بتاع الشخصيه | ابو مروان | مشكلات السيرفيرات كونكر الشخصيه | 9 | 2020-05-11 03:49 PM |
مشكله بخصوص الاتاك | Mr NemNem | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2020-05-01 01:52 AM |
بخصوص سورس رايزو لو سمحت | nova | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-03-29 01:44 PM |
طلب بخصوص اللوتري لو سمحت ياحازم | ToRWadA | مشكلات السيرفيرات كونكر الشخصيه | 14 | 2019-09-21 04:11 PM |
طلب بخصوص البوكر لو سمحت ياحازم | ToRWadA | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2019-09-18 12:35 PM |