Now im trying to find where is problem, but can't :D
function:
public boolean canSeeTarget(final L2Object cha, final L2Object target){// If geo is off do simple check :]// Don't allow casting on players on different dungeon lvls etcreturnMath.abs(target.getZ()- cha.getZ())<1000;}
check:
if(skill.getCastRange()>0&&!GeoData.getInstance().canSeeTarget(this, target)){
sendMessage("target z:"+target.getZ()+" cha z:"+this.getZ()+"Z:"+Math.abs(target.getZ()-this.getZ()));
sendPacket(newSystemMessage(SystemMessageId.CANT_SEE_TARGET));
sendPacket(ActionFailed.STATIC_PACKET);return;}
I haven't tryied the subclass system because i will not use it but i can check it, for sure it has some dublicate ai's in npcdata.txt (two monsters have the same ai) so you need to change them, you can find them from other pack because it's easier that way. I can send you the system, i guess there is no point to send the whole client because my client is changing to c3 but also the pack reads specific files from the system thats why some people may get disconected when they are trying to login. https://www.mediafire.com/file/4nd8fb9nwmfmdb0/System.rar/file
Question
wongerlt
Hello.
Now im trying to find where is problem, but can't :D
function:
check:
https://prnt.sc/gk7yg8
cast range = 900
565-565=0
0<1000=true
900>0 = true
so it must be true and false in if.
so where is problem?
and this problem only in fortress of dead
Edited by wongerlt3 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