public static String getSelectedItem(final ClassLoader loader) throws Exception {
final Field field = loader.loadClass("client").getDeclaredField("ia");
field.setAccessible(true);
return (String) field.get(null);
}
public static int getSelectionState(final ClassLoader loader) throws Exception {
final Field field = loader.loadClass("client").getDeclaredField("ib");
field.setAccessible(true);
return field.getInt(null) * 1348970433;
}
public static boolean isSelected(final ClassLoader loader) throws Exception {
return getSelectionState(loader) != 0;
}
How to use these?
Let's say we want to do this in the onLoop method:
public int onLoop() throws InterruptedException {
final ClassLoader loader = bot.I() //Change bot.I() to whatever method returns a classloader at the moment
if(isSelected(loader)) {
final String selected = getSelectedItem(loader);
}
return 50;
}
The Badge looks pretty cool, if it wasnt for the reason it was a twc, i would of wanted it.
Perhaps change it to something more ugly/warning/humiliating?
Actually this is not accurate. Services can help Osbot in terms of more income.
Example: The section gets added, we get more players trading in that section which also means we get more traffic. More traffic means more income since osbot has paying adds on top. And I assume that the adds are being payed per vieuw AND per clicks.
I somewhat agree with this, since we do have a "Other Section" I believe that feedback should be given because they are providing services that in a way relate to OSBOt since the sales are being done through OSBot.