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.

Paying for help writing a simple script.

Featured Replies

Hi guys, I want to learn to write my own scripts however I am struggling understanding the API and how to implement certain functions.

I've decided I can't do it by myself and would like to know if anyone would be willing to walk me through writing my own script. It's a very simple idea and believe it's a great place to start.

If you are interested and can help me please pm me. I don't have a lot of knowledge so please bear that in mind. Thank you.

  • Author

 

Yes I know basics but knowing the basics and trying to figure out the API at the same time is way to much. Ive looked at codes from public scripts and I understand the java parts but I do not get the implementation of the API.

Yes I know basics but knowing the basics and trying to figure out the API at the same time is way to much. Ive looked at codes from public scripts and I understand the java parts but I do not get the implementation of the API.

 

 hmm..got any snippets you can show me of what you cannot understand?

 

you can post the code like this:

tyyfxzl.gif

  • Author

Ok so with this script I can see what they are doing, I understand how this is supposed to work. What I do not understand is how do you know what to type when wanting to interact with the client.

public boolean interactItems(String item1, String item2) throws InterruptedException {
        if (!this.bank.isOpen() && !this.players.myPlayer().isAnimating() && this.inventory.getItem(new String[]{item1}).interact(new String[0])) {
            return this.inventory.getItem(new String[]{item2}).interact(new String[0]);
        }
        return false;
case 2: {
                if (this.amIAnimating() && this.players.myPlayer().isMoving()) break;
                this.bank.open();
                if (this.sweetcorn && !this.inventory.contains(new int[]{this.rawSweetcorn})) {
                    this.state = "banking";
                    if (!this.inventory.isEmpty()) {
                        this.bank.depositAll();

What im really trying to understand is where do you learn what to interact with. This script was the tuna potatoes script. The code snippets such as this.amIAnimating

or state banking. What is animating do animations have different codes or are they all the same?

 

Im sure its second nature to you but when starting this is really my only issue.

Create an account or sign in to comment

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.