Jump to content

equip() always returning false. Bug?


Recommended Posts

Posted
package MasterScripts;

import org.osbot.rs07.api.Bank;
import org.osbot.rs07.api.ui.EquipmentSlot;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;

@ScriptManifest(author="RS", info="Test small snippets", logo="", name="TestFunctions", version=1)
public class TestFunctions extends Script {

    @Override
    public void onStart() {}

    @Override
    public int onLoop() throws InterruptedException {
        try {
            boolean ew = getEquipment().equip(EquipmentSlot.WEAPON, "Iron axe");
            log("Result of equip: "+ew);
        } catch (Exception e) {
            log("Exception occurred: "+e);
        }
        stop(false);
    }

}

Equip a bronze axe. Load an iron axe into your inventory. The above script equips the axe, BUT returns false. Bug?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...