if you read the terms and conditions you may not use my code for any premium scripts..
do not be talking smack mr asshole
Problem is that you won't know if anyone uses it or not xd
Anyway, some notes:
public static int mytradescreen = 48;
use correct java naming conventions, if you are coding for yourself I wuldn't give a fuck, but if you are trying to write modular code api/library you need to use conventions or people will have a hard time understanding the code.
private Script script = Context.script;
Don't use static for the sake of god. You are supposed to use oop with osbot, if you use static the vars will be "shared" to all tabs withing the client. You should init this class with a Script argument instead.
public Item[] getItems(int screen) throws InterruptedException {
ArrayList<Item> array = new ArrayList<Item>();
if (tradeScreenOpen()) {
Item[] itemArray = Context.script.client.getInterface(335)
.getItems(screen);
for (Item i : itemArray) {
if (i != null)
array.add(i);
}
}
return array.toArray(new Item[array.size()]);
}
?????
getFirstScreenItemByInteger
*ById maybe
public static int ourSecondScreen = 37;
public static int otherPersonSecondScreen = 40;
There are 4 more childs for second screen messages
Only good thing worth mnetioning is the getItemsSecondaryScreen method that seems very clever
thanks for the constructive feedback instead of the usual nice good work or i might use this