March 13, 20241 yr 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