def teleBlock(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): attacker.playAnimation(Animation.create(1819)) attacker.playProjectile(Projectile.create(attacker.getCentreLocation(), victim.getCentreLocation(), 344, 60, 50, clientSpeed, 40, 32, victim.getProjectileLockonIndex(), 15, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(345, gfxDelay, 0), PoisonType.NONE, False, 3, delay, 0) attacker.getSkills().addExperience(Skills.MAGIC, Constants.EXP_MODIFIER * 80) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)
def magicDart(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): attacker.playAnimation(Animation.create(1576)) attacker.playProjectile(Projectile.create(attacker.getCentreLocation(), victim.getCentreLocation(), 328, 60, 50, clientSpeed, 48, 32, victim.getProjectileLockonIndex(), 5, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(329, gfxDelay, 100), PoisonType.NONE, False, 10 + (attacker.getSkills().getLevelForExperience(Skills.MAGIC) / 10), delay, 0) attacker.getSkills().addExperience(Skills.MAGIC, Constants.EXP_MODIFIER * 30) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)
def bloodBlitz(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): attacker.playSound(Sound.create(108, 1, 20)) attacker.playAnimation(Animation.create(1978)) attacker.playProjectile(Projectile.create(attacker.getCentreLocation(), victim.getCentreLocation(), 374, 70, 50, 80, 48, 0, victim.getProjectileLockonIndex(), 0, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(375, 80, 0), PoisonType.NONE, False, 25, 4, 0) attacker.getSkills().addExperience(Skills.MAGIC, Constants.EXP_MODIFIER * 45) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)
def smokeBlitz(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): attacker.playSound(Sound.create(183, 1, 20)) attacker.playAnimation(Animation.create(1978)) attacker.playProjectile(Projectile.create(attacker.getCentreLocation(), victim.getCentreLocation(), 386, 70, 50, 80, 48, 20, victim.getProjectileLockonIndex(), 15, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(387, 80, 100), PoisonType.SUPER_POISON, False, 23, 4, 0) attacker.getSkills().addExperience(Skills.MAGIC, Constants.EXP_MODIFIER * 42) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)
def stun(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): attacker.playAnimation(Animation.create(729)) attacker.playGraphics(Graphic.create(173, 0, 100)) attacker.playProjectile(Projectile.create(attacker.getCentreLocation(), victim.getCentreLocation(), 174, 60, 50, clientSpeed, 43, 35, victim.getProjectileLockonIndex(), 15, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(175, gfxDelay, 100), PoisonType.NONE, False, 0, delay, 0) attacker.getSkills().addExperience(Skills.MAGIC, Constants.EXP_MODIFIER * 90) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)
def smokeRush(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): attacker.playSound(Sound.create(176, 1, 20)) attacker.playAnimation(Animation.create(1978)) attacker.playProjectile(Projectile.create(attacker.getCentreLocation(), victim.getCentreLocation(), 384, 70, 50, 80, 48, 20, victim.getProjectileLockonIndex(), 15, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(385, 80, 100), PoisonType.POISON, False, 13, 4, 0) attacker.getSkills().addExperience(Skills.MAGIC, 30) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)
def iceRush(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): attacker.playSound(Sound.create(171, 1, 20)) attacker.playAnimation(Animation.create(1978)) attacker.playProjectile(Projectile.create(attacker.getCentreLocation(), victim.getCentreLocation(), 360, 70, 50, 80, 43, 0, victim.getProjectileLockonIndex(), 0, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(361, 80, 0), PoisonType.NONE, False, 17, 4, 8) attacker.getSkills().addExperience(Skills.MAGIC, 34) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)
def vulnerability(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): attacker.playAnimation(Animation.create(718)) attacker.playGraphics(Graphic.create(167, 0, 100)) attacker.playProjectile(Projectile.create(attacker.getCentreLocation(), victim.getCentreLocation(), 168, 60, 50, clientSpeed, 43, 35, victim.getProjectileLockonIndex(), 15, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(169, gfxDelay, 100), PoisonType.NONE, False, 0, delay, 0) attacker.getSkills().addExperience(Skills.MAGIC, 76) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)
def entangle(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): attacker.playAnimation(Animation.create(710)) attacker.playGraphics(Graphic.create(177, 0, 100)) attacker.playProjectile(Projectile.create(attacker.getCentreLocation(), victim.getCentreLocation(), 178, 80, 50, clientSpeed + 20, 43, 35, victim.getProjectileLockonIndex(), 15, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(179, gfxDelay + 20, 100), PoisonType.NONE, False, 5, delay, 25) attacker.getSkills().addExperience(Skills.MAGIC, 91) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)
def ibanBlast(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): attacker.playAnimation(Animation.create(708)) attacker.playGraphics(Graphic.create(87, 0, 100)) attacker.playProjectile(Projectile.create(attacker.getCentreLocation(), victim.getCentreLocation(), 88, 80, 50, clientSpeed, 50, 35, victim.getProjectileLockonIndex(), 15, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(89, gfxDelay, 100), PoisonType.NONE, False, 25, delay, 0) attacker.getSkills().addExperience(Skills.MAGIC, 30) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)
def crumbleUndead(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): anim = 1166 if bool(autocast) else 724 attacker.playAnimation(Animation.create(anim)) attacker.playGraphics(Graphic.create(145, 0, 100)) attacker.playProjectile(Projectile.create(attacker.getCentreLocation(), victim.getCentreLocation(), 146, 60, 50, clientSpeed, 40, 32, victim.getProjectileLockonIndex(), 5, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(147, gfxDelay, 100), PoisonType.NONE, False, 15, delay, 0) attacker.getSkills().addExperience(Skills.MAGIC, Constants.EXP_MODIFIER * 24.5) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)
def iceBarrage(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): attacker.playAnimation(Animation.create(1979)) attacker.playSound(Sound.create(171, 1, 0)) if victim.getSprites().getPrimarySprite() != -1 or victim.getSprites().getSecondarySprite() != -1: attacker.playProjectile(Projectile.create(victim.getCentreLocation(), victim.getCentreLocation(), 368, 70, 50, 90, 0, 0, victim.getProjectileLockonIndex(), 0, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(369, 60, 0), PoisonType.NONE, True, 30, 4, 33) attacker.getSkills().addExperience(Skills.MAGIC, Constants.EXP_MODIFIER * 52) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(6)
def earthWave(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): anim = 1167 if bool(autocast) else 727 attacker.playSound(Sound.create(134, 1, 0)) attacker.playAnimation(Animation.create(anim)) attacker.playGraphics(Graphic.create(164, 0, 100)) attacker.playProjectile(Projectile.create(attacker.getCentreLocation(), victim.getCentreLocation(), 165, 45, 50, clientSpeed, 43, 35, victim.getProjectileLockonIndex(), 10, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(166, gfxDelay, 100), PoisonType.NONE, False, 19, delay, 0) attacker.getSkills().addExperience(Skills.MAGIC, 40) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)
def iceBlitz(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): attacker.playSound(Sound.create(171, 1, 20)) attacker.playAnimation(Animation.create(1978)) attacker.playGraphics(Graphic.create(366)) if victim.getSprites().getPrimarySprite() != -1 or victim.getSprites().getSecondarySprite() != -1: attacker.playProjectile(Projectile.create(victim.getCentreLocation(), victim.getCentreLocation(), 366, 70, 50, 90, 0, 0, victim.getProjectileLockonIndex(), 0, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(367, 80, 0), PoisonType.NONE, False, 26, 6, 25) attacker.getSkills().addExperience(Skills.MAGIC, 46) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)
def fireWave(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): anim = 1167 if bool(autocast) else 727 attacker.playSound(Sound.create(162, 1, 0)) attacker.playAnimation(Animation.create(anim)) attacker.playGraphics(Graphic.create(155, 0, 100)) attacker.playProjectile(Projectile.create(attacker.getCentreLocation(), victim.getCentreLocation(), 156, 45, 50, clientSpeed, 43, 35, victim.getProjectileLockonIndex(), 10, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(157, gfxDelay, 100), PoisonType.NONE, False, 20, delay, 0) attacker.getSkills().addExperience(Skills.MAGIC, Constants.EXP_MODIFIER * 42.5) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)
def waterStrike(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): anim = 1162 if bool(autocast) else 711 attacker.playAnimation(Animation.create(anim)) attacker.playGraphics(Graphic.create(93, 0, 100)) attacker.playSound(Sound.create(211, 1, 0)) attacker.playProjectile(Projectile.create(attacker.getCentreLocation(), victim.getCentreLocation(), 94, 60, 50, clientSpeed, 43, 35, victim.getProjectileLockonIndex(), 15, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(95, gfxDelay, 100), PoisonType.NONE, False, 4, delay, 0) attacker.getSkills().addExperience(Skills.MAGIC, Constants.EXP_MODIFIER * 7.5) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)
def fireBlast(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay): anim = 1162 if bool(autocast) else 711 attacker.playAnimation(Animation.create(anim)) attacker.playGraphics(Graphic.create(129, 0, 100)) attacker.playSound(Sound.create(155, 1, 0)) attacker.playProjectile(Projectile.create(attacker.getCentreLocation(), victim.getCentreLocation(), 130, 60, 50, clientSpeed, 43, 35, victim.getProjectileLockonIndex(), 15, 48)) magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(131, gfxDelay, 100), PoisonType.NONE, False, 16, delay, 0) attacker.getSkills().addExperience(Skills.MAGIC, 34.5) attacker.getCombatState().setSpellDelay(6) attacker.getCombatState().setAttackDelay(4)