Welcome!

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

Sign up now!

Question Interface Help - Actions

Joined
Apr 26, 2017
Messages
97
Hey guys,

I'm working hard to try and create my first bot which is a simple Flax spinner in Lumbridge, I'm getting stuck with the flax spinning interface and trying to interact with it. This is what the interface looks like for ref:

Imgur: The most awesome images on the Internet

Right click on "Bow String (Flax" on that interface has your normal "Make 1, Make 5, Make 10, Make X" options however I am unable to access these options.

Using Open Interface I have been able to find:

Code:
InterfaceContainer 459
Index: 459
Components: 134

InterfaceComponent [459, 90]
Index: 90
Components: 0
Bounds: (x=238, y=138, width=50, height=16)
Visible: true
Text: Bow String
(Flax)
Escaped text: Bow String\r\n(Flax)
Type: LABEL
Text Color: (r=255, g=152, b=31)
Content Type: 0
Border Thickness: 0
Sprite Id: -1
Name (on menu): null
Actions:

As you can see "Actions" is empty and this throws a nullPointer when trying to use interfaceComponent.interact() with it.

Now I've gone through every other Interface Component coming up when the interface is open and not one of them has any actions such as "Make 10" or "Make X" am I looking at something wrong here?

Thanks
 
Joined
Mar 14, 2017
Messages
156
make sure you are looking at the correct interface, it it should be in the same container, but the component id will be different. use the interface explorer to find the proper one that has the interact options
 
Joined
Apr 26, 2017
Messages
97
make sure you are looking at the correct interface, it it should be in the same container, but the component id will be different. use the interface explorer to find the proper one that has the interact options

This is my problem. I am looking in Interface container 459 of which there are 134 components however not one of those 134 has an action, yet some of them randomly match the text of the part of the interface I want to interact with. E.g.
Interface Component [459, 90] has text = Bow String\r\n(Flax)

That is the one I want to interact with, but not a single component in Interface Container 459 has an action...

EDIT:
Ok I did it before but I did it again just to be safe, I just went through every interface and all of their components and none of them other than Interface container 459 are related to my interface and none of them have the action I am after. Not sure what's going on :(
 
Last edited:
Joined
Jan 31, 2017
Messages
121
Try "Visual developer" and explore the interface by (if i recall correctly) cmd-clicking. It will automatically highlight components and give you information about it.
 
Joined
Mar 14, 2017
Messages
156
This is my problem. I am looking in Interface container 459 of which there are 134 components however not one of those 134 has an action, yet some of them randomly match the text of the part of the interface I want to interact with. E.g.
Interface Component [459, 90] has text = Bow String\r\n(Flax)

That is the one I want to interact with, but not a single component in Interface Container 459 has an action...

EDIT:
Ok I did it before but I did it again just to be safe, I just went through every interface and all of their components and none of them other than Interface container 459 are related to my interface and none of them have the action I am after. Not sure what's going on :(
use open interface explorer (you need to download source code from bot store and run it locally)
the interface component that has bow string and flax listed is a label component, you will see that it says "type: LABEL"

you need to find the correct interface component that has the interact actions. i will check in a few minutes and see if i can find the exact ID
 
Joined
Apr 26, 2017
Messages
97
Try "Visual developer" and explore the interface by (if i recall correctly) cmd-clicking. It will automatically highlight components and give you information about it.

Ah this looks great! I'll give this a shot, thanks :D

use open interface explorer (you need to download source code from bot store and run it locally)
the interface component that has bow string and flax listed is a label component, you will see that it says "type: LABEL"

you need to find the correct interface component that has the interact actions. i will check in a few minutes and see if i can find the exact ID

Ok let me know how you go. I understand that the component I showed was a LABEL type but I was only showing that because it indicates I'm looking at the right Interface container. Going through every component of that container I found nothing with an action.
 
Joined
Mar 14, 2017
Messages
156
Ah this looks great! I'll give this a shot, thanks :D



Ok let me know how you go. I understand that the component I showed was a LABEL type but I was only showing that because it indicates I'm looking at the right Interface container. Going through every component of that container I found nothing with an action.

just trying to get a mem acc with flax to use to grab the id :p all my mems have been banned or have expired atm
 
Joined
Apr 26, 2017
Messages
97
just trying to get a mem acc with flax to use to grab the id :p all my mems have been banned or have expired atm
I think you should be able to do it without mems acc no? Or does it not let you even use the wheel on f2p? If you haven't found one tomorrow let me know ;)

I just used the visualiser tool, it also confirms the same thing. Not a single component listed has a "getActions"
 
Joined
Dec 28, 2013
Messages
190
I was never able to figure this out for a few of my bots. I just decided to create my own interaction method that right clicked and selected the proper menu option instead of relying on interface.interact().
 
Top