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.

Question for the pros :)

Featured Replies

So i'm trying to make script, I've manage to get my Player to trade an NPC

I want to learn how to buy certain items from that NPC. 

Any1?

client.getInterface(id)

client.getInterface(id).getChild(childId)

client.getInterface(id).getChild(childId).interact("Buy-10");

 

 

Edited by Celestial

  • Author
package Arrows;

 

import org.osbot.script.Script;

import org.osbot.script.ScriptManifest;

import org.osbot.script.rs2.model.Entity;

import org.osbot.script.rs2.model.Player;

import org.osbot.script.rs2.utility.Area;

@ScriptManifest(author = "Zunder", info = "Varrock Arrow shop buying", name = "ABuy", version = 1)

public class ArrowBuyer extends Script {

 

//final area 

final Area RANGE_AREA = new Area();

final String LOWE_SHOP = "Lowe";

 

 

public void OnStart(){

}

public void OnExit(){

}

 

public int onLoop() throws InterruptedException{

Player player = client.getMyPlayer();

 

Entity lowe = closestNPCForName(LOWE_SHOP);

 

if(lowe != null){

if(lowe.isVisible()){

lowe.interact("Trade");

sleep(random(600,800));

}else{

client.moveCameraToEntity(lowe);

}

}

 

 

 

 

 

return 0;

}

 

}

 

  • Author

Im really a noob it took me like 2 hour to figure out how to trade him. What interface ids do i use? And what are childId?

Edited by wanabot

Im really a noob it took me like 2 hour to figure out how to trade him. What interface ids do i use? And what are childId?

Use the interface debugger in the client.

  • Author

Okay so which i did, so i'm in trade with lowe.

1zcfo7o.png

 

what am id am i looking for

Edited by wanabot

Hover your mouse over the item you want to buy. It should create a rectangle around it and that's your interface.

 

Parent ID (id) is P and its child ID (childId) is C.

  • Author

im sorry i dont want to ask you to do everything for me, okay how would i add this to my script?

 

client.getInterface(id)

client.getInterface(id).getChild(childId)

client.getInterface(id).getChild(childId).interact("Buy-10");

  • Author

i know the basics of java i just want to learn more, and i thought i would try make a simple script. Do you have skype or anything, if you would be willing to help me i can pay you with rs 2007 gold :)

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.