Jump to content

equip() always returning false. Bug?

Recommended Posts

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 {

    public void onStart() {}

    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);


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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...