Hovering stats for AntiPattern

Discussion in 'Developer Support' started by PhaseCoder, Mar 3, 2015.

  1. This is my current way i am doing this.

    Code (Text):
    1.  
    2. private int getRandomWidget() {
    3.         final int[] widgetsToChose = { 6, 8 , 12, 14 };
    4.         return widgetsToChose[Random.nextInt(0, widgetsToChose.length)];
    5.     }
    then just

    Code (Text):
    1.  
    2. OSRSTab.STATS.open();
    3.                 Execution.delay(400, 850);
    4.                 final InterfaceComponent wid = Interfaces.getAt(320, getRandomWidget());
    5.                 Mouse.move(wid.getInteractionPoint());
    6.                 Execution.delay(1000, 1300);
    7.                 if(!OSRSTab.INVENTORY.isOpen())
    8.                     OSRSTab.INVENTORY.open();
    9.                 Execution.delay(1000, 1300);[
    10. break;/code]
     
  2. Static sleep != antipattern
     

  3. Was just for testing purpose.
     

Share This Page

Loading...