Bionicle
2010-01-26 15:46:40
Well I'm working on a script, it has been a while since I've last scripted, and I just wanted to run something by you (you being anyone). I am trying to figure out a way to detect if the character is animating (chopping the tree). This is what I am using atm, it works pretty well, however sometimes it says that the character is not animating, and searches for a tree to chop again. It also has a failsafe that if it still is moving after a minute, it will break from the loop (i dont know how that could be a problem, but ya never know ;))
Repeat
//Stuff to find tree
//Stuff to click tree
Repeat
//Stuff to do while chopping
MarkTime(TreeTime);
//More stuff to do while chopping
Until((Not(Animating(IntToBox(MSCX-30, MSCY-100, MSCX+30, MSCY+100), 500, 440))) or (TimeFromMark(TreeTime) > 60000));
Until(InvFull Or Not LoggedIn);Any suggestions for better tactics? Or do you think it is fine. The way my script searches for a tree is the one closest to your character, so if it does, it clicks the tree I'm chopping (usually), which some people do whilst woodcutting when they get bored/impatient, ergo it's not that big of a deal. But still, opinions?