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.

total made counter

Featured Replies

hello guys how can i make a counter for total made X

like every 4 experience i get in crafting has to be +1 made

 

anyone know how to make this?

and can help with this?


private int counter;

if something made

counter += (int) getInventory().getAmount("name here");

Edited by Sinatra

  • Author
private int counter;

if something made
counter += (int) getInventory().getAmount("name here");

 

it really has to go on expierence

 

every 4 crafting xp gained is +1 made

since i dont loot anything i just click on it

 

so it had to be something like

total xp gained =4 4=1 or something like that

it really has to go on expierence

 

every 4 crafting xp gained is +1 made

since i dont loot anything i just click on it

 

so it had to be something like

total xp gained =4 4=1 or something like that

        gfx.drawString((getExperienceTracker().getGainedXP(Skill.RUNECRAFTING)/7)+"",150,95); // essence used

  • Author
private int counter;

if something made
counter += (int) getInventory().getAmount("name here");

 

EDIT

fixed 

I know its not clean looking but this was my fix

 

 this.totalmade = (this.skills.getExperience(Skill.CRAFTING) - this.startExperiencecrafting);
    this.madeHour = ((int)(this.totalmade * 3600000.0D / (System.currentTimeMillis() - this.startTime)));
    this.madetotal = totalmade / 4;
    this.makehour = madeHour / 4;

Edited by dutchxxje

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.