Cockiezi Posted October 26, 2013 Share Posted October 26, 2013 http://pastebin.com/iYYEXaye First I made an array of the monsters to kill (goblins) int[] npcs; npcs[0] = 1854; npcs[1] = 1855; npcs[2] = 1856; Link to comment Share on other sites More sharing options...
Pleasent Posted October 26, 2013 Share Posted October 26, 2013 (edited) if(!client.getMyPlayer().isUnderAttack()) RS2Object npc = this.closestAttackableNPCForName("NPC NAME"); or in your case, you can just do closestattackablenpcid(""); and instead of doing is.underAttack you can do is.notAnnimating but that's under you're discretion Edited October 26, 2013 by 313wizzy Link to comment Share on other sites More sharing options...
Cockiezi Posted October 26, 2013 Author Share Posted October 26, 2013 oops xD I didn't mean to post this but seems like I missclicked at some point ^^ What (if) I wanted to use multiple npc names for some weird reason? Just curious Link to comment Share on other sites More sharing options...
Pleasent Posted October 26, 2013 Share Posted October 26, 2013 So you would set a variable for it Public int[] npcs = {"0,0,0,0}; And then just put closestattackablenpcid(npcs); But idk if ^ is the right method to use just double check Link to comment Share on other sites More sharing options...
GoldenGates Posted October 26, 2013 Share Posted October 26, 2013 closestAttackableNPC(npcs).interact("Attack"); That's all you need to attack, add some code around it to make it more efficient, (sleeps, antiban) Link to comment Share on other sites More sharing options...
HashPlant512 Posted October 26, 2013 Share Posted October 26, 2013 closestAttackableNPC(npcs).interact("Attack"); That's all you need to attack, add some code around it to make it more efficient, (sleeps, antiban) Doesn't get much easier than that! :p Link to comment Share on other sites More sharing options...