November 23, 20169 yr i need help adding this to paint. i cant find it anywhere on forums tried searching only found something from 2013 that doesnt work
November 23, 20169 yr use xp to determine how many uve cut. use that in conjunction with time ran to get cut/hr
November 23, 20169 yr http://osbot.org/forum/topic/87697-explvs-dank-paint-tutorial/ use as a reference Edited November 23, 20169 yr by Muffins
November 24, 20169 yr 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.
November 24, 20169 yr 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, 20169 yr by viri
November 24, 20169 yr 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
Create an account or sign in to comment