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.

Lordsthan

Members
  • Joined

  • Last visited

Everything posted by Lordsthan

  1. You got banned because someone posted about it on reddit. Your nickname is visible on your latest video at 2:26.
  2. I can see your nickname at 9:13
  3. Implying you are 80 Ranged and you are using mithril darts and overloads, you can tweak your boss choices based on this list:
  4. Why are you using Barrows Gloves with Void?
  5. You can try: array items if the bank is open: loop through items if the bank contains items[x] and inventory does not: withdraw item[x] else continue/stop else if the bank is not open and my player is near the bank: open bank else go to the bank
  6. Here: https://web.archive.org/web/20151029095223/http://osbot.org/api/org/osbot/rs07/utility/ConditionalSleep.html
  7. 1) You should use accessor methods (getter and setter) instead of public fields. Eg: - getMouse().moveOutsideScreen() instead of mouse.moveOutsideScreen() - getSettings().setRunning(true) instead of settings.setRunning(true) 2) You should use Conditional Sleep instead of static sleep. mouse.moveOutsideScreen(); sleep(random(5000,12000)); Currently, after moving your mouse off-screen, your script will always sleep from 5 to 12 seconds. getMouse.moveOutsideScreen(); new ConditionalSleep(5000) { @[member=Override] public boolean condition() throws InterruptedException { return !getMouse().isOnScreen(); } }.sleep(); Using a Conditional Sleep, your script will only sleep until your mouse is off-screen or the timeout is reached. You can check more about this here: https://webcache.googleusercontent.com/search?q=cache:http://osbot.org/api/org/osbot/rs07/utility/ConditionalSleep.html 3) What is anti-ban your opinion? If your user want his account to stay at 1 defence, should your script still check his defence experience? if(cowToKill != null && !cowToKill.isOnScreen()) camera.toEntity(cowToKill); Currently, in your script, your player will always attack the closest cow and if your target isn't visible on screen, it will rotate the camera. Doesn't a non-bot player attacks what is visible for him instead of rotating the camera before attacking a monster? (PS: IIRC @Krulvis already addressed that in the past but I couldn't find his post) If you want to do this, you need to remove the code above and modify your script to: @SuppressWarnings("unchecked") private NPC getTarget(){ NPC targetCow = getNpcs().closest(new Filter<NPC>(){ public boolean match(NPC theCow){ return theCow != null && (theCow.getName().equals("Cow") || theCow.getName().equals("Cow calf") && theCow.isAttackable() && theCow.isVisible()); } }); return targetCow; } 4) Visually speaking, you can reduce your paint to: g.drawString("Attack XP gained: " + attackXP + " - Attack Lvls gained: " + attackLvls, 25, 200);
  8. No, it will sleep until your condition returns true or the timeout is reached. You can check more about it here: https://webcache.googleusercontent.com/search?q=cache:http://osbot.org/api/org/osbot/rs07/utility/ConditionalSleep.html
  9. Try getWidgets().get(465,24,10).interact(); or getWidgets().get(465,24,10).interact("-5%");
  10. Values from .getRotation() when walking into a new tile: North: 1024 Northeast: 1280 East: 1536 Southeast: 1792 South: 0 Southwest: 256 West: 512 Northwest: 768 When interacting with a NPC/Entity, subtract 1 from these values (Ex: North: 1024 if walking; 1023 if interacting).
  11. Why did you removed Position from Debug Settings?
  12. Thanks for everyone, I managed to fix my script using widgets.
  13. Hey, today I started making my first script and got a bug called NullPointerException when I try to use store.interact or store.buy from OSBot API. Here's a part of my code: if(store.isOpen()){ status = "Buying"; sleep(random(300,700)); store.interact(8, "Buy 5"); //... } What I would like to do in-game: and here is the error: [ERROR][Bot #1][09/10 10:31:22 PM]: Error in script executor! java.lang.NullPointerException at org.osbot.rs07.api.Store.interact(xi:364) at main.onLoop(main.java:82) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ni:26) at java.lang.Thread.run(Unknown Source) So how could I fix that?

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.