Jump to content

Need some wisdom


Recommended Posts

Posted (edited)

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
Posted

 

Why don't you just do:

if(npc.getPosition().distance(myPosition()) <= 3) // if npc is less than or equal to 3 tiles away

 

It's essentially same thing kind of. I just don't want to be in the NPC area everytime I go to attack

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

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