orange
2008-08-13 17:38:41
Hello all, i'm having trouble walking from one place to another using reflection, it just seems to try to walk to all of the places at the same time, without waiting until the character gets to the position before clicking the next place to walk. I've tried using FFlag, but i get the same issue. Halp?
Function WalkClayBank: Boolean;
begin
if WalkToTile(3183, 3378, 2, 1) then
if WalkToTile(3178, 3393, 2, 1) then
if WalkToTile(3170, 3407, 2, 1) then
if WalkToTile(3172, 3424, 2, 1) then
if WalkToTile(3182, 3436, 0, 0) then
Result:= True;
WriteLn('Successfully walked from the clay to the bank');
end;
Function DepositClay: Boolean;
var
x, y : Integer ;
begin
FindColor(x, y, 2183263, xs, ys, xe, ye) // needs updating
GetMousePos(x, y);
Mouse(x, y, 6, 6, false);
ChooseOption('quick');
wait(100 +random(500));
Mouse(608, 219, +21, -18, false);
wait(75 +random(300));
ChooseOption('All');
end;
Function WalkBankClay: Boolean;
begin
if WalkToTile(3171, 3423, 2, 1) then
if WalkToTile(3170, 3407, 2, 1) then
if WalkToTile(3177, 3393, 2, 1) then
if WalkToTile(3179, 3380, 2, 1) then
if WalkToTile(3183, 3378, 0, 0) then
Result:= True;
WriteLn('Successfully walked from the bank to the clay');