Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
monkaSman

Pin Bot

Recommended Posts

Hello, I've noticed the pin bot works sometimes and doesn't work other times, thought I'd see if anyone has a solution. 

By using setPinBotState(false), adding a timer, and then Banking.inPin(), the success rate went up a bit but still fails. What happens is the mouse will click the first number and then click the second number twice. For example, if the pin is 1234 it will move and click 1, move and click 2, and then click where 2 just was for the third number instead of moving to the third number.

Currently my bank method clicks the banker, moves the mouse into the inventory, waits for the pin to open, and then inputs the pin. The reason why I move my mouse into my inventory is in another similar thread the guy said moving his mouse to not be over the pin helped him but not for me.

Here is the little snipet for my pin entering:

else if(Banking.isPinScreenOpen() == true)
        {
            println("Pin is open");
            setPinBotState(false);
            
            sleep(200, 600);
            Banking.inPin();
            sleep(200, 600);
            
            OPEN_BANK();
        }

Share this post


Link to post
Share on other sites

The pin bot works fine for me, it may be a problem with your logic, however you could try this:

Disable the pin bot when your script starts using super.setPinBotState(false);

Then when you need to bank do:

if(Banking.isBankScreenOpen()){

// Do bank stuff 

} else if (Banking.isPinScreenOpen()){

Banking.inPin();

} else {

Banking.openBank();

}

 

Note: I typed this on my phone so the syntax may not be perfect .

lmk if it helps!

Edited by Optimus

Share this post


Link to post
Share on other sites
5 hours ago, Optimus said:

The pin bot works fine for me, it may be a problem with your logic, however you could try this:

Disable the pin bot when your script starts using super.setPinBotState(false);

Then when you need to bank do:

if(Banking.isBankScreenOpen()){

// Do bank stuff 

} else if (Banking.isPinScreenOpen()){

Banking.inPin();

} else {

Banking.openBank();

}

 

Note: I typed this on my phone so the syntax may not be perfect .

lmk if it helps!

I'll try the super.setPinBotState(false); although it never uses the tribot pin bot with the setPinBotState(false); so I dont know how much that is needed.

As for my logic I have a bit of a recursive function that pretty much matches what you wrote. Here it is in a nutshell:

private void OPEN_BANK()
    {
        setPinBotState(false);
        if(Banking.isBankScreenOpen() == false && Banking.isPinScreenOpen() == false)
        {
            //Click banker

           //wait for bank or pin to open

          OPEN_BANK();
        }
        else if(Banking.isPinScreenOpen() == true)
        {
            setPinBotState(false);
            
            sleep(200, 600);
            Banking.inPin();
            sleep(200, 600);
            
            OPEN_BANK();
        }
        else if(Banking.isBankScreenOpen() == true)
        {
            sleep(200, 600);
        }
    }

Thank you for your help!

Share this post


Link to post
Share on other sites

@monkaSman A recursive function isn't necessary. This should be fine:

private void openBank() {
		if (!Banking.isBankScreenOpen()) {
			if (Banking.isPinScreenOpen()) {
				Banking.inPin();
			} else {
				Banking.openBank(); //This API method will open the bank at nearly all bankers & bank chests
			}
		}
	}

 

Edited by Optimus

Share this post


Link to post
Share on other sites

I am mainly doing a recursive method because almost all of the clicking that I do with TriBot fails at some point so if the click fails I call recur.

Anyways, the main thing is still the pin bot haha. I thought about making a custom one which would probably work better but from what I have seen you cannot get the pin from the account manager. This would make it hard/impossible to know which numbers to click.

Here is the other thread that I am referring to where he seems to have a somewhat similar issue as me. He got about as far as me which is why I'm trying to find out more. 

 

@Optimus

Edited by monkaSman

Share this post


Link to post
Share on other sites
4 hours ago, monkaSman said:

I am mainly doing a recursive method because almost all of the clicking that I do with TriBot fails at some point so if the click fails I call recur.

Anyways, the main thing is still the pin bot haha. I thought about making a custom one which would probably work better but from what I have seen you cannot get the pin from the account manager. This would make it hard/impossible to know which numbers to click.

Here is the other thread that I am referring to where he seems to have a somewhat similar issue as me. He got about as far as me which is why I'm trying to find out more. 

 

@Optimus

Feel free to join my discord, I'd have to see more of your code to see what's going wrong :) 

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
Sign in to follow this  

  • Our picks

    • This release will:

      Fix LG for both OSBuddy and RuneLite


      Fix issue where the resizable client isn't able to be made smaller (Thanks @JoeDezzy1)


      Fix detection of the logout game tab when resizable mode and side panels are enabled (Thanks @JoeDezzy1)


      Add initial support for Sentry to allow us to identify and easily debug exceptions happening with all TRiBot users


      Add methods to determine if the bank is actually loaded, and not just the overarching interface (Thanks @wastedbro)



      Upcoming updates:

      Improved CLI support


      Full Sentry support


      Much more
        • Like
      • 56 replies
    • This release will:

      Fix NPE in Camera API (Thanks @wastedbro)


      Update deposit box interface ids (Thanks @Encoded)


      Add various bank methods (Thanks @wastedbro)


      Banking#getWithdrawXQuantity


      Banking#getDefaultWithdrawQuantity


      Banking#arePlaceholdersOn




      Fix resizeable minimap bug (Thanks @wastedbro)


      Remove Java 8 requirement


      Please note: TRiBot is not yet fully compatible with Java 10+




      Fix the break handler issues by ensuring the break handler thread never gets paused


      Fix broken settings hooks



      Upcoming updates:

      Improved CLI support


      Much more



      Note: If you are using LG, please restart both the RS client and TRiBot
        • Like
      • 68 replies
    • This release will:

      Add support for using custom F key bindings to switch between game tabs (Thanks @erickho123)


      Fix tab opening for "Skills" and "Kourend Tasks" (Thanks @erickho123)



      Note: If you are using LG, please restart both the RS client and TRiBot
        • Like
      • 34 replies
    • This release will:

      Fix an issue where breaks would stop firing


      Fix Combat#getWildernessLevel, use dynamic search for text and cache ID for later calls


      Fix an NPE in the Combat API


      Fix Mouse#leaveGame bug where the mouse wouldn't actually leave the game screen
        • Like
      • 21 replies
    • This release will:

      Add LG support for Runelite


      Fix NPCChat issues


      Fix a bug where the camera angle setter would just hold down a key for 5 seconds (the timeout)


      Slightly adjust the rotation via keys to be more accurate


      Add the ability for asynchronous camera movement via keys


      Make Camera rotation via mouse more fluid, with more antiban, and work much better in resizable mode


      Add a "Camera#setCamera" method, allowing the rotation and angle to be set in parallel


      Increase the likelihood of using the mouse for camera movements


      Add support for adjusting the camera to positionable entities (Positionable#adjustCameraTo)



      Upcoming updates:

      Improved CLI support


      Much more



      Note: If you are using LG, please restart both the RS client and TRiBot
        • Thanks
        • Like
      • 59 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×