Cockiezi Posted October 26, 2013 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;
Pleasent Posted October 26, 2013 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
Cockiezi Posted October 26, 2013 Author 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
Pleasent Posted October 26, 2013 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
GoldenGates Posted October 26, 2013 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)
HashPlant512 Posted October 26, 2013 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