Skip to content

All NPC/RAIDS RADIUS LIMIT

Featured Replies

Hi i using L2jacis and i need for all npc system Anti-Take-Away.
can't find working on newest l2jacis rev.

Edited by martuxas1

AttackableAI#thinkAttack

if (attackTarget == null || _attackTimeout < System.currentTimeMillis() || MathUtil.calculateDistance(npc, attackTarget, true) > 2000)

Simply add here such check :

 

... || (npc.getSpawn() != null && !npc.isInsideRadius(npc.getSpawn(),...)

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.