SocomX1 Posted September 7, 2014 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.
Swizzbeat Posted September 7, 2014 Posted September 7, 2014 Just pass a Filter argument and check for isAttackable().
SocomX1 Posted September 7, 2014 Author Posted September 7, 2014 Thanks for the help, I'll give that a try.