本文整理汇总了Python中org.rs2server.rs2.model.Sound类的典型用法代码示例。如果您正苦于以下问题:Python Sound类的具体用法?Python Sound怎么用?Python Sound使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Sound类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: smokeBarrage
def smokeBarrage(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay):
attacker.playSound(Sound.create(179, 1, 20))
attacker.playAnimation(Animation.create(1979))
magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(390, 80, 100), PoisonType.SUPER_POISON, True, 27, 4, 0)
attacker.getSkills().addExperience(Skills.MAGIC, Constants.EXP_MODIFIER * 48)
attacker.getCombatState().setSpellDelay(6)
attacker.getCombatState().setAttackDelay(4)
示例2: bloodBarrage
def bloodBarrage(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay):
attacker.playSound(Sound.create(107, 1, 20))
attacker.playAnimation(Animation.create(1979))
magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(377, 80, 0), PoisonType.NONE, True, 29, 4, 0)
attacker.getSkills().addExperience(Skills.MAGIC, Constants.EXP_MODIFIER * 51)
attacker.getCombatState().setSpellDelay(6)
attacker.getCombatState().setAttackDelay(4)
示例3: shadowBarrage
def shadowBarrage(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay):
attacker.playSound(Sound.create(175, 1, 20))
attacker.playAnimation(Animation.create(1979))
magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(383, 80, 0), PoisonType.NONE, True, 28, 4, 0)
attacker.getSkills().addExperience(Skills.MAGIC, 49)
attacker.getCombatState().setSpellDelay(6)
attacker.getCombatState().setAttackDelay(4)
示例4: smokeBurst
def smokeBurst(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay):
attacker.playSound(Sound.create(179, 1, 20))
attacker.playAnimation(Animation.create(1979))
magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(389, 80, 0), PoisonType.POISON, True, 17, 4, 0)
attacker.getSkills().addExperience(Skills.MAGIC, 35.5)
attacker.getCombatState().setSpellDelay(6)
attacker.getCombatState().setAttackDelay(4)
示例5: bloodRush
def bloodRush(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay):
attacker.playSound(Sound.create(108, 1, 20))
attacker.playAnimation(Animation.create(1978))
magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(373, 80, 0), PoisonType.NONE, False, 15, 4, 0)
attacker.getSkills().addExperience(Skills.MAGIC, 33)
attacker.getCombatState().setSpellDelay(6)
attacker.getCombatState().setAttackDelay(4)
示例6: 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)
示例7: 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)
示例8: 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)
示例9: 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)
示例10: lowAlch
def lowAlch(mob, item):
amt = int(item.getDefinition().getValue() * 0.6)
mob.getInventory().remove(Item(item.getId(), 1))
mob.getInventory().add(Item(995, amt))
mob.playAnimation(Animation.create(712))
mob.playGraphics(Graphic.create(112, 0, 100))
mob.playSound(Sound.create(98, 1, 20))
mob.getSkills().addExperience(Skills.MAGIC, 25 * Constants.EXP_MODIFIER)
示例11: 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)
示例12: 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)
示例13: 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)
示例14: 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)
示例15: waterStrike
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)