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.

Server Message Listener

Featured Replies

Just did the injection for game messages.

Here's an example script:

@ScriptManifest(name = "TreeChopper", author = "Lazaro", version = 1.0D, info = "")class TreeChopper extends Script {	def treeId = 66812	def chopping = false	def currentTree = null		int onLoop() {		if(chopping && !currentTree.exists()) {			chopping = false			currentTree = null						Logger.log("Chopped down tree!")		}				if(!chopping) {			currentTree = closestObject(treeId)			if(currentTree != null) {				Logger.log("Closest tree : (${currentTree.getX()}, ${currentTree.getY()})")				selectEntityOption(currentTree, "Chop down")			}		}				return 1000 + random(2000)	}		void onMessage(String message) {		if(message == "You swing your axe at the tree.") {			Logger.log("Chopping down tree!")			chopping = true		}	}}
Obviously it's very basic and doesn't do much but click on trees. But it's just to show how our script API looks like.

Sincerely,

Laz.

  • Author

It's Groovy, as stated in the ETA thread. We will be supporting Java too.

It's Groovy, as stated in the ETA thread. We will be supporting Java too.

Alright, your project is going great so far btw!

The Script class should have a "log" method. Groovy looks very similar to Java. Gj so far.

No way to get sender, message type with this api? [unless this is Groovy having odd syntax??]

Looks very nice and tidy, can't wait to see how Java looks.

  • Developer

No way to get sender, message type with this api? [unless this is Groovy having odd syntax??]

This simply are game messages on the chatbox.

When would we expect OSBot to support Java?

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

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.