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.

Swizzbeat

Members
  • Joined

  • Last visited

Everything posted by Swizzbeat

  1. Swizzbeat replied to Apaec's topic in Scripting Help
    Use a bitmask to check if the bit which represents Piety is turned on. You should be able to get it easy checking for config changes (pretty sure the config is 83).
  2. Swizzbeat replied to Nick's topic in Archive
    Yeah I took that last year. I forget the exact DBQ question but it was something extremely easy.
  3. Swizzbeat replied to a post in a topic in Snippets
    Work on your naming conventions.
  4. I'm creating wrapper classes for some stuff, however it seems that for this one at least I'm getting an NPE when I check for whether it exists or not. Here's the (unfinished) wrapper class: package core.utils.wrappers; import org.osbot.accessor.XGroundItem; import org.osbot.script.Script; import org.osbot.script.rs2.model.GroundItem; /** * Created with IntelliJ IDEA * User: Anthony * Date: 5/13/2014 */ public class Loot extends GroundItem { private XGroundItem instance; private Script sI; public Loot(XGroundItem instance, Script sI) { super(instance); this.instance = instance; this.sI = sI; } public void pickUp(boolean loopUntilPickedUp) throws InterruptedException { do { interact("Take"); } while (loopUntilPickedUp && exists()); } public XGroundItem getInstance() { return instance; } } The part where I am getting the NPE is when I declare an object of type Loot and call the #exists() method (could be an issue for other methods but I haven't got past this one yet). I declare the object in a similar fashion to this: Loot loot = new Loot(closestGroundItemForName("whatever").instance, sI); The error message is then logged to the console: [ERROR][05/14/14 08:10:52 AM]: Error on executing script worker! java.lang.NullPointerException at org.osbot.script.rs2.model.GroundItem.getZ(zf:147) at org.osbot.script.rs2.map.Region.contains(dg:154) at org.osbot.script.rs2.model.GroundItem.exists(zf:84) at core.tasks.Looter.execute(Looter.java:41) at core.task_framework.TaskManager.findAndExecuteTaskInCategory(TaskManager.java:22) at core.Main.onLoop(Main.java:133) at org.osbot.hc.run(um:136) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Any help would be appreciated. I feel like I'm doing something incredibly stupid O_o FYI my other wrapper classes work fine.
  5. What did he do?
  6. That's a client, not script, bug.
  7. Swizzbeat replied to breefie's topic in Tutorials
    http://jd.benow.ca/ And you decompile the .java files. If it's obfuscated you'll see random bytecode everywhere as well as weirdly named methods/variables.
  8. Swizzbeat replied to breefie's topic in Tutorials
    Even if a script is broken, it should be helpful just to look at it based on a learning perspective.
  9. Learn the Java programming language. No matter what client you're scripting for you're going to need to know it.
  10. Swizzbeat replied to Molly's topic in Scripting Help
    Based on the fact that he said he's new to Java, I doubt hes going to care about what thread his GUI is running on. @OP this would be the correct way to run the GUI though.
  11. That's why I would keep this picture in my pocket at all times to show them:
  12. Imagine just casually talking to some girl and all of a sudden her bra just pops off.
  13. Maybe once I can write a simple script without it throwing errors for now reason, actually have all the classes included in the jar and know that they won't change the API up randomly.... I'll consider it.
  14. Pretty sure this is why SDN upload requests are now closed as well.
  15. No I 100% meant name changes, but while were discussing additional features for us to have that would be a nice one. ily
  16. Guess employers aren't required to pay their workers if they don't feel like it since it's just a benefit. Also, who cares who's going to even use it or not. We have unlimited tabs and I've used at max two, but that doesn't mean it's suddenly going to be removed. Your arguments are completely pointless and make no logical sense.
  17. No OSBot takes it all.
  18. Maybe because one of the only reason people are even at this site to give money is because of our scripts so cheap wtf
  19. I heard their kids got them a spa day
  20. http://osbot.org/forum/topic/49421-farewell-friends/ Should be removed?
  21. Wait what? for (NPC currentNPC : getNpcs()) { //iterate over each npc } I'm assuming #getNpcs() would return an implementation of List or at the very minimal an Array...
  22. Why do you create an iterator object? The enhanced for loop creates an implicit Iterator by default.
  23. Swizzbeat replied to domdom's topic in Archive
    Or just shake and bake

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.