- Joined
- Jan 1, 2015
- Messages
- 272
- Thread Author
- #1
This is my current way i am doing this.
then just
Code:
private int getRandomWidget() {
final int[] widgetsToChose = { 6, 8 , 12, 14 };
return widgetsToChose[Random.nextInt(0, widgetsToChose.length)];
}
then just
Code:
OSRSTab.STATS.open();
Execution.delay(400, 850);
final InterfaceComponent wid = Interfaces.getAt(320, getRandomWidget());
Mouse.move(wid.getInteractionPoint());
Execution.delay(1000, 1300);
if(!OSRSTab.INVENTORY.isOpen())
OSRSTab.INVENTORY.open();
Execution.delay(1000, 1300);[
break;/code]