| ElSaher |
2020-09-05 07:55 PM |
رد: سورس سكواد
بدل الاسكلت الي عندك بي دي
ابحث عن دي
وبدلها
كود PHP:
#region SuperTwofoldBlade case 12080: { if (Time32.Now >= attacker.SpellStamp.AddMilliseconds(500)) if (attacker.Stamina >= 1) attacker.Stamina -= 1; { 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) <= 5) { if (attackedsob == null) if (attacked.ContainsFlag((ulong)MsgUpdate.Flags.Fly)) return; if (attacked.ContainsFlag((ulong)MsgUpdate.Flags.Fly)) return; PrepareSpell(spell, attacker.Owner);
MsgMagicEffect suse = new MsgMagicEffect(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.InteractType == MsgInteract.Melee)) { attack.Effect = MsgInteract.InteractEffects.None; uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, ref attack); if (attacker.NobilityRank == TOFAN.Game.ConquerStructures.NobilityRank.King) { damage = (uint)(damage * 0.7); } if (attacker.NobilityRank == TOFAN.Game.ConquerStructures.NobilityRank.Prince) { damage = (uint)(damage * 0.6); } if (attacker.NobilityRank == TOFAN.Game.ConquerStructures.NobilityRank.Duke) { damage = (uint)(damage * 0.5); } if (attacker.NobilityRank == TOFAN.Game.ConquerStructures.NobilityRank.Earl) { damage = (uint)(damage * 0.3); } #region IsArcher /*if (attacked.IsArcher(attacked.Class)) { damage = (uint)(damage * 1.2); }*/ #endregion suse.Effect = attack.Effect; ReceiveAttack(attacker, attacked, attack, ref damage, spell);
suse.AddTarget(attacked.UID, 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)) { MsgMagicEffect ssuse = new MsgMagicEffect(true); ssuse.Attacker = attacker.UID; ssuse.SpellID = spellz.ID;
ssuse.SpellLevel = spellz.Level; damage = Game.Attacking.Calculate.Melee(attacker, attacked, ref attack); suse.AddTarget(attacked.UID, damage, attack); ReceiveAttack(attacker, attacked, attack, ref damage, spell); attacker.Owner.SendScreen(ssuse, true); } } } } } else { if (CanAttack(attacker, attackedsob, spell)) { attack.Effect = MsgInteract.InteractEffects.None; uint damage = Game.Attacking.Calculate.Melee(attacker, attackedsob, ref attack); damage = (uint)(damage * 70 / 100); ReceiveAttack(attacker, attackedsob, attack, damage, spell); suse.Effect = attack.Effect;
suse.AddTarget(attacked.UID, damage, attack); send = true; } } if (send) attacker.Owner.SendScreen(suse, true); attacker.SpellStamp = Time32.Now; } else { attacker.AttackPacket = null; } } } break; }
#endregion
وبدل اسكلت الشادو كلو بي دي
ابحث عن
وبدلها
كود PHP:
#region ShadowClone case 12090: { if (CanUseSpell(spell, attacker.Owner)) { if (attacker.MyClones.Count > 0) { foreach (var item in attacker.MyClones.Values) { MsgAction data = new MsgAction(true); data.UID = item.UID; data.ID = MsgAction.Mode.RemoveEntity; item.MonsterInfo.SendScreen(data); attacker.Owner.Map.RemoveEntity(item); attacker.Owner.Send(data); } attacker.MyClones.Clear(); return; } else { PrepareSpell(spell, attacker.Owner); MsgMagicEffect spellUse = new MsgMagicEffect(true); spellUse.Attacker = attacker.Owner.Player.UID; spellUse.SpellID = spell.ID; spellUse.SpellLevel = spell.Level; spellUse.X = attacker.X; spellUse.Y = attacker.Y; attacker.Owner.SendScreen(spellUse, true); Player.AddClone(attacker.Owner, "" + attacker.Name + "", 3); Player.AddClone(attacker.Owner, "" + attacker.Name + "", 10003); } } break; } #endregion
|