Erke
-
Posts
11 -
Joined
-
Last visited
-
Feedback
0%
Posts posted by Erke
-
-
No offense but I know what I'm talking about......
I got this off of google...If u have used multiple if statements then if the condition is true all will be executed and if u have used if and else if combination only one will be executed where first comes the true value
Second, break statements are used to break loops for example a while loop, for loop, do while loops. What he has there is probably under the onLoop and the onLoop isn't really a loop statement like I posted above, but rather an int method that just ge re looped by the client..........
No offense but you weren't sending that signal...
-
you should really null check that widget before calling its isVisible(). incase you think you did. I have to tell you, you didn't.
if the widget is null he'll break the loop, means the code will never reach "if (w.isVisible())".
-
i r8 8/8
- 1
-
Are you going to try and run image recognition on the images to determine which one it is? :facepalm:
- 1
-
-
-
Good morning Osbot, the mirror client is amazing
- 1
-
public RS2Object[] getObjectsWithAction(final String action) {
Filter<RS2Object> filter = new Filter<RS2Object>() {
@Override
public boolean accept(RS2Object t) {
if (t != null) {
if (t.getDefinition() != null) {
if (t.getDefinition().getActions() != null) {
if (t.getDefinition().getActions().length > 0) {
for (String a : t.getDefinition().getActions()) {
if (a != null) {
if (a.equalsIgnoreCase(action)) {
return true;
}
}
}
}
}
}
}
return false;
}
};
return getAllRS2Objects(filter);
}
Nesting if-statments much?
- 1
List<Position>
in Scripting Help
Posted
Guess you could use toArray too? path.toArray(new Position[]{});