SRL Archive - Reflection Help

Reflection walking.


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');

0wn 4 skill

2008-08-13 17:42:04

You need R_FFlag(0); between each walk. It waits for the character to reach the flag on the minimap.

Timer

2008-08-13 17:42:49

no, the walktotile procedure flags for you.

orange

2008-08-13 17:45:50

From: Timer
no, the walktotile procedure flags for you.


Doesn't seem to be working then :/

orange

2008-08-13 17:48:38

okay its working now with R_FFlag(0); :)

edit; What's the '0' part though?

0wn 4 skill

2008-08-13 20:23:26

Thats how many tiles away you are from the flag. In addition, u need to update ure reflection.
@ Timer, he is on rev 60 i think so he hasnt got to tht.