|
المشاركات 407 |
+التقييم 0.20 |
تاريخ التسجيل May 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 248 |
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)
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
case (ushort)Enums.SpellID.CrackingShock:
case (ushort)Enums.SpellID.CrackingShock:
{
MsgSpellAnimation MsgSpell = new MsgSpellAnimation(user.Entity.UID
, 0, Attack.X, Attack.Y, ClientSpell.ID
, ClientSpell.Level, ClientSpell.UseSpellSoul);
uint Experience = 0;
foreach (Interfaces.IMapObject target in user.Screen.Objects)
{
if (target.MapObjType == MapObjectType.Monster)
{
Game.Entity attacked = target as Game.Entity;
if (Calculate.Base.GetDistance(Attack.X, Attack.Y, attacked.X, attacked.Y) < DBSpell.Range / 3)
{
if (CheckAttack.CanAttackMonster.Verified(user, attacked, DBSpell))
{
MsgSpellAnimation.SpellObj AnimationObj;
Calculate.Physical.OnMonster(user.Entity, attacked, DBSpell, out AnimationObj);
AnimationObj.Damage = Calculate.Base.CalculateSoul(AnimationObj.Damage, ClientSpell.UseSpellSoul);
Experience += ReceiveAttack.Monster.Execute(stream, AnimationObj, user, attacked);
user.MessageBox("100");
MsgSpell.Targets.Enqueue(AnimationObj);
}
}
}
}
foreach (Interfaces.IMapObject targer in user.Screen.Objects)
{
var attacked = targer as Game.Entity;
if (targer.MapObjType == MapObjectType.Entity && user.Entity.UID != targer.UID)
{
if (Calculate.Base.GetDistance(Attack.X, Attack.Y, attacked.X, attacked.Y) < DBSpell.Range / 3)
{
if (CheckAttack.CanAttackPlayer.Verified(user, attacked, DBSpell))
{
MsgSpellAnimation.SpellObj AnimationObj;
Calculate.Physical.OnPlayer(user.Entity, attacked, DBSpell, out AnimationObj);
AnimationObj.Damage = Calculate.Base.CalculateSoul(AnimationObj.Damage, ClientSpell.UseSpellSoul);
AnimationObj.Damage = AnimationObj.Damage * 20 / 100;
ReceiveAttack.Player.Execute(stream, AnimationObj, user, attacked);
MsgSpell.Targets.Enqueue(AnimationObj);
}
}
}
}
foreach (Interfaces.IMapObject targer in user.Screen.Objects)
{
if (targer.MapObjType == MapObjectType.SobNpc)
{
var attacked = targer as Network.GamePackets.SobNpcSpawn;
if (Calculate.Base.GetDistance(Attack.X, Attack.Y, attacked.X, attacked.Y) < DBSpell.Range / 3)
{
if (CheckAttack.CanAttackNpc.Verified(user, attacked, DBSpell))
{
MsgSpellAnimation.SpellObj AnimationObj;
Calculate.Physical.OnNpcs(user.Entity, attacked, DBSpell, out AnimationObj);
AnimationObj.Damage = Calculate.Base.CalculateSoul(AnimationObj.Damage, ClientSpell.UseSpellSoul);
Experience += ReceiveAttack.Npc.Execute(stream, AnimationObj, user, attacked);
MsgSpell.Targets.Enqueue(AnimationObj);
}
}
}
}
Updates.IncreaseExperience.Up(stream, user, Experience);
Updates.UpdateSpell.CheckUpdate(stream, user, Attack, Experience, DBSpells);
MsgSpell.SetStream(stream); MsgSpell.Send(user);
break;
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
سورس خالد محمد | SourceDanger | سورسات كونكر | 131 | 2024-11-10 12:24 AM |
مشكلة في سورس خالد محمد 6 | Mawdo3jded | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2021-08-25 06:29 PM |
طلب صغير فى سورس خالد محمد | essamarpi1 | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2020-05-09 02:38 PM |
بخصوص ملف الاتاك فى سورس خالد محمد Handle | MRonlineGvrix | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2019-08-19 06:19 PM |
سورس خالد محمد | bebo100 | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2019-07-26 11:36 PM |