Jump to content

Need some wisdom


TFW

Recommended Posts

I am having some trouble here. It seems that npc.getArea(int).contains(myPosition()) is returning false on me?

 

Anytime the character is in the area of the (filtered NPC OR the interacting) and in melee range -> walk somewhere random

 

 

 

Why don't you just do:

if(npc.getPosition().distance(myPosition()) <= 3) // if npc is less than or equal to 3 tiles away
Edited by Explv
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...