isAnimating not working ?
Not sure if i'm doing something wrong, anyways, this is the code;
Anyways the issue is that it'll keep clicking on the tree .. i have no ideas what to do or what i am doing wrong ..
.. yeah .. i am new to Simba, started to attempt scripting like 2 days ago, any help is appreciated.
Code:
const
CHOP_TREE = 0;
procedure chopTree();
var
Tree: TReflectObject;
begin
while not myPlayer.IsAnimating do
if Tree.Find(objGame, 'Tree', 16) then
begin
if Tree.IsOnMS then
begin
Reflect.Mouse.Move(Tree.GetMSPoint, 10, 10);
if Reflect.Text.IsUpText('Chop down Tree') then
Reflect.Mouse.Click(MOUSE_LEFT);
end
else
begin
rotateCameraToTile(Tree.GetTile);
end;
end;
end;
function GetState(): Integer;
begin
if ( Reflect.Inv.IsFull ) then
// DO DROPPING HERE
else if not myPlayer.IsAnimating then
Exit(CHOP_TREE)
end;
procedure loopLogic();
begin
case (GetState()) of
CHOP_TREE:
chopTree();
end;
end;
begin
repeat
loopLogic();
until (false)
end.