public void processCharacterAnimationSelf(UInt16 abilityID) { ServerPackets pak = new ServerPackets(); // 2904 0429 = Hacker_VirusLaunch_A // 2a04 042a = Hacker_VirusLaunch_D // see movementAnims.tx - its for codes something (0x31) if (currentAbility.getAbilityExecutionFX() > 0) { pak.sendCastAbilityOnEntityId(2, currentAbility.getAbilityExecutionFX(), 200); } if (currentAbility.getCastingTime() > 0) { byte[] castAnimStart = currentAbility.getCastAnimStart(); // Cast pak.sendSystemChatMessage(Store.currentClient, "Animation Starts with Byte ID " + StringUtils.bytesToString(castAnimStart), "BROADCAST"); pak.sendPlayerAnimation(Store.currentClient, StringUtils.bytesToString_NS(castAnimStart)); // And Time a "Damage" or "Buff" Animation int castingTime = (int)this.currentAbility.getCastingTime() * 1000; this.damageTimer = new Timer(abilityAnimateTheTarget, this, castingTime, 0); } }
public void processCharacterAnimationSelf(UInt16 abilityID) { ServerPackets pak = new ServerPackets(); // 2904 0429 = Hacker_VirusLaunch_A // 2a04 042a = Hacker_VirusLaunch_D // see movementAnims.tx - its for codes something (0x31) if (currentAbility.getAbilityExecutionFX() > 0) { pak.sendCastAbilityOnEntityId(2, currentAbility.getAbilityExecutionFX()); } if (currentAbility.getCastingTime() > 0) { // Cast pak.sendPlayerAnimation(Store.currentClient, "2904"); // And Time a "Damage" or "Buff" Animation int castingTime = (int)this.currentAbility.getCastingTime() * 1000; this.damageTimer = new Timer(new TimerCallback(abilityAnimateTheTarget), this, castingTime, 0); } }