We moved our repositories to BitBucket!

If you can't login or you can't register to the forums do not rise an issue, instead please write to support (at) l2jserver.com

Check our wiki!

Report server issues here

Forum has been updated to phpBB 3.2, let's see if this fixes some minor bugs we had.

Thank you for visiting http://www.l2jserver.com/

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: 234
Joined: Tue Jan 12, 2016 3:53 am

How to extend next target range

Post by ShinichiYao » Sun Nov 19, 2017 3:58 pm

Next target only select very close mobs now. I remember its much farther in retail server.

User avatar
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 » Mon Nov 20, 2017 2:00 pm

it's purely a client side feature

User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 234
Joined: Tue Jan 12, 2016 3:53 am

Re: How to extend next target range

Post by ShinichiYao » Tue Nov 21, 2017 7:51 am

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
Advanced User
Advanced User
Posts: 630
Joined: Sat Aug 24, 2013 7:10 am

Re: How to extend next target range

Post by maneco2 » Tue Nov 21, 2017 9:39 pm

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: 234
Joined: Tue Jan 12, 2016 3:53 am

Re: How to extend next target range

Post by ShinichiYao » Wed Nov 22, 2017 12:35 am

OK. Maybe we should add a voice command ".nexttarget" to select random mob in knownlist :roll:

User avatar
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 » Wed Nov 22, 2017 5:18 pm

Do it, 5 minutes job

User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 234
Joined: Tue Jan 12, 2016 3:53 am

Re: How to extend next target range

Post by ShinichiYao » Thu Nov 23, 2017 4:59 am

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: 234
Joined: Tue Jan 12, 2016 3:53 am

Re: How to extend next target range

Post by ShinichiYao » Thu Nov 30, 2017 4:58 am

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

Post Reply