本文整理汇总了Python中org.rs2server.rs2.model.Projectile类的典型用法代码示例。如果您正苦于以下问题:Python Projectile类的具体用法?Python Projectile怎么用?Python Projectile使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Projectile类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: teleBlock
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)
示例2: magicDart
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)
示例3: bloodBlitz
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)
示例4: smokeBlitz
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)
示例5: stun
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)
示例6: smokeRush
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)
示例7: iceRush
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)
示例8: vulnerability
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)
示例9: entangle
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)
示例10: ibanBlast
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)
示例11: crumbleUndead
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)
示例12: iceBarrage
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)
示例13: earthWave
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)
示例14: iceBlitz
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)
示例15: fireWave
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)