Jump to content

logs cut/per hour


combat_acc
 Share

Recommended Posts

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. 

Link to comment
Share on other sites

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 / hr
if 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 by viri
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

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