Jump to content

Recommended Posts

11 minutes ago, gosubear said:

Does it include any antiban? If you can be a bit more descriptive it would be nice! Thanks for the contribution though!

I'm still new to the anti-ban compliance. I believe so.

 

All nodes extend TTask (See source code) which has an Idle method, this calls the ABC2 utility as follows

 

  public void idle() {
        // TODO:: Implement ABC2

        if (this.abc_util.shouldCheckTabs())
            this.abc_util.checkTabs();

        if (this.abc_util.shouldCheckXP())
            this.abc_util.checkXP();

        if (this.abc_util.shouldExamineEntity())
            this.abc_util.examineEntity();

        if (this.abc_util.shouldMoveMouse())
            this.abc_util.moveMouse();

        if (this.abc_util.shouldPickupMouse())
            this.abc_util.pickupMouse();

        if (this.abc_util.shouldRightClick())
            this.abc_util.rightClick();

        if (this.abc_util.shouldRotateCamera())
            this.abc_util.rotateCamera();

        if (this.abc_util.shouldLeaveGame())
            this.abc_util.leaveGame();

    }

 

This method is called whenever as task is executing that allows idle actions, for example whilst running to a target location, and (most commonly) whilst spinning flax.

 

I would like confirmation that this is the appropriate way to handle the ABC2 utility.

Share this post


Link to post
Share on other sites
On 2/16/2018 at 6:08 PM, TScripts said:

I'm still new to the anti-ban compliance. I believe so.

 

All nodes extend TTask (See source code) which has an Idle method, this calls the ABC2 utility as follows

 

  public void idle() {
        // TODO:: Implement ABC2

        if (this.abc_util.shouldCheckTabs())
            this.abc_util.checkTabs();

        if (this.abc_util.shouldCheckXP())
            this.abc_util.checkXP();

        if (this.abc_util.shouldExamineEntity())
            this.abc_util.examineEntity();

        if (this.abc_util.shouldMoveMouse())
            this.abc_util.moveMouse();

        if (this.abc_util.shouldPickupMouse())
            this.abc_util.pickupMouse();

        if (this.abc_util.shouldRightClick())
            this.abc_util.rightClick();

        if (this.abc_util.shouldRotateCamera())
            this.abc_util.rotateCamera();

        if (this.abc_util.shouldLeaveGame())
            this.abc_util.leaveGame();

    }

 

This method is called whenever as task is executing that allows idle actions, for example whilst running to a target location, and (most commonly) whilst spinning flax.

I would like confirmation that this is the appropriate way to handle the ABC2 utility.

This method should only be called when the bot is not particularly busy. In your script, you should only call this method when the bot is spinning flax. If the player is busy "running towards a target location", timed actions should not be performed.

Instead of including the method in TTask, it would be a lot simpler to declare an utility class that contains a static method. Whenever the character is idle (spinning flax in this instance), simply call the method: UtilClass.performTimedActions();

Also, it's not necessarily a mistake, but ideally you want to use verbs in your method names, since they represent actions. Instead of idle, a more appropriate name for your function would be: performTimedActions, performIdleActions etc.

 

55 minutes ago, KOSSO said:

it doesn't work 

This is my new favorite bug report so far.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×