Guards attackable
Posted: Mon Dec 14, 2009 3:32 pm
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
Please help me and give any info how do do this.
Thank you.
Regards.
» 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]
Thank you.
Regards.