June 5, 20214 yr 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?
June 5, 20214 yr Author Similarly, inventory.dropAll(f) always returns true, regardless of whether or not it dropped an item.
Create an account or sign in to comment