No I did not download anything else.
heres the script :
mport java.awt.Color; import java.awt.Graphics; import java.util.List; import org.osbot.script.Script; import org.osbot.script.ScriptManifest; import org.osbot.script.rs2.map.Position; import org.osbot.script.rs2.model.NPC; import org.osbot.script.rs2.model.Player; import org.osbot.script.rs2.skill.Skill; import org.osbot.script.rs2.ui.Prayer; import org.osbot.script.rs2.ui.Tab; @ScriptManifest(author = "Clag", name = "Clag Pest Controller", info = "Plays pest control", version = 1.21d) public class Pest extends Script { @Override public void onExit() throws InterruptedException { } @Override public int onLoop() throws InterruptedException { try { closeOpenInterface(); if( !isRunning() && myPlayer().getClient().getRunEnergy() > 49 && !(myX() == 2657 && myY() == 2639) ) { setRunning( true ); } if( x < 2660 || y >= 2645 ) { //2660 2638 to 2663 2643 [inside the boat] walkedToMiddle = false; if( !(myX() == 2657 && myY() == 2639) && !( x > 5000 ) ) { walkExact( new Position( 2657, 2639, 0 ) ); } } if( myX() == 2657 && myY() == 2639 ) { closestObject(14315).interact("Cross"); waiting = true; walkedToSee = false; if( inDialogue() ) { closestObject(14315).interact("Cross"); closestObject(14315).interact("Cross"); } walked = false; walkedToMiddle = false; waittimetoomuch = 0; return random( 150, 200 ); } if( waiting ) { //waiting antiban if( myY() > 2645) waiting = false; if( !walked ) { walkMiniMap( new Position( random( 2661, 2663 ), random( 2639, 2642 ), 0 ) ); walked = true; } if( random( 1, 20 ) == 15 ) walked = false; myPlayer().getClient().rotateCameraToAngle( random( 50, 300 ) ); client.moveMouse( client.getLocalPlayers().get( random( 0, client.getLocalPlayers().size()-1 ) ).getMouseDestination(), false ); walkedToMiddle = false; waittimetoomuch++; waittimetoomuch+=1.4; if( waittimetoomuch >= 5000 ) { logoutTab.logOut(); } } } catch( Exception e ) { //waiting = false; } /** End Beach interaction **/ /** Start game **/ //7649, 6050 protect guy //7648, 6038 extra kills //monsters: 918, 920 if( myX() > 5000 ) { try { waiting = false; walked = false; waittimetoomuch = 0; if( walkedToSee == false ) { try { x = myX(); y = myY(); walk( new Position( closestNPCForName("Squire").getPosition().getX()+(2+random( -2, 2)), closestNPCForName("Squire").getPosition().getY()-(10+random( 1, 6 )), closestNPCForName("Squire").getPosition().getZ() ) );//closestNPCForName("Squire").getPosition() ); walkedToSee = true; enemy = null; if( myPlayer().getClient().getLevelStat()[ Skill.PRAYER.getId() ] >= 34 ) prayerTab.setPrayer( Prayer.INCREDIBLE_REFLEXES, true ); } catch( Exception e ) { walkedToSee = true; } } if( !openTab( Tab.INVENTORY ) ) { openTab( Tab.INVENTORY ); } if( myX() == x && myY() == y ) { walkMiniMap( new Position( closestNPCForName("Squire").getPosition().getX()+(2+random( -2, 2)), closestNPCForName("Squire").getPosition().getY()-(10+random( 1, 6 )), closestNPCForName("Squire").getPosition().getZ() ) );//closestNPCForName("Squire").getPosition() ); } if( myPlayer().getWalkingQueueSize() <= 1 ) { if( enemy == null || enemy != null && (!enemy.exists() || !enemy.isVisible()) ) enemy = closestNPCListForName("Torcher","Defiler","Ravager","Brawler","Shifter").get( random( 0, closestNPCListForName("Torcher","Defiler","Ravager","Brawler","Shifter").size()%2 ) ); if( enemy != null && (enemy.isVisible() || enemy.getPosition().distance(myPosition()) == 0) && !myPlayer().isFacing(enemy) && walkedToSee && !myPlayer().isAnimating()) { //enemy.interact("Attack"); walkedToSee = true; if( enemy.getName().equalsIgnoreCase("Brawler") ) { enemy.interact("Attack"); } else { client.moveMouse( enemy.getMouseDestination() , false); client.clickMouse( false ); } return random( 500, 650 ); } } if( enemy != null && ( enemy.getHealth() <= 0 || !enemy.isVisible() || !enemy.exists()) ) enemy = null; } catch( Exception e ) { //things havnt spawned yet } } if( random( 1, 5 ) == 1 ) { myPlayer().getClient().rotateCameraToAngle( random( 150, 300 ) ); } if( random( 1, 4 ) == 3 ) { myPlayer().getClient().rotateCameraPitch( random( 200, 275 ) ); } if(waiting) return random( 1800, 2250 ); return random( 300, 450 ); } @Override public void onMessage(String arg0) throws InterruptedException { } @Override public void onPaint(Graphics g) { try { g.setColor( Color.BLUE ); g.fillRect( 0, 475, 800, 500); g.setColor( Color.WHITE ); g.drawString( "TimeTillLogout: "+((int)5000-(waittimetoomuch))+" waiting:"+waiting, 0, 485); } catch ( Exception e ) { } } @Override public void onPlayerMessage(String arg0, String arg1) throws InterruptedException { } @Override public void onStart() { x = myX(); y = myY(); } private int x, y; NPC enemy; boolean waiting = false; float waittimetoomuch = 0; boolean walked = false; private boolean walkedToMiddle = false, walkedToSee = false; }