Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.tribot.api.Clicking;
- import org.tribot.api.General;
- import org.tribot.api.input.Mouse;
- import org.tribot.api2007.Skills;
- import org.tribot.api2007.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 {
- private int timeMultiplier = 100;
- private long nextFLCheck;
- private long nextXPCheck;
- private long nextRanRight;
- private long nextCamTurn;
- private long currentTime;
- //user set
- public static SKILLS skill;
- public static String[] RANDOM_OBJECTS;
- public static int ranFL1 = 0, ranFL2 = 0;
- public static int ranXP1 = 0, ranXP2 = 0;
- public static int ranR1 = 0, ranR2 = 0;
- public static int cam1 = 0, cam2 = 0;
- public static long hoverTime;
- public static long friendsSleep;
- public static boolean turningCamera;
- public static boolean anglingCamera;
- public static int maxCamRotDist;
- public static int maxCamAngle;
- public static int friendsIndex;
- public static boolean checkingXP;
- public static boolean checkingFL;
- public static boolean ranRightClicking;
- public static boolean examining;
- public static boolean rightClickingObjects;
- public ABC() {}
- public void refreshCheck(){
- nextFLCheck = (System.currentTimeMillis() * timeMultiplier)
- + General.random(ranFL1, ranFL2);
- nextXPCheck = (System.currentTimeMillis() * timeMultiplier)
- + General.random(ranXP1, ranXP2);
- nextRanRight = (System.currentTimeMillis() * timeMultiplier)
- + General.random(ranR1, ranR2);
- nextCamTurn = (System.currentTimeMillis() * timeMultiplier)
- + General.random(cam1, cam2);
- }
- public void refreshTime(){
- currentTime = (System.currentTimeMillis() * timeMultiplier);
- }
- public void start(){
- if(checkingXP){
- checkXP();
- }
- if(checkingFL){
- checkFL();
- }
- if(ranRightClicking){
- Mouse.randomRightClick();
- }
- if(rightClickingObjects){
- randomRightClickObject();
- }
- if(turningCamera){
- randomCameraRotate();
- }
- if(anglingCamera){
- randomCameraAngle();
- }
- }
- private void randomCameraAngle() {
- if(nextCamTurn > currentTime){
- Camera.setCameraAngle(General.random(0, maxCamAngle));
- }
- }
- private void randomCameraRotate() {
- if(nextCamTurn > currentTime){
- Camera.setCameraRotation(General.random(0 , maxCamRotDist));
- }
- }
- private void randomRightClickObject() {
- if(currentTime > nextRanRight){
- if(Objects.find(30, RANDOM_OBJECTS).length > 0){
- if(Objects.find(30, RANDOM_OBJECTS)[0].isOnScreen()){
- if(examining ? Clicking.click("Examine", Objects.find(30, RANDOM_OBJECTS))
- : Clicking.click(Objects.find(30, RANDOM_OBJECTS))){
- General.sleep(1300, 2100);
- }
- }
- }
- }
- }
- private void checkFL() {
- if(currentTime > nextFLCheck){
- if(Interfaces.get(friendsIndex).click()){
- General.sleep(friendsSleep);
- }
- }
- }
- private void checkXP() {
- if (currentTime > nextXPCheck) {
- if (GameTab.open(TABS.STATS)) {
- hover(skill);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement