Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

L2J [Help] Players attacking town NPCs

Experienced Elementalist
Joined
May 11, 2006
Messages
218
Reaction score
0
Hi I use L2jfree and players can attack NPCs in town. How can I fix this? I never had this problem before.. Any help would be appreciated.
 
Newbie Spellweaver
Joined
Jan 27, 2007
Messages
41
Reaction score
0
Its not a bug. In Hellbound u can attack the NPC-s in towns. U can disable this option in the java core:

I use normal L2J, and i found the file in here:
C:\Workspace\L2_GameServer\java\net\sf\l2j\gameserver\model\actor\instance\L2NpcInstace.java


Seach this section in the file:

@Override
public boolean isAttackable()
{
return true;
}



If u want disable that, use this:

@Override
public boolean isAttackable()
{
return false;
}
 
Upvote 0
Supreme Arcanarch
Joined
Apr 24, 2006
Messages
906
Reaction score
10
look at the svn
and if you can`t solve it (finding the source) move to L2jFree, because they have source available from c5
 
Upvote 0
Back
Top