Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hayase

Members
  • Joined

  • Last visited

Everything posted by Hayase

  1. Maybe this will help? http://stackoverflow.com/questions/22619262/upgrade-eclipse-to-java-8?noredirect=1&lq=1 If you don't have Java 8, get it here http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
  2. You are using Java 8 right? The one liner is just using Java 8 streams. Are you using an IDE?
  3. Something to note about your mule bit is that you are using Entity and grabbing the player as if it were an NPC. If you want to follow the standards you can just use the Player class like so: //The replaceAll method will let you use names with spaces in them. Jagex does not use normal spaces. Player mule = getPlayers().closest(o -> o.getName().replaceAll("\\u00a0", " ").equalsIgnoreCase(/*Mule Username*/)); //do null checks on mule and other things to see if the mule is in range to trade //Change "Trade" to "Trade with" if (mule.interact("Trade with")) { log("Waiting for other player to accept trade"); new ConditionalSleep(5000) { @[member=Override] public boolean condition() throws InterruptedException { return trade.isFirstInterfaceOpen(); } }.sleep(); }
  4. 100k for 70 wc maybe 200k for 80 wc
  5. I don't have 100 posts yet but if you are interested I've got this acc All f2p nothing special
  6. Hayase posted a topic in Price Check
    All f2p
  7. Like another poster said there is not enough default memory to run two tabs in the client. You have to tell the client to use more. In the same directory as your osbot jar make a bat file @echo off title WTF 2 TABZ java -jar "osbot 2.4.107.jar" -mem 2048 pause If it says that java cannot be found or is not a command, you'll have to change it to the full path to java "C:\Program Files\Java\jre1.8.0_111\bin\java.exe" -jar ...
  8. Sexy af. Can you make a signature for storing WC information?
  9. You got banned because you didn't buy VIP
  10. Coming back to this issue I have a better idea if you want to try it. Instead of taking count of the bones directly what about counting the empty spaces you have in your inventory and once you hit 0 you bury bones/bank and then restart? //Somewhere up at the top of your script or wherever you are keeping track of your bone count: int totalBones = 0; case LOOTING_BONES: if (!myPlayer().isAnimating()) { GroundItem bone = groundItems.closest("bones"); if (bone != null) { int currentFreeSpace = inventory.getEmptySlotCount(); bone.interact("Take"); /* * If you use conditional sleeps it will work more efficiently than static sleeping sleep(random(900)); */ new ConditionalSleep(900) { @[member='Override'] public boolean condition() throws InterruptedException { /* * If our empty slot count is less than before--we must have picked up that bone */ if (inventory.getEmptySlotCount() < currentFreeSpace) { //Increase the bone count totalBones++; return true; } return false; } }.sleep(); } } break;
  11. Or just use conditional sleeps: int currentBonerCount = inventory.getItem("Bones").getAmount(); pickUpBone(); new ConditionalSleep(2_000) { @[member='Override'] public boolean condition() throws InterruptedException { return inventory.getItem("Bones").getAmount() > currentBonerCount; } }.sleep();
  12. http://osbot.org/forum/topic/88389-mining-rocks-with-ore-no-ids/
  13. case STEAL: RS2Object stall = getObjects().closest("Tea Stall"); if(stall != null) { if(stall.hasAction("Steal-from") && stall.interact("Steal-from")) { return random(1900, 2500); } } break; Use conditional sleeps so you don't have to worry about sleeping for too little or too long. It's a good idea to get used to using conditional sleeps now for later down the road if you decide to make other scripts that involve interacting with NPCs/objects. case STEAL: RS2Object stall = getObjects().closest("Tea Stall"); if(stall != null) { if(stall.hasAction("Steal-from") && stall.interact("Steal-from")) { new ConditionalSleep(3_000) { @[member='Override'] public boolean condition() throws InterruptedException { return myPlayer().isAnimating(); } }.sleep(); } } break;
  14. Good luck
  15. Can I have a trial please?
  16. RIP. I don't know what to tell you bud
  17. Actually yeah. In linux case actually matters. Try making it lowercase and see if that fixes it?
  18. go to the directory with gui.txt and change permissions on it. Do chmod 777 gui.txt
  19. Hayase replied to Mikee_'s topic in Scripting Help
    If you use entity hover debug in the client what do you see about the object and it's id? Perhaps instead of calling it by the string name you can call it by the id instead?
  20. I changed my mind. public boolean validate() throws InterruptedException{ //// Checking if inventory is full, and if so, is our player in the bank or not return sA.inventory.isFull() && !data.EBank.contains(sA.players.myPosition()) && (banker !=null && !banker.isOnScreen()); } Does this work like your Bank node?
  21. Am tired public boolean validate() throws InterruptedException{ //// Checking if inventory is full, and if so, is our player in the bank or not return sA.inventory.isFull() && !data.EBank.contains(sA.players.myPosition()) && (banker !=null && !banker.isOnScreen()); }
  22. Hayase replied to Mikee_'s topic in Scripting Help
    That means the object is still null. You need to keep looking for the object by either walking around or something to try and find those objects.
  23. You say you lag out as soon as you get a full inventory. Maybe you are getting a nullpointer? NPC banker = sA.npcs.closest(395); Try and test if (banker != null) before trying to use banker in your validate() && !banker.isOnScreen();
  24. Very elegant documentation it was a pleasure to read

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.