Skip 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.

InventoryListener for looting Items?

Featured Replies

EDIT:  I've made my own that works.

Edited by Gimp

private int lootCount;
//bla
if(condition 1){
lootCount++;  //the basics but work with
}
or   lootCount += getInventory.getamount() ///blagh

g2d.drawstring.........("Loot gained: "+lootCount+,9,99);

So now we have the price of our item but we dont know how many items we have fished, cut, cooked, made. To work this out you would have the following code either in your onMessage() method where by every time the client detects "You cut a log" you add one to the variable ItemsMade or you would add one to the same variable each time you were inside for example the crafting method of your runecrafting script. Either way the code for that is as follows:

itemsMade += 1;

Source: 

http://osbot.org/forum/topic/59590-the-full-paint-tutorial-all-aspects-covered-pug-tutorials/

Edited by TheObserver

  • Author
private int lootCount;
//bla
if(condition 1){
lootCount++;  //the basics but work with
}
or   lootCount += getInventory.getamount() ///blagh

g2d.drawstring.........("Loot gained: "+lootCount+,9,99);

So now we have the price of our item but we dont know how many items we have fished, cut, cooked, made. To work this out you would have the following code either in your onMessage() method where by every time the client detects "You cut a log" you add one to the variable ItemsMade or you would add one to the same variable each time you were inside for example the crafting method of your runecrafting script. Either way the code for that is as follows:

itemsMade += 1;

Source: 

http://osbot.org/forum/topic/59590-the-full-paint-tutorial-all-aspects-covered-pug-tutorials/

 

You don't get a message when you pick up an item though

You don't get a message when you pick up an item though

just for example for the paint

  • Author

just for example for the paint

 

I need it to add a number whenever i pick up something from the loot id list. Like with the dragon scripts, it has Bones Collected

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.