Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package scripts.autoAlcherPro;
- import org.tribot.api.Clicking;
- import org.tribot.api.General;
- import org.tribot.api.Timing;
- import org.tribot.api.input.Mouse;
- import org.tribot.api.types.generic.Condition;
- import org.tribot.api.util.ABCUtil;
- import org.tribot.api2007.GameTab;
- import org.tribot.api2007.Interfaces;
- import org.tribot.api2007.Skills;
- import org.tribot.api2007.GameTab.TABS;
- public class AntiBan {
- private ABCUtil abc;
- public AntiBan(){
- General.useAntiBanCompliance(true);
- abc = new ABCUtil();
- }
- public void start(){
- checkXp();
- checkFl();
- ranRightClick();
- examineObj();
- rotateCam();
- rotateCam();
- joinChat();
- ranMouseMoves();
- pickUpMouse();
- leaveGame();
- }
- private void joinChat() {
- //*
- /* Attempts to join a random mini-game clan chat
- */
- if (System.currentTimeMillis() > abc.TIME_TRACKER.next()) {
- final long timeout = System.currentTimeMillis() + 12000;
- boolean doingAction = true;
- while(doingAction && System.currentTimeMillis() < timeout) {
- if (Interfaces.get(548, 38) != null) {
- if (GameTab.open(TABS.QUESTS)) {
- if (Timing.waitCondition(new Condition(){
- @Override
- public boolean active() {
- return Interfaces.get(76, 5) != null;
- }
- }, 3200)) {
- if (Clicking.click(Interfaces.get(76, 5))) {
- Mouse.moveBox(563, 259, 700, 412);
- Mouse.click(1);
- doingAction = false;
- }
- }
- }
- }
- }
- }
- }
- public final void rotateCam() {
- if (abc.TIME_TRACKER.ROTATE_CAMERA.next() <= Timing.currentTimeMillis()){
- abc.performRotateCamera();
- }
- }
- public void checkXp() {
- if (abc.TIME_TRACKER.CHECK_XP.next() <= Timing.currentTimeMillis()){
- abc.performXPCheck(Skills.SKILLS.MAGIC);
- }
- }
- public final void pickUpMouse() {
- if (abc.TIME_TRACKER.PICKUP_MOUSE.next() <= Timing.currentTimeMillis()){
- abc.performPickupMouse();
- }
- }
- public void leaveGame() {
- if (abc.TIME_TRACKER.LEAVE_GAME.next() <= Timing.currentTimeMillis()){
- abc.performLeaveGame();
- General.sleep(14000,30000);
- }
- }
- public void examineObj() {
- if (abc.TIME_TRACKER.EXAMINE_OBJECT.next() <= Timing.currentTimeMillis()){
- abc.performExamineObject();
- }
- }
- public void ranRightClick() {
- if (abc.TIME_TRACKER.RANDOM_RIGHT_CLICK.next() <= Timing.currentTimeMillis()){
- abc.performRandomRightClick();
- }
- }
- public void ranMouseMoves() {
- if (abc.TIME_TRACKER.RANDOM_MOUSE_MOVEMENT.next() <= Timing.currentTimeMillis()){
- abc.performRandomMouseMovement();
- }
- }
- public void checkEquipment() {
- if (abc.TIME_TRACKER.CHECK_EQUIPMENT.next() <= Timing.currentTimeMillis()){
- abc.performEquipmentCheck();
- }
- }
- public final void checkFl() {
- if (abc.TIME_TRACKER.CHECK_FRIENDS.next() <= Timing.currentTimeMillis()){
- abc.performFriendsCheck();
- }
- }
- public final void checkMusic() {
- if (abc.TIME_TRACKER.CHECK_MUSIC.next() <= Timing.currentTimeMillis()){
- abc.performMusicCheck();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement