moops22 Posted March 13 Share Posted March 13 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. Quote Link to comment Share on other sites More sharing options...
Czar Posted March 13 Share Posted March 13 string must start with an upper-case letter, so String name Quote Link to comment Share on other sites More sharing options...
moops22 Posted March 13 Author Share Posted March 13 oh wow such a small mistake. Thank you! Quote Link to comment Share on other sites More sharing options...