Noticias:

No tienes permiso para ver los enlaces. Para poder verlos Registrate o Conectate.

Menú Principal

Voice rango del Next Target

Iniciado por Swarlog, Ago 03, 2025, 01:37 AM

Tema anterior - Siguiente tema

Swarlog

Solo es un ejemplo para implementar un nuevo comando next target.

Solo debeis crear un nuevo voice command, para el comando".nexttarget" y añadir lo siguiente:

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;