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.

A Buying Bot

Featured Replies

Ok, so I am relativity new to the script making scene, I've made the one miner from the Tutorial on here, and I am semi ok with java programming as a whole. I want to make a script that will buy an item from a shop, and open the pack. Are there any tutorials out there that show basic npc action interactions? Or maybe a code I can look at? I would love if someone could help walk me through making a few basic scripts, if anyone like doing that kind of thing. :)

The Entity Interaction:

Entity ShopKeep = closestAttackableNPCForName("Shop Keeper");

ShopKeep.Interact("Trade");



The Shops Interface:

Either use interface and find out what number the object is and then use these..


public boolean interactWithInterface(int parent, int child, String action) throws InterruptedException {
RS2InterfaceChild ic = this.client.getInterface(parent).getChild(child);
return ic != null && ic.isVisible() && ic.interact(action);
}

which you would use like...

interactWithInterface(304, 3, "Buy X");

interactWithInterface(INTERFACE ID GOES HERE, CHILD ID HERE, "Buy X");

Or use mouse coordinates with a slight randomisation by a few pixels for antiban

Then use

client.typeString("28");

.. I have more code for making walking paths if you need, i hope i helped.

The Entity Interaction:

Entity ShopKeep = closestAttackableNPCForName("Shop Keeper");

ShopKeep.Interact("Trade");

The Shops Interface:

Either use interface and find out what number the object is and then use these..

public boolean interactWithInterface(int parent, int child, String action) throws InterruptedException {

RS2InterfaceChild ic = this.client.getInterface(parent).getChild(child);

return ic != null && ic.isVisible() && ic.interact(action);

}

which you would use like...

interactWithInterface(304, 3, "Buy X");

interactWithInterface(INTERFACE ID GOES HERE, CHILD ID HERE, "Buy X");

Or use mouse coordinates with a slight randomisation by a few pixels for antiban

Then use

client.typeString("28");

.. I have more code for making walking paths if you need, i hope i helped.

 

shop interfaces are different so you would need to return a rectangle around the objects like how i do my prayer api..

 

http://osbot.org/forum/topic/36911-prayer-api/

 

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.