Jump to content
  • 0

Help Make Guards detect Players with "Silent Move" Effect.


Question

Posted

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

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...