SRL Archive - Reflection Help

WalkToTileEx


weequ

2008-08-15 10:07:42

program New;
{.Include SRL\SRL\Misc\Smart.Scar}
{.include SRL/SRL.scar}
{.Include SRL\SRL\Reflection\Reflection.Scar}
{.Include SRL\SRL\Reflection\Depreciated.Scar}
begin
setupsrl;
SmartSetup('world138', True, True, False);
SetTargetDC(SMARTGetDC);
WalkToTileEx(3181, 2983,1,3, 8);
WalkToTileEx(3179, 2995,2,2, 8);
WalkToTileEx(3176, 3006,4,3, 8);
WalkToTileEx(3175, 3018,4,4, 8);
WalkToTileEx(3177, 3030,6,2, 8);
WalkToTileEx(3178, 3037,4,3, 0);
WalkToTileEx(3178, 3037,3,2, 0);
WalkToTileEx(3301, 3117, 6, 2, 0);
WalkToTileEx(3306, 3119, 2, 2, 0);
end.



Failed when compiling
Line 53: [Error] (16611:31): Unknown identifier 'TILEX' in script C:\Program Files\SCAR 3.15\includes\SRL\SRL\Reflection\Depreciated.Scar

Whats wrong?

Infantry001

2008-08-15 10:11:56

WalkToTile now uses TPoints, so WalkToTileEx won't work unless modified.

weequ

2008-08-15 10:18:18

WalkToTile(Tile: TPoint; Randomness, FlagD: Integer)
Can it be like WalkToTile(3178, 3037,4,3, 0);
And what the FlagD does?

ShowerThoughts

2008-08-15 10:22:44

X:=3123
T:=1323

LOl: TPoint;

LOL.x := 3123
Lol.Y :=1323

(LOL,etc

TViYH

2008-08-15 17:08:21

From: antti mies
WalkToTile(Tile: TPoint; Randomness, FlagD: Integer)
Can it be like WalkToTile(3178, 3037,4,3, 0);
And what the FlagD does?


here's a small example:


procedure WalkIT;
var Point: TPoint;
begin
Point := Point(3178, 3037);
WalkToTile(Point, 3, 3);
end;

And, FlagD means Flag Distance. In other words, when can the script continue [using distance from the flag].

Widget

2008-08-15 22:06:47

For that matter, WalkToTile(Point(3178, 3037), 3, 3); will work just fine