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

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,938
    Likes Received:
    1,266
    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 Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    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...