Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package IntelligentBdk;
- import com.rsbuddy.script.Manifest;
- import com.rsbuddy.script.*;
- import com.rsbuddy.script.methods.*;
- import com.rsbuddy.script.util.*;
- import com.rsbuddy.script.util.Timer;
- import com.rsbuddy.script.wrappers.*;
- import com.rsbuddy.script.task.LoopTask;
- import com.rsbuddy.script.util.Random;
- @Manifest(
- name = "Shit.old.Isab",
- description = "Intelligent scripts antiban",
- authors = "Frazboyz",
- version = 0.1
- )
- public class Isab extends LoopTask {
- public static Timer AntiBan = new Timer(Random.nextInt(10000, 100000));
- public boolean onStart() {
- getContainer().submit(new Isab());
- return true;
- }
- @Override
- public int loop() {
- int Rand1 = Random.nextInt(1, 2);
- int Rand2 = Random.nextInt(1, 2);
- if (Rand1 == 1 && Rand2 == 1 && !AntiBan.isRunning()) {
- MouseRandom();
- CameraRandom();
- AntiBan.reset();
- Extras.printLog("Time to next antiban:" + AntiBan.getRemaining() / 1000);
- } else if (Rand1 == 2 && Rand2 == 2 && !AntiBan.isRunning()) {
- CameraRandom();
- TabOpen();
- AntiBan.reset();
- } else if (Rand1 == 1 && Rand2 != 1 && !AntiBan.isRunning() || Rand1 == 2 && Rand2 != 2 && !AntiBan.isRunning()) {
- MouseRandom();
- AntiBan.reset();
- }
- return 100;
- }
- public void MouseRandom() {
- int maxXOnScreen = (int) (Game.getCanvasSize().getWidth() - 15);
- int maxYOnScreen = (int) (Game.getCanvasSize().getHeight() - 15);
- int randomNumber123 = Random.nextInt(1, 3);
- for (int i = 0; i < randomNumber123; i++) {
- if (i == randomNumber123 - 1) {
- Mouse.move(Random.nextInt(15, maxXOnScreen), Random.nextInt(15, maxYOnScreen));
- sleep(Random.nextInt(50, 300));
- } else {
- Mouse.move(Random.nextInt(15, maxXOnScreen), Random.nextInt(15, maxYOnScreen));
- sleep(Random.nextInt(50, 150));
- }
- }
- }
- public void CameraRandom() {
- int i = Camera.getCompassAngle();
- Camera.setCompassAngle(Random.nextInt(0, 360));
- }
- public void TabOpen() {
- if (Game.getCurrentTab() != Game.TAB_STATS) {
- Game.openTab(Game.TAB_STATS);
- } else if (Game.getCurrentTab() == Game.TAB_STATS) {
- int i = Random.nextInt(1, 3);
- CheckExp(i);
- }
- }
- public void CheckExp(int Xp) {
- if (Xp == 1) {
- Skills.hover(Skills.ATTACK);
- } else if (Xp == 2) {
- Skills.hover(Skills.RANGE);
- } else if (Xp == 3) {
- Skills.hover(Skills.FISHING);
- }
- }
- public class Extras extends ActiveScript {
- void printLog(String Message) {
- try {
- log(Message);
- } catch (Exception e) {
- log("Error in logging Method AntiBan");
- }
- }
- public void Wait(int Millis, int Millis1) {
- try {
- sleep(Millis, Millis1);
- } catch (Exception e) {
- log("Error in sleeping Method AntiBan");
- }
- }
- public int loop() {
- return 1;
- }
- }
- }
Add Comment
Please, Sign In to add comment