Results 1 to 5 of 5

Thread: Find out how many logs?

  1. #1
    Join Date
    Feb 2012
    Posts
    77
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default Find out how many logs?

    Hey,

    I refrained and refrained from posting in here as much as I could, i've looked around, and the answer was probably under my nose, but I couldn't see it.

    I am making a wood cutter and currently it add's all the XP + Logs Cut (for my statistics) when the logs are banked, trouble is, it's set at this:

    XP Earned: 67.5 * 28 = 1890
    Logs Chopped: 28

    The only problem is, is, there might not always be 28 logs in the inventory, there might be something else.

    So I was wondering if there was anyway to count the logs as they're chopped?

    I've seen people say, get the lastline of the chatbox, or using ObjectDTM's. But if I am honest with you, you may aswell speak foreign where there concerned at the moment. Hahaha

    Anyway,
    I appreciate any help.

    Thanks,
    Blake.
    OSRS Scripts: Draynor Willows v3 [AEROLIB] [REFLECTION]
    OSRS Utilities: Get Current Tile [Reflection]
    Scripts in progress: Auto Varrock Yews

  2. #2
    Join Date
    Feb 2011
    Location
    Wisconsin
    Posts
    398
    Mentioned
    1 Post(s)
    Quoted
    10 Post(s)

    Default

    Are you trying to get the number of logs you have cut? To get that all you would have to do is take your exp gained(using the xp counter) divided by the amount of experience you get for cutting one log.

  3. #3
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    I believe you can write up a function dealing with the log being a DTM.
    For Example: drop anything that isn't a log, and continue chopping until Full Invo.

  4. #4
    Join Date
    Feb 2012
    Posts
    77
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Quote Originally Posted by RyGuy View Post
    Are you trying to get the number of logs you have cut? To get that all you would have to do is take your exp gained(using the xp counter) divided by the amount of experience you get for cutting one log.
    Exactly that. Sorry if I didn't explain it properly.

    Ill looking into the XP Counter.

    Thanks!
    OSRS Scripts: Draynor Willows v3 [AEROLIB] [REFLECTION]
    OSRS Utilities: Get Current Tile [Reflection]
    Scripts in progress: Auto Varrock Yews

  5. #5
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

    Default

    The only problem is, is, there might not always be 28 logs in the inventory, there might be something else.
    function CountItems

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •