zeeky111
02-12-2011, 03:43 AM
Here's my procedure:
procedure WalkToRange;
var
RangeTile : TTile;
Me : TMe;
begin
Me := GetMe;
RangeTile := Tile(Rx, Ry);
if (Me.Tile = RangeTile) then Exit;
WalkToTile(RangeTile, 0, 1);
Writeln('Walked to range.');
end;
It (in context with the rest of the script) logs in, and sets the compass and angle as per requested..
But then it just writes the debug 'Walked to range.' and exits.
(Rx and Ry are global constants, set to the respective x and y of the tile next to the range in Al Kharid.)
What's with this stuff? (This is my first time using this particular part of Reflection.)
Thanks.
procedure WalkToRange;
var
RangeTile : TTile;
Me : TMe;
begin
Me := GetMe;
RangeTile := Tile(Rx, Ry);
if (Me.Tile = RangeTile) then Exit;
WalkToTile(RangeTile, 0, 1);
Writeln('Walked to range.');
end;
It (in context with the rest of the script) logs in, and sets the compass and angle as per requested..
But then it just writes the debug 'Walked to range.' and exits.
(Rx and Ry are global constants, set to the respective x and y of the tile next to the range in Al Kharid.)
What's with this stuff? (This is my first time using this particular part of Reflection.)
Thanks.