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.
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.
On April 11 at 18:00 server time (GMT +2), the open beta test of our upcoming Chronicle 2 update will begin!
We invite everyone to join, explore the world of C2 ahead of the official launch, and share your feedback.
📌 Players who find bugs during OBT will receive CoL as a reward:
- 1 CoL for each staticmeshes bug For example, passing through textures, stairs, etc.
- 2 CoL or more for server-side bugs (depending on severity).
You can report bugs via support on Discord or on the forum.
Open beta testing will last approximately until 15.04 20:00 (GMT +2).
Your activity and input will help us improve the game!
The download links will be available later.
Please keep me in your contacts, I want to add this in my features for later (30-60 days) and I do have some questions regarding other forms of payment too. Thanks!
Question
carlos_69
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
if (containsTarget(player))
{
if (_log.isDebugEnabled())
_log.debug(player.getObjectId() + ": Attacked guard " + getObjectId());
// Set the L2PcInstance Intention to AI_INTENTION_ATTACK
player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, this); <-----this should be modified
Please help me and give any info how do do this.
Thank you.
Regards.
8 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.