L2JMobius

Battle Chronicle Auto-Hunting delay's discuss

kanoriano · 3 · 2053

Offline kanoriano

  • Vassal
  • *
    • Posts: 6
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) ?


Offline NeilPerry

  • Vassal
  • *
    • Posts: 1
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);


Offline Index

  • Black Sheep
  • Marquis
  • *****
    • Posts: 536
 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