L2JMobius

Public Development => Solved/Invalid Bug Reports => Topic started by: Matrixane on August 05, 2021, 09:43:24 PM

Title: Autofarm System (Shorts/Long)
Post by: Matrixane on August 05, 2021, 09:43:24 PM
Greetings people. Anyone know can fix short and long range for autofarm. I think the problem Is geodata (off grid offset. Like sight vision) if any can help Will be very apreciated
Title: Re: Autofarm System (Shorts/Long)
Post by: jhordanny on August 06, 2021, 05:46:25 AM
Hi there, the problem is in this file AutoPlayTaskManager.java look for it in your java.org.l2jmobius.gameserver.taskmanager folder. Scroll down untill you find this:
// Find target.
            MonsterInstance monster = null;
            double closestDistance = Double.MAX_VALUE;
            TARGET: for (MonsterInstance nearby : World.getInstance().getVisibleObjectsInRange(player, MonsterInstance.class, player.getAutoPlaySettings().isLongRange() ? 1400: 600 ))
            {

What you must do now is flip the values to 600:1400 then compile.
Title: Re: Autofarm System (Shorts/Long)
Post by: Matrixane on August 06, 2021, 07:57:03 AM
thanks for help me. i working in recompile.