Advertisement
joedezzy1

AntiBan

Jul 21st, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.34 KB | None | 0 0
  1. package scripts.autoAlcherPro;
  2.  
  3. import org.tribot.api.Clicking;
  4. import org.tribot.api.General;
  5. import org.tribot.api.Timing;
  6. import org.tribot.api.input.Mouse;
  7. import org.tribot.api.types.generic.Condition;
  8. import org.tribot.api.util.ABCUtil;
  9. import org.tribot.api2007.GameTab;
  10. import org.tribot.api2007.Interfaces;
  11. import org.tribot.api2007.Skills;
  12. import org.tribot.api2007.GameTab.TABS;
  13.  
  14. public class AntiBan {
  15.    
  16.     private ABCUtil abc;
  17.    
  18.     public AntiBan(){
  19.         General.useAntiBanCompliance(true);
  20.         abc = new ABCUtil();
  21.     }
  22.    
  23.     public void start(){
  24.         checkXp();         
  25.         checkFl();     
  26.         ranRightClick();           
  27.         examineObj();  
  28.         rotateCam();           
  29.         rotateCam();           
  30.         joinChat();
  31.         ranMouseMoves();
  32.         pickUpMouse();     
  33.         leaveGame();    
  34.     }
  35.    
  36.     private void joinChat() {  
  37.        
  38.         //*
  39.         /* Attempts to join a random mini-game clan chat
  40.          */
  41.         if (System.currentTimeMillis() > abc.TIME_TRACKER.next()) {
  42.             final long timeout = System.currentTimeMillis() + 12000;
  43.             boolean doingAction = true;
  44.             while(doingAction && System.currentTimeMillis() < timeout) {   
  45.                 if (Interfaces.get(548, 38) != null) {
  46.                     if (GameTab.open(TABS.QUESTS)) {                           
  47.                         if (Timing.waitCondition(new Condition(){
  48.                             @Override
  49.                             public boolean active() {
  50.                                 return Interfaces.get(76, 5) != null;
  51.                             }                      
  52.                         }, 3200)) {
  53.                             if (Clicking.click(Interfaces.get(76, 5))) {               
  54.                                 Mouse.moveBox(563, 259, 700, 412);
  55.                                 Mouse.click(1);    
  56.                                 doingAction = false;
  57.                             }
  58.                         }
  59.                     }
  60.                 }
  61.             }
  62.         }      
  63.     }
  64.  
  65.     public final void rotateCam() {
  66.         if (abc.TIME_TRACKER.ROTATE_CAMERA.next() <= Timing.currentTimeMillis()){
  67.             abc.performRotateCamera();
  68.         }
  69.     }
  70.  
  71.     public void checkXp() {
  72.         if (abc.TIME_TRACKER.CHECK_XP.next() <= Timing.currentTimeMillis()){
  73.             abc.performXPCheck(Skills.SKILLS.MAGIC);
  74.         }
  75.     }
  76.  
  77.     public final void pickUpMouse() {
  78.         if (abc.TIME_TRACKER.PICKUP_MOUSE.next() <= Timing.currentTimeMillis()){
  79.             abc.performPickupMouse();
  80.         }
  81.     }
  82.  
  83.     public void leaveGame() {
  84.         if (abc.TIME_TRACKER.LEAVE_GAME.next() <= Timing.currentTimeMillis()){
  85.             abc.performLeaveGame();
  86.             General.sleep(14000,30000);
  87.         }
  88.     }
  89.  
  90.     public void examineObj() {
  91.         if (abc.TIME_TRACKER.EXAMINE_OBJECT.next() <= Timing.currentTimeMillis()){
  92.             abc.performExamineObject();
  93.         }
  94.     }
  95.  
  96.     public void ranRightClick() {
  97.         if (abc.TIME_TRACKER.RANDOM_RIGHT_CLICK.next() <= Timing.currentTimeMillis()){
  98.             abc.performRandomRightClick();
  99.         }
  100.     }
  101.  
  102.     public void ranMouseMoves() {
  103.         if (abc.TIME_TRACKER.RANDOM_MOUSE_MOVEMENT.next() <= Timing.currentTimeMillis()){
  104.             abc.performRandomMouseMovement();
  105.         }
  106.     }
  107.  
  108.     public void checkEquipment() {
  109.         if (abc.TIME_TRACKER.CHECK_EQUIPMENT.next() <= Timing.currentTimeMillis()){
  110.             abc.performEquipmentCheck();
  111.         }
  112.     }
  113.  
  114.     public final void checkFl() {
  115.         if (abc.TIME_TRACKER.CHECK_FRIENDS.next() <= Timing.currentTimeMillis()){
  116.             abc.performFriendsCheck();
  117.         }
  118.     }
  119.  
  120.     public final void checkMusic() {
  121.         if (abc.TIME_TRACKER.CHECK_MUSIC.next() <= Timing.currentTimeMillis()){
  122.             abc.performMusicCheck();
  123.         }
  124.     }
  125. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement