當前位置: 首頁>>代碼示例>>Python>>正文


Python model.Projectile類代碼示例

本文整理匯總了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)
開發者ID:SiF2,項目名稱:Project_PS,代碼行數:7,代碼來源:spells.py

示例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)
開發者ID:SiF2,項目名稱:Project_PS,代碼行數:7,代碼來源:spells.py

示例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)
開發者ID:SiF2,項目名稱:Project_PS,代碼行數:8,代碼來源:spells.py

示例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)
開發者ID:SiF2,項目名稱:Project_PS,代碼行數:8,代碼來源:spells.py

示例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)
開發者ID:SiF2,項目名稱:Project_PS,代碼行數:8,代碼來源:spells.py

示例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)
開發者ID:ThomasPapp,項目名稱:turtle93765scape635,代碼行數:8,代碼來源:spells.py

示例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)
開發者ID:ThomasPapp,項目名稱:turtle93765scape635,代碼行數:8,代碼來源:spells.py

示例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)
開發者ID:ThomasPapp,項目名稱:turtle93765scape635,代碼行數:8,代碼來源:spells.py

示例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)
開發者ID:ThomasPapp,項目名稱:turtle93765scape635,代碼行數:8,代碼來源:spells.py

示例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)
開發者ID:ThomasPapp,項目名稱:turtle93765scape635,代碼行數:8,代碼來源:spells.py

示例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)
開發者ID:SiF2,項目名稱:Project_PS,代碼行數:9,代碼來源:spells.py

示例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)
開發者ID:SiF2,項目名稱:Project_PS,代碼行數:9,代碼來源:spells.py

示例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)
開發者ID:ThomasPapp,項目名稱:turtle93765scape635,代碼行數:10,代碼來源:spells.py

示例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)	
開發者ID:ThomasPapp,項目名稱:turtle93765scape635,代碼行數:10,代碼來源:spells.py

示例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)
開發者ID:SiF2,項目名稱:Project_PS,代碼行數:10,代碼來源:spells.py


注:本文中的org.rs2server.rs2.model.Projectile類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。