Jump to content

RS13159265

VIP
  • Content Count

    7
  • Joined

  • Last visited

  • Feedback

    0%

Community Reputation

0 Bronze

About RS13159265

  • Rank
    Newbie

Profile Information

  • Gender
    Male
  1. Similarly, inventory.dropAll(f) always returns true, regardless of whether or not it dropped an item.
  2. @Explv ahh that makes sense, thank you very much. How did you manage to get the source code?
  3. 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 (Exceptio
  4. Thanks. For my understanding: 1) What does new Bank() do / refer to? 2) And, reiterating, why does a non-null object raise a Null exception?
  5. The following code: package MasterScripts; import org.osbot.rs07.api.Bank; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author="Me", info="NA", logo="", name="TestFunctions", version=1) public class TestFunctions extends Script { @Override public int onLoop() throws InterruptedException { log("Starting script..."); Bank b = new Bank(); log("b is "+b); if (b == null) { log("b is null"); } try { log("Calling b.open()"); b.open(); } catch (Exception e) {
  6. Hey, I would like some way to count the number of times the bot clicks. My primary motive for this is that I want to make sure that the conditional sleeps are performing correctly i.e. after clicking on a tree the bot doesn't click again until the tree is dead. I took a look at BotMouseListener, and got that to work (in a somewhat hacky manner). Unfortunately, while that seems to be correctly counting my manual clicks on the screen, it is not recording the clicks that the bot itself makes. (AAARRGHRGHRGHR). I searched through the snippets and such but I wasn't able to f
×
×
  • Create New...