Guards attackable

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
lea
Posts: 35
Joined: Wed Sep 30, 2009 9:45 pm

Guards attackable

Post by lea »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:
Hi:)
I have less than 10 posts so I have to post my question here.

I would like to make Guards attackable as a small kind of "bot protection". Bot choses targets randomly but cant target a PK Guard (ctrl needed). I would like to set a guard to be targeted without a ctrl.

I found this:
L2GuardInstance.java

Code: Select all

	if (containsTarget(player))			{				if (_log.isDebugEnabled())					_log.debug(player.getObjectId() + ": Attacked guard " + getObjectId()); 				// Set the L2PcInstance Intention to AI_INTENTION_ATTACK				[color=red]player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, this);[/color]     [b]<-----this should be modified[/b]
Please help me and give any info how do do this.

Thank you.
Regards.
Post Reply