joedezzy1

Untitled

Jun 30th, 2014
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.73 KB | None | 0 0
  1. package scripts.abyssCrafter;
  2.  
  3. import org.tribot.api.Clicking;
  4. import org.tribot.api.General;
  5. import org.tribot.api.input.Mouse;
  6. import org.tribot.api.rs3.Skills;
  7. import org.tribot.api.rs3.Skills.SKILLS;
  8. import org.tribot.api.util.ABCUtil;
  9. import org.tribot.api2007.Camera;
  10. import org.tribot.api2007.GameTab;
  11. import org.tribot.api2007.GameTab.TABS;
  12. import org.tribot.api2007.Interfaces;
  13. import org.tribot.api2007.Inventory;
  14. import org.tribot.api2007.Objects;
  15.  
  16. public class ABC extends ABCUtil{
  17.    
  18.    
  19.    
  20.     private static int RUNECRAFTING_INDEX;
  21.     private static int prevXP = 0;
  22.     private static String[] RANDOM_OBJECTS = {"Rock", "Tree", "Gate", "Door", "Deposit box", "Furnace"};
  23.  
  24.     public static void start(){
  25.         int friendsList = General.random(0, 10000000);
  26.         int checkXP = General.random(0, 1000000);
  27.         int randomRightClick = General.random(0, 100000000);
  28.         int cameraRotation = General.random(0, 10000000);
  29.        
  30.         switch(friendsList){   
  31.         case 256:
  32.         case 11892:
  33.             if(!Crafter.inWild() && !Crafter.atAbyss()){
  34.                 if(GameTab.open(TABS.FRIENDS)){
  35.                     General.sleep(3200, 5200);
  36.                    
  37.                     if(GameTab.open(TABS.INVENTORY)){
  38.                         General.sleep(400, 900);
  39.                     }
  40.                 }
  41.             }
  42.            
  43.             return;
  44.         }
  45.        
  46.         switch(checkXP){
  47.         case 29:
  48.         case 1142:
  49.             if (!Crafter.inWild() && !Crafter.atAbyss()){
  50.                 if (Skills.getCurrentXP(SKILLS.RUNECRAFTING) > prevXP){
  51.                     prevXP = Skills.getCurrentXP(SKILLS.RUNECRAFTING);
  52.                     if (GameTab.open(TABS.STATS)){
  53.                          General.sleep(3200, 5200);
  54.                        
  55.                         if (Interfaces.get(RUNECRAFTING_INDEX).hover()){
  56.                             General.sleep(2400, 3900);
  57.                         }
  58.                     }
  59.                    
  60.                     if (Inventory.open()){
  61.                         General.sleep(400, 900);
  62.                     }
  63.                 }
  64.             }
  65.            
  66.             return;
  67.         }
  68.        
  69.         switch(randomRightClick){
  70.        
  71.         case 91:
  72.             Mouse.randomRightClick();
  73.             return;
  74.            
  75.         case 27:
  76.             if(!Crafter.atAbyss()){
  77.                 if(Objects.find(30, RANDOM_OBJECTS).length > 0){
  78.                     if(Objects.find(30, RANDOM_OBJECTS)[0].isOnScreen()){
  79.                         if(Clicking.click("Examine", Objects.find(30, RANDOM_OBJECTS))){
  80.                             General.sleep(1300, 2100);
  81.                         }
  82.                     }
  83.                 }
  84.             }
  85.            
  86.             return;
  87.            
  88.         case 3145:
  89.             if(!Crafter.atAbyss()){
  90.                 if(Objects.find(30, RANDOM_OBJECTS).length > 0){
  91.                     if(Objects.find(30, RANDOM_OBJECTS)[0].isOnScreen()){
  92.                         if(Objects.find(30, RANDOM_OBJECTS)[0].hover()){
  93.                             Mouse.click(2);
  94.                             General.sleep(1300, 2100);
  95.                         }
  96.                     }
  97.                 }
  98.             }
  99.            
  100.             return;
  101.         }
  102.        
  103.         switch(cameraRotation){
  104.         case 47:
  105.             if(!Crafter.atAbyss() && !Crafter.inWild()){
  106.                 Camera.setCameraAngle(General.random(40, 90));
  107.             }
  108.             return;
  109.            
  110.         case 1902:
  111.             if(!Crafter.atAbyss() && !Crafter.inWild()){
  112.                 Camera.setCameraRotation(General.random(0, 360));
  113.             }
  114.             return;
  115.         }
  116.     }
  117. }
Advertisement
Add Comment
Please, Sign In to add comment