Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package scripts.abyssCrafter;
- import org.tribot.api.Clicking;
- import org.tribot.api.General;
- import org.tribot.api.input.Mouse;
- import org.tribot.api.rs3.Skills;
- import org.tribot.api.rs3.Skills.SKILLS;
- import org.tribot.api.util.ABCUtil;
- import org.tribot.api2007.Camera;
- import org.tribot.api2007.GameTab;
- import org.tribot.api2007.GameTab.TABS;
- import org.tribot.api2007.Interfaces;
- import org.tribot.api2007.Inventory;
- import org.tribot.api2007.Objects;
- public class ABC extends ABCUtil{
- private static int RUNECRAFTING_INDEX;
- private static int prevXP = 0;
- private static String[] RANDOM_OBJECTS = {"Rock", "Tree", "Gate", "Door", "Deposit box", "Furnace"};
- public static void start(){
- int friendsList = General.random(0, 10000000);
- int checkXP = General.random(0, 1000000);
- int randomRightClick = General.random(0, 100000000);
- int cameraRotation = General.random(0, 10000000);
- switch(friendsList){
- case 256:
- case 11892:
- if(!Crafter.inWild() && !Crafter.atAbyss()){
- if(GameTab.open(TABS.FRIENDS)){
- General.sleep(3200, 5200);
- if(GameTab.open(TABS.INVENTORY)){
- General.sleep(400, 900);
- }
- }
- }
- return;
- }
- switch(checkXP){
- case 29:
- case 1142:
- if (!Crafter.inWild() && !Crafter.atAbyss()){
- if (Skills.getCurrentXP(SKILLS.RUNECRAFTING) > prevXP){
- prevXP = Skills.getCurrentXP(SKILLS.RUNECRAFTING);
- if (GameTab.open(TABS.STATS)){
- General.sleep(3200, 5200);
- if (Interfaces.get(RUNECRAFTING_INDEX).hover()){
- General.sleep(2400, 3900);
- }
- }
- if (Inventory.open()){
- General.sleep(400, 900);
- }
- }
- }
- return;
- }
- switch(randomRightClick){
- case 91:
- Mouse.randomRightClick();
- return;
- case 27:
- if(!Crafter.atAbyss()){
- if(Objects.find(30, RANDOM_OBJECTS).length > 0){
- if(Objects.find(30, RANDOM_OBJECTS)[0].isOnScreen()){
- if(Clicking.click("Examine", Objects.find(30, RANDOM_OBJECTS))){
- General.sleep(1300, 2100);
- }
- }
- }
- }
- return;
- case 3145:
- if(!Crafter.atAbyss()){
- if(Objects.find(30, RANDOM_OBJECTS).length > 0){
- if(Objects.find(30, RANDOM_OBJECTS)[0].isOnScreen()){
- if(Objects.find(30, RANDOM_OBJECTS)[0].hover()){
- Mouse.click(2);
- General.sleep(1300, 2100);
- }
- }
- }
- }
- return;
- }
- switch(cameraRotation){
- case 47:
- if(!Crafter.atAbyss() && !Crafter.inWild()){
- Camera.setCameraAngle(General.random(40, 90));
- }
- return;
- case 1902:
- if(!Crafter.atAbyss() && !Crafter.inWild()){
- Camera.setCameraRotation(General.random(0, 360));
- }
- return;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment