Welcome!

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

Sign up now!

Some API that I think should be added.

red

Joined
Nov 17, 2013
Messages
258
Code:
    public static boolean canContinue() {
        return getContinueComponent() != null;
    }
    public static void clickContinue() {
        if (canContinue()) {
            WidgetComponent w = getContinueComponent();
            w.click();
        }
    }
    public static WidgetComponent getContinueComponent() {
        List<Widget> valid = Widgets.getLoaded();
        for (Widget iface : valid) {
            for (WidgetComponent component : iface.getComponents()) {
                if (component.getText().equals("Click here to continue") && component.isValid()) {
                    return component;
                }
            }
        }
        return null;
    }
I will probably keep this topic updated
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
An entire chat api would probably be a good idea. A magic api would also be useful.
 
Last edited by a moderator:
Engineer
Joined
Jul 28, 2013
Messages
2,776
I'm going to add a basic ChatBox class which will be expanded later on, thanks for the idea.
 
Joined
Nov 19, 2013
Messages
2
isInCombat()
isMoving()
distanceTo()
turnTo(locatable)
Walking in general.
 
Last edited:

red

Joined
Nov 17, 2013
Messages
258
isInCombat() not sure
isMoving() -> getSpeed, 0 is not walking, 1 is walking, 2 is running
distanceTo() -> easy method a^2 + b^2 = c^2
turnTo() -> dunno
Walking -> non-webwalking probably needs to be implemented(might make it myself)
 
Joined
Nov 19, 2013
Messages
2
isInCombat() not sure
isMoving() -> getSpeed, 0 is not walking, 1 is walking, 2 is running
distanceTo() -> easy method a^2 + b^2 = c^2
turnTo() -> dunno
Walking -> non-webwalking probably needs to be implemented(might make it myself)

isInCombat() - Absolutely yes
Okay
distanceTo() - Not sure if you're trolling, or an idiot.
turnTo() - Absolutely yes
Walking - There's no means of walking right now.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
isInCombat() - Not added, something similar may, but it definitely won't be called that.
isMoving() - use getSpeed
distanceTo() - Check out the Distance class
turnTo(locatable) - Will add, it's basic math
Walking in general. - Just build a small web for now with our framework or click the minimap point (Coordinate.minimap().click()).
 
Joined
Nov 3, 2013
Messages
277
isInCombat() not sure
isMoving() -> getSpeed, 0 is not walking, 1 is walking, 2 is running
distanceTo() -> easy method a^2 + b^2 = c^2
turnTo() -> dunno
Walking -> non-webwalking probably needs to be implemented(might make it myself)
actually that's wrong
well 0 is not walking, but the other 2 differ on how far you're walking
walking is 1 and sometimes 2 for longer distances
running is 2 and sometimes 3 for longer distances
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
actually that's wrong
well 0 is not walking, but the other 2 differ on how far you're walking
walking is 1 and sometimes 2 for longer distances
running is 2 and sometimes 3 for longer distances
Correct, technically it's the size of the walking queue, however it's far simpler for most developers to understand the concept of speed.
 
Top