L2JMobius

Free Users => General Discussion => Topic started by: kanoriano on March 15, 2022, 05:52:23 PM

Title: Auto-Hunting delay's discuss
Post by: kanoriano on March 15, 2022, 05:52:23 PM
Hi all! Today i need discuss about 6.1 delays on Auto-Hunting:

1. Switch target after mob death
2. Reuse magic/skills and etc.

What im find out:
..\java\org\l2jmobius\gameserver\taskmanagerAutoPlayTaskManager.java
ThreadPool.scheduleAtFixedRate(this, 500, 500); > ThreadPool.scheduleAtFixedRate(this, 200, 200);
>> reduce switch delay after mob death

Someone guy tell me if reduce this paramets, mb it help reduce delay on skill use:
..\java\org\l2jmobius\gameserver\model\skill\Skill.java
_channelingTickInterval = (long) set.getFloat("channelingTickInterval", 2000f) * 1000;
_channelingStart = (long) (set.getFloat("channelingStart", 0f) * 1000);

is correct to reduce this gain(* 1000) ?
Title: Re: Auto-Hunting delay's discuss
Post by: NeilPerry on May 22, 2022, 12:26:12 PM
Hi all! Today i need discuss about 6.1 delays on Auto-Hunting:

2. Reuse magic/skills and etc.

Someone guy tell me if reduce this paramets, mb it help reduce delay on skill use:
..\java\org\l2jmobius\gameserver\model\skill\Skill.java
_channelingTickInterval = (long) set.getFloat("channelingTickInterval", 2000f) * 1000;
_channelingStart = (long) (set.getFloat("channelingStart", 0f) * 1000);

is correct to reduce this gain(* 1000) ?

Seems in additional you have to change AutoUseTaskManager for instausing skills after changed target.

..\java\org\l2jmobius\gameserver\taskmanagerAutoUseTaskManager.java
ThreadPool.scheduleAtFixedRate(this, 1000, 1000); to ThreadPool.scheduleAtFixedRate(this, 200, 200);
Title: Re: Auto-Hunting delay's discuss
Post by: Index on May 22, 2022, 12:43:52 PM
 more proper will be make this thing like multithread, because of make delay so low - you will can have queue in threads for make this code.
If you play alone - you can set any value what you want.
But on live server not recomended