How to extend next target range

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 262
Joined: Tue Jan 12, 2016 3:53 am

How to extend next target range

Post by ShinichiYao »

Next target only select very close mobs now. I remember its much farther in retail server.
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: How to extend next target range

Post by Sdw »

it's purely a client side feature
User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 262
Joined: Tue Jan 12, 2016 3:53 am

Re: How to extend next target range

Post by ShinichiYao »

Sdw wrote: Mon Nov 20, 2017 2:00 pm it's purely a client side feature
So why this feature can select at least 900 distance target in retail server, but less than 400 in L2J server?
User avatar
maneco2
Initiates
Initiates
Posts: 664
Joined: Sat Aug 24, 2013 7:10 am

Re: How to extend next target range

Post by maneco2 »

In retail is not 900 range, imagine next target with 900 range, same range mystic classes skills range, retail 400 range on High Five.
User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 262
Joined: Tue Jan 12, 2016 3:53 am

Re: How to extend next target range

Post by ShinichiYao »

OK. Maybe we should add a voice command ".nexttarget" to select random mob in knownlist :roll:
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: How to extend next target range

Post by Sdw »

Do it, 5 minutes job
User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 262
Joined: Tue Jan 12, 2016 3:53 am

Re: How to extend next target range

Post by ShinichiYao »

Spend me 1 hour :cry:

Code: Select all

	case "nexttarget":
		List<L2Character> chars = activeChar.getKnownList().getKnownCharactersInRadius(1000);
		Collections.shuffle(chars);
		for (L2Character nextMob : chars)
		{
			if ((nextMob != null) && nextMob.isAttackable() && !nextMob.isDead() && nextMob != activeChar.getTarget() && GeoData.getInstance().canSeeTarget(activeChar, nextMob))
			{
				activeChar.setTarget(nextMob);
				break;
			}
		}
		break;
But it cause flood block and mute for 1 min if using it too often... :crazy:

How to exclude specific voice command from Chat Ban?
User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 262
Joined: Tue Jan 12, 2016 3:53 am

Re: How to extend next target range

Post by ShinichiYao »

I don't see any CHATBAN_FOR_1_MINUTE keyword used in server source code, is it also client side feature? :crazy:
Post Reply