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.

Is this script possible to create?

Featured Replies

Is there a way to create a script that buys/sells in ge? yes.

however, my  actual question is, if i use a live database to flip/merch in ge, is there a way to utilize the site i use for a bot to refresh the database go by margins and create buy/sell orders on ge?

 

if that didn't make much sense then to break it down, can a bot use database sites such as ge-tracker to update items to purchase/sell and create a bot for flipping new items throughout the day due to items changing value everyday

Edited by boozer

What you've described is certainly possible, but wouldn't be allowed on the SDN (https://osbot.org/forum/announcement/62-script-rules-read-before-applying/)

That being said, there's nothing stopping you making it yourself / purchasing it as a private script. If you do go for a private script, expect it to cost a lot!

OSBuddy provide a nice and pretty accurate item value db which many of us scripters use for profit tracking and the likes. This reddit thread might help: https://www.reddit.com/r/2007scape/comments/543n8b/rsbuddy_exachange_api_documentation/

 

GL!

Apa

It's certainly possible... I can't seem to find an API that ge-trackers gives access to but there are many out there. If you know basic Java you can easily form GET requests to the APIs end-point and parse that data to get item prices + add your margins.

For a headstart - here's a class I wrote that uses a basic reader to return the live item price and can store other variables about the item

Spoiler

 


import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;

class ItemResource {

    private String name;
    private String url;

    private int id;
    private int price;
    private int amount;

    public ItemResource(String name, int id) {

        this.url = "http://services.runescape.com/m=itemdb_oldschool/api/catalogue/detail.json?item=" + id;
        this.name = name;
        this.id = id;
        this.price = fetchPrice();

    }

    // Getters

    public int getPrice() {
        return price;
    }

    public int getAmount() {
        return amount;
    }

    public String getName() {
        return name;
    }

    // Setters

    public void setAmount(int i) {
        amount = amount + i;
    }

    // Reset Amount

    public void resetAmount() {
        amount = 0;
    }

    private int fetchPrice() {
        try (final BufferedReader reader = new BufferedReader(new InputStreamReader(new URL(url).openStream()))) {
            final String raw = reader.readLine().replace(",", "").replace("\"", "").split("price:")[1].split("}")[0];

            reader.close();
            return raw.endsWith("m") || raw.endsWith("k") ? (int) (Double.parseDouble(raw.substring(0, raw.length() - 1))
                    * (raw.endsWith("m") ? 1_000_000 : 1_000)) : Integer.parseInt(raw);
        } catch (final Exception e) {
            e.printStackTrace();
        }
        return -1;
    }

}

 

Edited by jca

  • Author
1 hour ago, Apaec said:

What you've described is certainly possible, but wouldn't be allowed on the SDN (https://osbot.org/forum/announcement/62-script-rules-read-before-applying/)

That being said, there's nothing stopping you making it yourself / purchasing it as a private script. If you do go for a private script, expect it to cost a lot!

OSBuddy provide a nice and pretty accurate item value db which many of us scripters use for profit tracking and the likes. This reddit thread might help: https://www.reddit.com/r/2007scape/comments/543n8b/rsbuddy_exachange_api_documentation/

 

GL!

Apa

 

1 hour ago, jca said:

It's certainly possible... I can't seem to find an API that ge-trackers gives access to but there are many out there. If you know basic Java you can easily form GET requests to the APIs end-point and parse that data to get item prices + add your margins.

For a headstart - here's a class I wrote that uses a basic reader to return the live item price and can store other variables about the item

  Reveal hidden contents

 



import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;

class ItemResource {

    private String name;
    private String url;

    private int id;
    private int price;
    private int amount;

    public ItemResource(String name, int id) {

        this.url = "http://services.runescape.com/m=itemdb_oldschool/api/catalogue/detail.json?item=" + id;
        this.name = name;
        this.id = id;
        this.price = fetchPrice();

    }

    // Getters

    public int getPrice() {
        return price;
    }

    public int getAmount() {
        return amount;
    }

    public String getName() {
        return name;
    }

    // Setters

    public void setAmount(int i) {
        amount = amount + i;
    }

    // Reset Amount

    public void resetAmount() {
        amount = 0;
    }

    private int fetchPrice() {
        try (final BufferedReader reader = new BufferedReader(new InputStreamReader(new URL(url).openStream()))) {
            final String raw = reader.readLine().replace(",", "").replace("\"", "").split("price:")[1].split("}")[0];

            reader.close();
            return raw.endsWith("m") || raw.endsWith("k") ? (int) (Double.parseDouble(raw.substring(0, raw.length() - 1))
                    * (raw.endsWith("m") ? 1_000_000 : 1_000)) : Integer.parseInt(raw);
        } catch (final Exception e) {
            e.printStackTrace();
        }
        return -1;
    }

}

 

thank yall for the advice ima be looking into scripting over next few weeks since i'll be babysitting bots and bored af lol

5 minutes ago, LOL_152 said:

isn't it faster just to script other money making methods?

Longer to write script = higher barrier to entry = less people doing it = more profitable (theoretically). 

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.