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 Quote
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 Quote
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... Quote
0 SweeTs Posted June 18, 2014 Posted June 18, 2014 As I told, just drop the zone check and leave return false; Quote
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
Edited by mikemaster4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.