Jump to content

magic script


Recommended Posts

Posted

so I have been making different functions for each time I buy runes I thought that was tedious and thought I could do something like this.
 

    private void buyrunes(int amount,  string name) throws InterruptedException {
        NPC aubury = getNpcs().closest("Aubury");
        if (aubury != null && aubury.interact("Trade")) {
            sleep(random(2000, 4000));
            if(getStore().isOpen()) {
                getStore().buy("air rune", 1000);
            }
            getKeyboard().pressKey(KeyEvent.VK_ESCAPE);
            sleep(random(2000, 4000));
        }
    }

but the problem is that my intellij is giving me the error that it cant resolve the symbol string? any advice would be very helpful.

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.
×
×
  • Create New...