Jump to content

Why does it still open the bank anywhere? (Beginner)


Pokerstar

Recommended Posts

I am starting the journey of trying to learn java and osbot in the hopes to make some personal scripts.

 

private static final Position PLAYER_LOC = new Position(3169, 3423, 0);

@Override
public void onStart() throws InterruptedException {

}

@Override
public int onLoop() throws InterruptedException {

    if (myPlayer().getPosition().equals(PLAYER_LOC)); {
    log("You are in the right location");
    getBank().open();}

I am trying to make the bot only attempt to open the bank if its standing on that position.  But it still attempts to open the bank, regardless of what tile/location I am on.

What part is incorrect? 

 

Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...