当前位置: 首页>>代码示例>>Python>>正文


Python model.Animation类代码示例

本文整理汇总了Python中org.rs2server.rs2.model.Animation的典型用法代码示例。如果您正苦于以下问题:Python Animation类的具体用法?Python Animation怎么用?Python Animation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Animation类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: clawsOfGuthix

def clawsOfGuthix(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay):
	chargedbonus = 10 if attacker.getCombatState().isCharged() else 0
	attacker.playAnimation(Animation.create(811))
	magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(77, 60, 100), PoisonType.NONE, False, 20 + chargedbonus, 3, 0)
	attacker.getSkills().addExperience(Skills.MAGIC, 35)
	attacker.getCombatState().setSpellDelay(6)
	attacker.getCombatState().setAttackDelay(4)
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:7,代码来源:spells.py

示例2: 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)
开发者ID:SiF2,项目名称:Project_PS,代码行数:7,代码来源:spells.py

示例3: 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)
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:7,代码来源:spells.py

示例4: 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)
开发者ID:SiF2,项目名称:Project_PS,代码行数:7,代码来源:spells.py

示例5: 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)
开发者ID:SiF2,项目名称:Project_PS,代码行数:7,代码来源:spells.py

示例6: spellbookSwap

def spellbookSwap(mob, spellBook):
	mob.playAnimation(Animation.create(6299))
	mob.playGraphics(Graphic.create(1062))
	mob.getCombatState().setCanSpellbookSwap(False)
	mob.getCombatState().setCanSpellbookSwap(200)
	mob.getActionSender().sendSidebarInterface(105, MagicCombatAction.SpellBook.forId(spellBook).getInterfaceId())
	mob.getCombatState().setSpellBook(spellBook)
开发者ID:SiF2,项目名称:Project_PS,代码行数:7,代码来源:spells.py

示例7: flamesOfZamorak

def flamesOfZamorak(attacker, victim, spell, autocast, clientSpeed, magicCombatAction, gfxDelay, delay):
	chargedbonus = 10 if attacker.getCombatState().isCharged() else 0
	attacker.playAnimation(Animation.create(811))
	magicCombatAction.hitEnemy(attacker, victim, spell, Graphic.create(78, 60, 0), PoisonType.NONE, False, 20 + chargedbonus, 3, 0)
	attacker.getSkills().addExperience(Skills.MAGIC, Constants.EXP_MODIFIER * 35)
	attacker.getCombatState().setSpellDelay(6)
	attacker.getCombatState().setAttackDelay(4)
开发者ID:SiF2,项目名称:Project_PS,代码行数:7,代码来源:spells.py

示例8: 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)
开发者ID:SiF2,项目名称:Project_PS,代码行数:7,代码来源:spells.py

示例9: 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)
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:7,代码来源:spells.py

示例10: 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)
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:7,代码来源:spells.py

示例11: 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)
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:8,代码来源:spells.py

示例12: 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)
开发者ID:SiF2,项目名称:Project_PS,代码行数:8,代码来源:spells.py

示例13: 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)
开发者ID:SiF2,项目名称:Project_PS,代码行数:8,代码来源:spells.py

示例14: 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)
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:8,代码来源:spells.py

示例15: 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)
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:8,代码来源:spells.py


注:本文中的org.rs2server.rs2.model.Animation类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。