From: kongking
Imo, reflection is good for that kind of stuff, and here is how to check it:
var
Me: Tme;
begin
Me := GetMe;
if Me.Animation = 867 then
writeln('Character is still woodcutting');
end.
Unfortunately this is inefficient and only works for chopping with one type of axe.
The more efficient (efficient looking at least) way to get animations is to use the GetAnimation function from reflection. It returns an integer.
The lazy way to check if you are chopping wood (or fighting, or fishing, or smithing, etc) is to do this:
if GetAnimation > 0 then
Writeln('We are not standing still');
When doing nothing (I'm not sure about animation when walking..) your animation is -1 so it's a simple check to make sure that you're still chopping wood.