Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Perfect NPC Boss script

Skilled Illusionist
Joined
Apr 1, 2022
Messages
353
Reaction score
389
Hi, anyone has an better idea to let the Aion Bosses run perfect with script?

Code:
[COLOR=#CC7832]private void [/COLOR][COLOR=#FFC66D]stopAttack[/COLOR][COLOR=#A9B7C6]()[/COLOR]{
   [COLOR=#9876aa]canThink [/COLOR]= [COLOR=#cc7832]false;
[/COLOR][COLOR=#cc7832]   [/COLOR]setStateIfNot(AIState.[COLOR=#9876aa][I]WALKING[/I][/COLOR])[COLOR=#cc7832];
[/COLOR][COLOR=#cc7832]   [/COLOR][COLOR=#808080]//EmoteManager.emoteStopAttacking(getOwner());
[/COLOR][COLOR=#A9B7C6]}[/COLOR]

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:
[COLOR=#CC7832]case [/COLOR][COLOR=#6897BB]1[/COLOR][COLOR=#A9B7C6]:[/COLOR]   [COLOR=#cc7832]if [/COLOR]([COLOR=#9876aa]taskWait [/COLOR]== [COLOR=#cc7832]null [/COLOR]|| [COLOR=#9876aa]taskWait[/COLOR].isDone()) {
      stopAttack()[COLOR=#cc7832];
[/COLOR][COLOR=#cc7832]      [/COLOR]useSkill([COLOR=#6897bb]18217[/COLOR])[COLOR=#cc7832];[/COLOR][COLOR=#808080]//Strike Down with Anger
[/COLOR][COLOR=#808080]      [/COLOR][COLOR=#9876aa]taskWait [/COLOR]= ThreadPoolManager.[I]getInstance[/I]().schedule([COLOR=#cc7832]new [/COLOR]Runnable()
      {
         [COLOR=#bbb529]@Override
[/COLOR][COLOR=#bbb529]         [/COLOR][COLOR=#cc7832]public void [/COLOR][COLOR=#ffc66d]run[/COLOR]()
         {
            continueAttack()[COLOR=#cc7832];
[/COLOR][COLOR=#cc7832]         [/COLOR]}
      }[COLOR=#cc7832], [/COLOR]timeDelay1)[COLOR=#cc7832];
[/COLOR][COLOR=#cc7832]      break;
[/COLOR][COLOR=#CC7832]   [/COLOR][COLOR=#A9B7C6]}[/COLOR]
What can we do, to let the script running good without the reset message and the reset sound?
 
Skilled Illusionist
Joined
Apr 1, 2022
Messages
353
Reaction score
389
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?
 
Newbie Spellweaver
Joined
Sep 15, 2013
Messages
34
Reaction score
5
Is there a function to force the boss to reset it?.
If there is one, you can call it after stopAttack();
 
Skilled Illusionist
Joined
Apr 1, 2022
Messages
353
Reaction score
389
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
 
Newbie Spellweaver
Joined
Sep 15, 2013
Messages
34
Reaction score
5
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
 
Back
Top