combat_acc Posted November 23, 2016 Share Posted November 23, 2016 i need help adding this to paint. i cant find it anywhere on forums tried searching only found something from 2013 that doesnt work Quote Link to comment Share on other sites More sharing options...
Team Cape Posted November 23, 2016 Share Posted November 23, 2016 use xp to determine how many uve cut. use that in conjunction with time ran to get cut/hr 1 Quote Link to comment Share on other sites More sharing options...
Muffins Posted November 23, 2016 Share Posted November 23, 2016 (edited) http://osbot.org/forum/topic/87697-explvs-dank-paint-tutorial/ use as a reference Edited November 23, 2016 by Muffins Quote Link to comment Share on other sites More sharing options...
PlagueDoctor Posted November 24, 2016 Share Posted November 24, 2016 One way to do it is to create a variable like int log = 36 // or whatever the xp per log is and times it by how many logs you've cut. Another way would be to create a variable that contains your woodcutting xp when the script started, and another variable that contains your current woodcutting xp. Subtract your starting woodcutting xp from your current xp and divide it by the exp you get from a single log. Quote Link to comment Share on other sites More sharing options...
Hel Posted November 24, 2016 Share Posted November 24, 2016 (edited) Could do onMessage "you get some logs" (or whatever the actual message is)cut++get the runtime,if it's below 60 minutes, divide 60 by how many minutes you've ran, * cut -- this will give you logs / hrif it's above 60, divide time ran in minutes by 60, / cut -- this will give logs / hr**You could use seconds but for simplicity I used minutes** Edited November 24, 2016 by viri Quote Link to comment Share on other sites More sharing options...
Abuse Posted November 24, 2016 Share Posted November 24, 2016 Logical walkthrough: Save time started startedAt = System.currentTimeMillis() Get Running time runTime = System.currentTimeMillis() - startedAt Convert runtime milliseconds to hours hoursRan = runTime / 3600000 Calculate per hour perHour = itemsMade / hoursRan 1 Quote Link to comment Share on other sites More sharing options...