- Joined
- Nov 17, 2013
- Messages
- 63
- Thread Author
- #1
So when I do in rs3 spectre:
Its prints out 0 for both when no screen is up and as soon as the first screen goes up it prints 1. However, when you exit out of any trade screen it it keeps printing 1 even though none of them are visible.
JavaScript:
final static public int INTERFACE_FIRST_TRADE = 335;
final static public int INTERFACE_SECOND_TRADE = 334;
InterfaceComponentQueryResults trade1 = Interfaces.newQuery().containers(INTERFACE_FIRST_TRADE).actions("Accept").visible().results();
InterfaceComponentQueryResults trade2 = Interfaces.newQuery().containers(INTERFACE_SECOND_TRADE).actions("Accept").visible().results();
System.out.println("IS TRADING: first screen length: "+trade1.size()+" second screen length: "+trade2.size());
Its prints out 0 for both when no screen is up and as soon as the first screen goes up it prints 1. However, when you exit out of any trade screen it it keeps printing 1 even though none of them are visible.