mikemaster Posted June 18, 2014 Posted June 18, 2014 (edited) Hey there again... i wanted to add in my server a code to Make the players not able to attacks Npcs everything worked fine expect this it says that i have to add it inside L2NpcINstance.java I currently use acis project @@ -324,5 +324,5 @@ public boolean isAttackable() { - return false; + return Config.ALT_ATTACKABLE_NPCS; } Edited June 18, 2014 by mikemaster
0 SweeTs Posted June 18, 2014 Posted June 18, 2014 (edited) And what is your problem, cuz I don't get it.. ? Just add this check @ L2NpcInstance.java . With that, you won't be able to hit npcs inside a town zone. Drop the check or leave, make a config or w/e :P @Override public boolean isAttackable() { if(isInsideZone(ZoneId.TOWN)) return false; return true; } Edited June 18, 2014 by SweeTs
0 mikemaster Posted June 18, 2014 Author Posted June 18, 2014 i want to make it not able to hit npcs not only in a town zone but everywhere...
0 SweeTs Posted June 18, 2014 Posted June 18, 2014 As I told, just drop the zone check and leave return false;
Question
mikemaster
Hey there again... i wanted to add in my server a code to Make the players not able to attacks Npcs
everything worked fine expect this it says that i have to add it inside L2NpcINstance.java
I currently use acis project
@@ -324,5 +324,5 @@ public boolean isAttackable() { - return false; + return Config.ALT_ATTACKABLE_NPCS; }Edited by mikemaster4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now