Jump to content

total made counter


Recommended Posts

Posted

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

Posted (edited)
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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...