Skip 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.

Night

Ex-Staff
  • Joined

  • Last visited

Everything posted by Night

  1. IIRC the anchor is in an iframe
  2. The thread will continue to run during a conditional sleep, which only sleeps the main thread.
  3. You can always run your antiban in a thread, set only to run it's loop while your status is set to fletching.
  4. ConditionalSleep returns a boolean based on whether it's return statement was met or it timed out. You can use this to detect where you're still animating or you've ended.
  5. Tested @YoHoJo's suggestion, does not work with OSBot for some reason. Tested on Debian 7, Ubuntu 16.04, and Windows Server 2012 R2.
  6. Night replied to Night's topic in Spam/Off Topic
    Who's Tom??
  7. Night replied to Night's topic in Spam/Off Topic
    Do it I won't buy ur gfx
  8. Night replied to Night's topic in Spam/Off Topic
    Don't mind me just here for post count
  9. Night posted a topic in Spam/Off Topic
  10. - What is your Skype?: live:virtualandrew916 - What service do you need?: 67-76 agility - Payment method? (rsgp/btc): BTC - Do you agree to my TOS?: Yes
  11. Night replied to Night's topic in Spam/Off Topic
    Ty Muffins Rather kms tbh I know
  12. Night posted a topic in Spam/Off Topic
    TL;DR Have enough spending money in PayPal atm to buy some Apple airpods off eBay to go with my iPhone and Apple Watch. Do I drop $300 (double what Apple charges - who is backstocked 6+ weeks) and become a fully fledged Apple fanboy?
  13. Night replied to Night's topic in Snippets
    Feel free to modify it.
  14. Bought and sold to Realist and his staff several times, great and trustworthy group of people!
  15. Night posted a topic in Snippets
    I wasn't happy with existing Inventory Listener snippets here so I converted one over from elsewhere. import org.osbot.rs07.api.Client; import org.osbot.rs07.api.model.Item; import org.osbot.rs07.script.Script; import org.osbot.rs07.utility.Condition; import java.util.ArrayList; import java.util.HashMap; public class InventoryObserver extends Thread { private ArrayList<InventoryListener> listeners; private Condition condition; private Script theScript; private Client client; public InventoryObserver(Condition condition, Script script) { this.listeners = new ArrayList<>(); this.condition = condition; this.theScript = script; this.client = script.client; } @[member=Override] public void run() { while (!client.isLoggedIn()) { try { theScript.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } } HashMap<Integer, Integer> map = inventoryHashMap(); while (true) { try { theScript.sleep(100); } catch (InterruptedException e) { e.printStackTrace(); } if (!client.isLoggedIn()) continue; if (!condition.evaluate()) { map = inventoryHashMap(); continue; } HashMap<Integer, Integer> updatedMap = inventoryHashMap(); for (Integer i : updatedMap.keySet()) { int countInitial = map.containsKey(i) ? map.get(i) : 0, countFinal = updatedMap.get(i); if (countFinal > countInitial) { addTrigger(i, countFinal - countInitial); } else if (countFinal < countInitial) { subtractedTrigger(i, countInitial - countFinal); } map.remove(i); } for (Integer i : map.keySet()) if (!updatedMap.containsKey(i)) subtractedTrigger(i, map.get(i)); map = updatedMap; } } public HashMap<Integer, Integer> inventoryHashMap() { HashMap<Integer, Integer> map = new HashMap<Integer, Integer>(); for (Item item : theScript.inventory.getItems()) { if(item != null) { map.put(item.getId(), Integer.valueOf((int) theScript.inventory.getAmount(item.getId()))); } } return map; } public void addListener(InventoryListener inventoryListener) { listeners.add(inventoryListener); } public void addTrigger(int id, int count) { for (InventoryListener l : listeners) l.inventoryItemGained(id, count); } public void subtractedTrigger(int id, int count) { for (InventoryListener l : listeners) l.inventoryItemLost(id, count); } } public interface InventoryListener { void inventoryItemGained(int id, int count); void inventoryItemLost(int id, int count); } Usage: Implement InventoryListener in your main class, and implement the methods your IDE suggested. In your onStart method, declare a new InventoryObserver object, including the condition under which you want the observer to run (i.e. make it not run while a bank is open). From there, call addListener(this) on your object and then call .start() on it. From there it should be fairly straight-forward to use.
  16. Found these on another thread (think credit goes to Explv) public boolean isLoggedIn() { return isHopping() || getClient().getLoginStateValue() == 30 || getClient().isLoggedIn() || isLoading(); } public boolean isHopping() { return getClient().getLoginStateValue() == 45 || getClient().getLoginStateValue() == 25; } public boolean isLoading() { return getClient().getLoginState() == Client.LoginState.LOADING || getClient().getLoginState() == Client.LoginState.LOADING_MAP; } Should help you to wait until you're done hopping.
  17. No, you cannot create a script to "mimic human behaviour 100%".
  18. Made me an awesome signature quick, super friendly guy. Will definitely be coming back for my script paints and logos!
  19. Night posted a topic in Price Check
    Don't plan on selling until I can get my post count up, but interested to see what my main would be worth. Has 160+ QP, full graceful, barrows gloves, fire cape, torso, etc.
  20. Create an enum with all the positions containing the position of each. Loop through the enum comparing the distance to each of the positions, and return the smallest.
  21. Night replied to Sysm's topic in Spam/Off Topic
    He admitted he got lucky, but still lots of skill involved. Well played indeed.
  22. They'd likely give you a brace and tell you to get off the computer
  23. Probably RSI - Repetitive Strain Injury
  24. I can sell you accounts without tut island done

Account

Navigation

Search

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.