SRL Archive - OSR Help

Find out how many logs?


Blakerey

2012-02-11 03:03:48

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:

[INDENT]XP Earned: 67.5 * 28 = 1890
Logs Chopped: 28
[/INDENT]

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.

RyGuy

2012-02-11 03:07:43

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.

P1nky

2012-02-11 03:12:22

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.

Blakerey

2012-02-11 10:02:54

From: RyGuy
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!

bg5

2012-02-11 12:50:52

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

function CountItems