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.

get name using id

Featured Replies

Hey guys anyone has a code snippet to receive the name of a item using the item id? (could be webbased or scriptbased But not api dependent)

Edited by TheMcPker

Probably not gonna help you out here, but if there's at least a little posibility to use names and not ids - always use names.

  • Author
6 minutes ago, nosepicker said:

Probably not gonna help you out here, but if there's at least a little posibility to use names and not ids - always use names.

It is used to display item names on a website and i get item id's from my scripts im running (which get pushed to website) so i wanna find a way to just find the item name using item id so well itemid's do not really give the user any real usefull info (it is not possible for me to get the item name out of the game)

Edited by TheMcPker

  • Author
17 minutes ago, Explv said:

ItemDefinition def = ItemDefinition.forId(id);

if (def != null) {
    String name = def.getName();
}

 

https://osbot.org/api/org/osbot/rs07/api/def/ItemDefinition.html#forId-int-

Thanks the script im making is in a diffrent botclient tho (i should of mentioned this in my first post il edit it now)

my first thought was maby use some website to lookup the name there but i suck at that kinda stuff xD

34 minutes ago, TheMcPker said:

Thanks the script im making is in a diffrent botclient tho (i should of mentioned this in my first post il edit it now)

my first thought was maby use some website to lookup the name there but i suck at that kinda stuff xD

Then why not post on their forum? :???:

Yes there are websites which you could use to lookup the name from ID for example http://www.itemdb.biz/ (may not support all items though)

Not going to spoonfeed you a snippet to do it either :)

 

Edited by Explv

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.