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.

Interacting with objects and other misc problems

Featured Replies

Here's part of my method that i need explanation on how to use it properly and what it truly does (api wasn't helping me)

 

Character.interact("Cross","Wilderness Ditch",true,20,true,true);

 

Cant make static reference to non static method

 

I thought this method im calling will interact with the object using that option if its within 20 squares away and will move the camera pitch if necessary.

 

Can someone please explain how to do this properly?

 

Also side note - Is there a method for toggling run or do i have to hard code mouse points and such?

Thanks! - Caseywyka

 

(credit for help will be left in script when done)

 

 

You can't call a static method in a non-static method, so you'll have to make a variable and interact with it that way.

 

Example:

RS2Object ditch = closestObjectForName("Wilderness Ditch");
ditch.interact("Cross");

You can enable/disable running with this:

setRunning(true); //This turns it on
setRunning(false); //This shuts it off
  • Author

thanks and also one more thing, if i have a choice to make like say smelt something. how do i right click it and hit make x

thanks and also one more thing, if i have a choice to make like say smelt something. how do i right click it and hit make x

 

You'll have to use the interface debugger and find what interface parent and child ID it is, then use:

client.getInterface(PARENT_ID).getChild(CHILD_ID).interact("Make-x");

 

You'll have to use the interface debugger and find what interface parent and child ID it is, then use:

client.getInterface(PARENT_ID).getChild(CHILD_ID).interact("Make-x");

 

i believe smelting has a color tag in it example "Smelt X <col=ff9040>Iron"

Edited by TheScrub

 

You can't call a static method in a non-static method, so you'll have to make a variable and interact with it that way.

 

 

 

I think you meant it the other way around. You can call static methods from a non-static method, but you can't call non-static methods from a static context (static context includes calling from a static method and calling through the class name instead of an instance)

I think you meant it the other way around. You can call static methods from a non-static method, but you can't call non-static methods from a static context (static context includes calling from a static method and calling through the class name instead of an instance)

 

Oops, haha. That's what I meant :P

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.