Log in

View Full Version : choping timer



wantonman
01-04-2012, 02:23 AM
would some one throw me together a quick code?

something that starts a timer and if you get nothing in your inventory for 10 seconds then yadayadayada...



MarkTime(Time);
while (Time > 7000) do
invcount(count);
if no invencount(count)
then
chopwood;



something like that

Jhangir
01-04-2012, 04:36 AM
Scripting tutotials/tutotials for beginners

Search for "yohojo video tutorial 2"

He explsins this exact thing. I'm on my phone so I can't type the code.

wantonman
01-04-2012, 05:59 AM
hmmm, i watched it.... a couple of times but sometimes its hard to pause the video and copy his code..

well if you say so ill look at it 1 more time as im on like all the time and i miss bits of info here and there.:spongebob::spot:

YoHoJo
01-04-2012, 06:02 AM
Inside of chopwood, after you click mark the time.

Assume this is the click of tree

Mouse(x, y, 3, 3, True);
MarkTime(WeChopped);
While TimeFromMark(WeChopped)< 10000 Do
Begin
FindNormalRandoms;
AntiBan;
End;

wantonman
01-04-2012, 06:27 AM
Inside of chopwood, after you click mark the time.

Assume this is the click of tree

Simba Code:



Mouse(x, y, 3, 3, True);
MarkTime(WeChopped);
While TimeFromMark(WeChopped)< 10000 Do
Begin
FindNormalRandoms;
AntiBan;

//invcount(+1);???
End;





"if 10 seconds pass and invcount(+1) is false"