Perfect NPC Boss script

Results 1 to 5 of 5
  1. #1
    Member Beckupgaming is offline
    MemberRank
    Apr 2022 Join Date
    Buxtehude (DE)Location
    87Posts

    Perfect NPC Boss script

    Hi, anyone has an better idea to let the Aion Bosses run perfect with script?

    Code:
    private void stopAttack(){
       canThink = false;
    setStateIfNot(AIState.WALKING);
    //EmoteManager.emoteStopAttacking(getOwner());
    }
    This is my Code snippet. When i reactivate the comment out inside my System Chat is popping up "Tahabata Pyrelord gaves up the pursuit" But he is not reseting. But the attack is working fine, at the moment sometimes he is doing double hits after a Skill was using (till the next Skill)

    Code:
    case 1:   if (taskWait == null || taskWait.isDone()) {
          stopAttack();
    useSkill(18217);//Strike Down with Anger
    taskWait = ThreadPoolManager.getInstance().schedule(new Runnable()
          {
             @Override
    public void run()
             {
                continueAttack();
    }
          }, timeDelay1);
          break;
    }
    What can we do, to let the script running good without the reset message and the reset sound?


  2. #2
    Member Beckupgaming is offline
    MemberRank
    Apr 2022 Join Date
    Buxtehude (DE)Location
    87Posts

    Re: Perfect NPC Boss script

    ok, looks like this is an timing Problem with the atk delay, but no one has an Idea for this XD
    I has already the delay timings from some Skill set to "Skillduration (3500) + 500;" to make the taskwait to 4 seconds and not 3,5 seconds, but for some Skills i already has the auto atk double hit till the next Skill use.

    No one has an Idea for this?

  3. #3
    Enthusiast Jack85 is offline
    MemberRank
    Sep 2013 Join Date
    35Posts

    Re: Perfect NPC Boss script

    Is there a function to force the boss to reset it?.
    If there is one, you can call it after stopAttack();

  4. #4
    Member Beckupgaming is offline
    MemberRank
    Apr 2022 Join Date
    Buxtehude (DE)Location
    87Posts

    Re: Perfect NPC Boss script

    No, working fine now. But on some skills already double hits. Seems like is a delay Problem. The Animation and the dmg cames not synchron with my script. taskwait is rounded from a skillduration from 3500msec to 4000msec, but the issue is already there for some Skills

  5. #5
    Enthusiast Jack85 is offline
    MemberRank
    Sep 2013 Join Date
    35Posts
    you can create an internal function to check if the skill has been used, if not you can let the boss use the skill and then reset at the end of the main attack func. Probably , but I m not sure about that, you can prevent the double hit



Advertisement