SocomX1 Posted September 7, 2014 Share Posted September 7, 2014 Working on my very first OSBot Script. I'm looking for a way to grab the closest NPC that is a certain id (using the npcs.closest() method), but then get the NEXT closest NPC of that id if the first is in combat. Link to comment Share on other sites More sharing options...
thepecher Posted September 7, 2014 Share Posted September 7, 2014 isAttackable() should do it for you Link to comment Share on other sites More sharing options...
Swizzbeat Posted September 7, 2014 Share Posted September 7, 2014 Just pass a Filter argument and check for isAttackable(). Link to comment Share on other sites More sharing options...
SocomX1 Posted September 7, 2014 Author Share Posted September 7, 2014 Thanks for the help, I'll give that a try. Link to comment Share on other sites More sharing options...