Page 1 of 1

NPC check Z coordinate?

Posted: Fri Aug 21, 2009 1:10 pm
by lishawj
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision Number:
L2JDP Revision Number:

Morning everyone,

How may I make NPC/L2 monsters check for Z coordinate when attacking a player? For example, player A on wyvern attacks an npc, flies high up into the sky but the npc can still attack him/her if geodata is not blocking line of sight for the player. How do I set the Z coordinate distance from NPC to PLAYER so that an npc will no longer attack a player on wyvern who had gone beyond that Z distance threshold?

This is one of the little things I had on my to check lists so any input is appreciated. Thanks.

Re: NPC check Z coordinate?

Posted: Fri Aug 21, 2009 1:16 pm
by janiii
maybe check methods of net.sf.l2j.gameserver.util.Util which calculate/check distance of objects and where are they called without z-coord check