Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Si Usas Normal / Emulator con uso de PvP Normales:
- #region SwirlingStorm[Chaser]
- case 12890:
- {
- 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;
- Fan sector = new Fan(attacker.X, attacker.Y, X, Y, spell.Range + 7, spell.Sector);//Pezzi Pro
- if (Kernel.GetDistance(attacker.X, attacker.Y, X, Y) <= spell.Distance + 1)
- {
- foreach (Interfaces.IMapObject _obj in attacker.Owner.Screen.Objects)
- {
- if (_obj == null) continue;
- if (_obj.MapObjType == MapObjectType.Monster || _obj.MapObjType == MapObjectType.Player)
- {
- attacked = _obj as Entity;
- if (sector.IsInFan(attacked.X, attacked.Y))
- {
- if (CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
- {
- attack.Effect1 = Attack.AttackEffects1.None;
- uint damage = Game.Attacking.Calculate.Ranged(attacker, attacked,spell, ref attack) / 2;
- damage = damage - (uint)(damage * .10);
- double dmg = (double)damage * 1.10;
- damage = (uint)dmg;
- suse.Effect1 = attack.Effect1;
- ReceiveAttack(attacker, attacked, attack, ref damage, spell);
- suse.AddTarget(attacked.UID, damage, attack);
- }
- }
- }
- else if (_obj.MapObjType == MapObjectType.SobNpc)
- {
- attackedsob = _obj as SobNpcSpawn;
- if (sector.IsInFan(attackedsob.X, attackedsob.Y))
- {
- if (CanAttack(attacker, attackedsob, spell))
- {
- attack.Effect1 = Attack.AttackEffects1.None;
- uint damage = Game.Attacking.Calculate.Melee(attacker, attackedsob, ref attack);
- suse.Effect1 = attack.Effect1;
- ReceiveAttack(attacker, attackedsob, attack, damage, spell);
- suse.AddTarget(attackedsob.UID, damage, attack);
- }
- }
- }
- }
- attacker.Owner.SendScreen(suse, true);
- }
- }
- break;
- }
- #endregion
- --------------------------------------------------------------
- Si Usas Otro estilo de Skills como las 3D con runas y reliquias publicadas solo aunmentan la Distancia a + 9 en MsgSpell.Dist o MsgSpell.Distance
- --------------------------------------------------------------
- SpellTable.cs (solo si usas el read MagicType)
- if (information.ID == 12890)
- {
- if (information.Distance >= 13)
- {
- information.Distance = (ushort)(information.Distance - 1);
- }
- }
- else
- {
- if (information.Distance >= 4)
- {
- information.Distance = (ushort)(information.Distance - 1);
- }
- }
- Para que Lea la Distancia Correcta ya que muchas sourcers solo tienen un maximo de 4 de distancia.. y pues les aplica a todas y eso esta Mal!!!!!
- si usan el read sql solo buscan la Spell 12890 y le suben su distancia a 13 y Listo.!
- -----------------------------------------------------
- Todos los Derechos Reservados (C) Pezzi Tomas 2019 - 2020
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement