Combo Ability Skill Duration

Results 1 to 4 of 4
  1. #1
    Novice oinkoink08 is offline
    MemberRank
    Sep 2021 Join Date
    3Posts

    Combo Ability Skill Duration

    Hi, asking for help on how to implement infinite combo ability time for HeavenMS.

    I already changed the time between valid combos to a larger number, I set 300000 as the number between combos, so even when I hit the enemies after let's say 1 minute I still retain my combo count.

    Code:
    public class AranComboHandler extends AbstractPacketHandler {
        @Override
    public void handlePacket(InPacket p, Client c) {
            final Character player = c.getPlayer();
            int skillLevel = player.getSkillLevel(SkillFactory.getSkill(Aran.COMBO_ABILITY));
            if (GameConstants.isAran(player.getJob().getId()) && (skillLevel > 0 || player.getJob().getId() == 2000)) {
                final long currentTime = currentServerTime();
                short combo = player.getCombo();
                if ((currentTime - player.getLastCombo()) > 300000 && combo > 0) {
                    combo = 0;
                }
                combo++;
                if (combo >= 10){
                    int comboLevel = Math.min(combo / 10, skillLevel);
                    SkillFactory.getSkill(Aran.COMBO_ABILITY).getEffect(comboLevel).applyComboBuff(player, combo);
                }
                player.setCombo(combo);
                player.setLastCombo(currentTime);
            }
        }
    }
    The combo ability (Skill that adds stat points whenever I reach 10 combo count) however disappear simultaneously with the fade out of the combo count number shown on screen. Should I just change some number on the Skill.wz? or is this client side edit?

    I wanted to achieve here is when the combo count faded out I still retain the stat the combo ability gives me. I'm thinking it may be connected to the COMBO_ABILITY skill duration or something in Client Side.



    Last edited by oinkoink08; 27-09-21 at 03:16 AM. Reason: Elaborate on what is needed


  2. #2
    Valued Member lololololololol is offline
    MemberRank
    Sep 2019 Join Date
    110Posts

    Re: Combo Ability Skill Duration

    client side

  3. #3
    Novice oinkoink08 is offline
    MemberRank
    Sep 2021 Join Date
    3Posts

    Re: Combo Ability Skill Duration

    Thanks for that. Now to start searching for that. good luck to me.

  4. #4
    Valued Member lololololololol is offline
    MemberRank
    Sep 2019 Join Date
    110Posts

    Re: Combo Ability Skill Duration

    haha yea client side is a pain



Advertisement