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 processSelfAnimation(AbilityItem ability) { // ServerPackets serverPackets = new ServerPackets(); // serverPackets.sendAbilitySelfAnimation(2, ability.getAbilityID(), (UInt32) ability.getAbilityExecutionFX()); ServerPackets serverPackets = new ServerPackets(); serverPackets.sendAbilitySelfAnimation(2, ability.getAbilityID(), NumericalUtils.ByteArrayToUint32(ability.getCastAnimStart(), 1)); }