Skip to content

How To Disable Npc Attack

Featured Replies

Hello guys!

I use l2acis and I have a problem. Everyone player can hit npcs.

Can someone help me please? 
Thank.

  • Author

RequestActionUse.java

Thank for answer. But what I should to change there?

  • Author

Attack action for NPC in the peace zone. I mean.

I dont know my friend. Just give me the line.

L2NpcInstance.java

 

 

@Override
public boolean isAttackable()
{
    if (isInsideZone(ZoneId.TOWN))
        return false;

    return true;
}

 

L2NpcInstance.java

@Override
public boolean isAttackable()
{
    if (isInsideZone(ZoneId.TOWN))
        return false;

    return true;
}

return false and true? 

return false and true? 

Read the check and try to understand it.

Read the check and try to understand it.

oh my bad, sorry.

Guest
This topic is now closed to further replies.

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.