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.

getting current world

Featured Replies

public static final int getCurrentWorld(final ClassLoader loader)
   throws Exception {
  final Field field = loader.loadClass("client").getDeclaredField("z");
  if (!field.isAccessible())
   field.setAccessible(true);
  return field.getInt(null) * -2588411;
 }


Usage: getCurrentWorld(bot.D());

currently using this to check if im in world 85 then i hop if i am

  • Author

dont forget world 86 tongue.png

thx didn't know it was 86 too :p

  • Author

It could just be that I'm stupid, but due to OSBot's obfuscation wouldn't you have to edit this every client update?

ye

It could just be that I'm stupid, but due to OSBot's obfuscation wouldn't you have to edit this every client update?

I wrote this for OP, and yes you're correct. It would also need to be updated everytime there's a RuneScape client update, but I'm fine with fixing it.
  • Author

I wrote this for OP, and yes you're correct. It would also need to be updated everytime there's a RuneScape client update, but I'm fine with fixing it.

wat no dog_ wrote it

You could just make your own small updater and implement it into your script. Grabbing them fields is pretty easy as the class "client" has a fixed name and doesn't change throughout revisions; you'd just have to hunt a pattern down with either ASM or regex =) I've done it before so it can't be that hard haha

wat no dog_ wrote it

that's me

You could just make your own small updater and implement it into your script. Grabbing them fields is pretty easy as the class "client" has a fixed name and doesn't change throughout revisions; you'd just have to hunt a pattern down with either ASM or regex =) I've done it before so it can't be that hard haha

I have my own updater but it's really a waste of time implementing it into a script lol

Aaaaand I wasted my time. I just noticed that current world is already there

I don't even api

Edited by Ryuzaki

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

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.