Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Clicking bank preset button

Joined
Jul 16, 2014
Messages
1
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
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,053
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:
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. :)
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
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
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:
Interfaces.getAt(762, 41).click()
however if for any reason jagex updates the order of the components that will break the script. 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.
 
Top