|
المشاركات 454 |
+التقييم 0.23 |
تاريخ التسجيل Jun 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 271 |
#region SuperTwofoldBlade case 12080: { if (Time32.Now >= attacker.SpellStamp.AddMilliseconds(500)) { 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.NobilityRank == HemaProject.Game.ConquerStructures.NobilityRank.King) { damage = (uint)(damage * 0.9); } if (attacker.NobilityRank == HemaProject.Game.ConquerStructures.NobilityRank.Prince) { damage = (uint)(damage * 0.8); } if (attacker.NobilityRank == HemaProject.Game.ConquerStructures.NobilityRank.Duke) { damage = (uint)(damage * 0.7); } if (attacker.NobilityRank == HemaProject.Game.ConquerStructures.NobilityRank.Earl) { damage = (uint)(damage * 0.6); } 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
#region Medicine 2D case 1000000: case 1000010: case 1000020: case 1000030: case 1002000: case 1002010: case 1002020: case 1002050: case 1000040: case 725065: { if (Time32.Now > client.Entity.Hdplayer.AddMilliseconds(150)) { //("ss"); if (client.Entity.NoDrugsTime > 0) { if (Time32.Now > client.Entity.NoDrugsStamp.AddSeconds(client.Entity.NoDrugsTime)) { client.Entity.NoDrugsTime = 0; } else { return; } } if (client.Entity.Hitpoints == client.Entity.MaxHitpoints) { //("ss2"); return; } //("ss3"); if (client.Entity.MapID == 1811) { client.Entity.SendSysMesage("Error"); //Kernel.SendWorldMessage(new K7host.Network.GamePackets.Message("You Can't Use Health In This Map", System.Drawing.Color.Red , K7host.Network.GamePackets.Message.Talk), Program.GamePool); return; } client.Inventory.Remove(item, Game.Enums.ItemUse.RemoveFromStack); client.Entity.Hdplayer = Time32.Now; client.Entity.Hitpoints = Math.Min(client.Entity.Hitpoints + infos.BaseInformation.ItemHP, client.Entity.MaxHitpoints); } else { client.Entity.SendSysMesage(" AutoKeyboard oFF "); } break; } case 1001000: case 1001010: case 1001020: case 1001030: case 1001040: case 1002030: case 1002040: case 725066: { if (Constants.NoHp.Contains(client.Entity.MapID)) { return; } if (client.Entity.Mana == client.Entity.MaxMana) return; client.Inventory.Remove(item, Game.Enums.ItemUse.RemoveFromStack); client.Entity.Mana = (ushort)Math.Min(client.Entity.Mana + infos.BaseInformation.ItemMP, client.Entity.MaxMana); break; } #endregion
#region SuperTwofoldBlade case 12080: { if (Time32.Now >= attacker.SpellStamp.AddMilliseconds(500)) { 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.NobilityRank == HemaProject.Game.ConquerStructures.NobilityRank.King) { damage = (uint)(damage * 0.9); } if (attacker.NobilityRank == HemaProject.Game.ConquerStructures.NobilityRank.Prince) { damage = (uint)(damage * 0.8); } if (attacker.NobilityRank == HemaProject.Game.ConquerStructures.NobilityRank.Duke) { damage = (uint)(damage * 0.7); } if (attacker.NobilityRank == HemaProject.Game.ConquerStructures.NobilityRank.Earl) { damage = (uint)(damage * 0.6); } 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
#region Medicine 2D case 1000000: case 1000010: case 1000020: case 1000030: case 1002000: case 1002010: case 1002020: case 1002050: case 1000040: case 725065: { if (Time32.Now > client.Entity.Hdplayer.AddMilliseconds(150)) { //("ss"); if (client.Entity.NoDrugsTime > 0) { if (Time32.Now > client.Entity.NoDrugsStamp.AddSeconds(client.Entity.NoDrugsTime)) { client.Entity.NoDrugsTime = 0; } else { return; } } if (client.Entity.Hitpoints == client.Entity.MaxHitpoints) { //("ss2"); return; } //("ss3"); if (client.Entity.MapID == 1811) { client.Entity.SendSysMesage("Error"); //Kernel.SendWorldMessage(new K7host.Network.GamePackets.Message("You Can't Use Health In This Map", System.Drawing.Color.Red , K7host.Network.GamePackets.Message.Talk), Program.GamePool); return; } client.Inventory.Remove(item, Game.Enums.ItemUse.RemoveFromStack); client.Entity.Hdplayer = Time32.Now; client.Entity.Hitpoints = Math.Min(client.Entity.Hitpoints + infos.BaseInformation.ItemHP, client.Entity.MaxHitpoints); } else { client.Entity.SendSysMesage(" AutoKeyboard oFF "); } break; } case 1001000: case 1001010: case 1001020: case 1001030: case 1001040: case 1002030: case 1002040: case 725066: { if (Constants.NoHp.Contains(client.Entity.MapID)) { return; } if (client.Entity.Mana == client.Entity.MaxMana) return; client.Inventory.Remove(item, Game.Enums.ItemUse.RemoveFromStack); client.Entity.Mana = (ushort)Math.Min(client.Entity.Mana + infos.BaseInformation.ItemMP, client.Entity.MaxMana); break; } #endregion
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
حاجه بسيطه بس عشان انا مبتدي | محمد مسعد | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2021-08-13 12:12 AM |
حاجه بسيطه سرفرات (وسط) | Hassan Emprator | تطوير سيرفرات كونكر | 15 | 2019-09-19 07:16 AM |
حاجه بسيطه فى سيستم التيتلات و الوينجز بتاع الـWardrope | Ahmeed Sheeko | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2019-08-02 12:37 AM |
حاجه مهمه بخصوص Revive لو سمحتو | uncelsam | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2019-07-12 01:04 AM |
انا عندي الاصطفي بتختفي لما اقفل السلفر او اقفل الاميل عايز حل ارجو الرد السريع | ElSaher | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2019-07-09 11:05 PM |