Clicking bank preset button

Discussion in 'Developer Support' started by womaniak, Jul 16, 2014.

  1. womaniak

    Joined:
    Jul 16, 2014
    Messages:
    1
    Likes Received:
    0
    Hello,
    Im kinda new to scripting and im trying to make a Varrock tanner. but i cant seems to find out how to click the preset 1 button. i know the interface component is 762,41

    Any suggestions
    thanks,
    Rolf
     
  2. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,425
    Likes Received:
    1,004
    You'll find that the RuneMate Javadocs are very helpful. The link to them can be found in your Developer Panel. Interface/component clicking specifically would look something like this:
    Code (Text):
    1. Interfaces.getAt(762, 41).interact("Tan 1")
    Of course you would want to check that that interface is valid, visible, etc. before interacting. Additionally you would have to change the interaction string to the actual interaction you want, but is the basic method.

    P.S. Welcome to RuneMate. :)
     
  3. Cloud

    Cloud The Developer

    Joined:
    Jul 28, 2013
    Messages:
    2,300
    Likes Received:
    729
    Hi, currently our API doesn't have special support for bank presets, but you do have a couple options. Since you know the interface component you could do:
    Code (Text):
    1.  
    2. Interfaces.getAt(762, 41).click()
    3.  
    however if for any reason jagex updates the order of the components that will break the script bot. At RuneMate we highly encourage you to use the information available in the development toolkit to identify things dynamically, including interfaces. You can use text, actions, the displayed model, the size of the entity, and many other things to identify the entity without hardcoding the components.
     

Share This Page

Loading...