- 0
This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
Chakl22
Hi i just find a code for Make a PK Guard Detect daggers Even if them go in "Silent Move" (so high lvl daggers will can't go there Pking and going Silent Move to evade Pk Guards)
The code i find is this:
L2AttackableAI
// Check if the target isn't dead, is in the Aggro range and is at the same height if (target.isAlikeDead() || !me.isInsideRadius(target, me.getAggroRange(), false, false) || Math.abs(_actor.getZ() - target.getZ()) > 300) return false; if (_selfAnalysis.cannotMoveOnLand && !target.isInsideZone(L2Character.ZONE_WATER)) return false; // Check if the target is a L2PlayableInstance if (target instanceof L2PlayableInstance) { // Check if the AI isn't a Raid Boss and the target isn't in silent move mode -- if (!(me instanceof L2RaidBossInstance) && ((L2PlayableInstance) target).isSilentMoving()) + if (!(meinstanceof L2RaidBossInstance) && !(me instanceof L2GuardInstance) && ((L2PlayableInstance)target).isSilentMoving()) return false; }But in High Five this looks a bit diferent:
{ // Check if the AI isn't a Raid Boss, can See Silent Moving players and the target isn't in silent move mode [color=green]if (!(me.isRaid()) && !(me.canSeeThroughSilentMove()) && ((L2Playable) target).isSilentMoving())[/color] return false; }So if someone can tell me the correct code for make this work in HI5 would be great. Ty.
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now