1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hovering stats for AntiPattern

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

  1. PhaseCoder

    Joined:
    Jan 1, 2015
    Messages:
    272
    Likes Received:
    26
    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. Baddest Man on Earth

    Joined:
    Nov 26, 2014
    Messages:
    616
    Likes Received:
    246
    Static sleep != antipattern
     
  3. PhaseCoder

    Joined:
    Jan 1, 2015
    Messages:
    272
    Likes Received:
    26

    Was just for testing purpose.
     

Share This Page

Loading...