NPC check Z coordinate?

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
lishawj
Posts: 253
Joined: Thu Apr 30, 2009 12:29 am

NPC check Z coordinate?

Post 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.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: NPC check Z coordinate?

Post 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
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
Post Reply