Twisted
2008-08-09 04:38:16
This is a tile saver, used mainly just for Path TPA's, but it still gets the coords. You can have SMART disabled so you can keep on clicking. Just run this, press F12 to get a Point() and F11 for the final Point(). Comes with standards and all :P
Note, that you have to start it, let SMART setup, stop, login, then restart it. :)
Change Log:
Changed so that it is procedure not function, and a little semicolon problem
Changed it so that it's compatible w/ REV 66.
Changed the F11 for TileWalk so it actually says another before it terminates.
Made const for Path or Tile
Release
{Used to make Path's or just WalkToTile stuff!
fill in const
for Paths put Path
for Tiles put Tile }
program TileSaver;
{.include srl/srl/misc/smart.scar}
{.include srl/srl.scar}
{.include srl/srl/reflection/reflection.scar}
const
PathOrTile = 'Tile'; //Just tile coords, or make a path?
Procedure SetupSMART;
Begin
SmartSetupEx(136, False, True, False);
SetTargetDC(SmartGetDC);
If Not (LoggedIn) Then
While Not (SmartGetColor(360, 172) = 13158) Do
Wait(100);
End;
Procedure WriteTheStuff;
var
P: TPoint;
begin
If (PathOrTile = 'Path') then
begin
Writeln('Procedure LoadStuff;');
Writeln('begin');
Writeln(' SetArrayLength(Path, 0);');
Writeln(' Path:= [');
repeat
If IsFKeyDown(12) then
begin
P:= GetMyPos;
Writeln(' Point(' + IntToStr(P.X) + ', ' + IntToStr(P.Y) + '),');
Wait(100 +random(500));
end;
If IsFKeyDown(11) then
begin
P:= GetMyPos;
Writeln(' Point(' + IntToStr(P.X) + ', ' + IntToStr(P.Y) + ')');
Writeln(' ];');
Writeln('end;');
Writeln(' ');
Writeln('Copy and paste this into your script now.');
TerminateScript;
end;
until False;
end;
If (PathOrTile = 'Tile') then
begin
repeat
If IsFKeyDown(12) then
begin
P:= GetMyPos;
Writeln('WalkToTile(' + IntToStr(P.X) + ', '+ IntToStr(P.Y) + ');');
Wait(100 +random(500));
end;
If IsFKeyDown(11) then
begin
P:= GetMyPos;
Writeln('WalkToTile(' + IntToStr(P.X) + ', '+ IntToStr(P.Y) + ');');
Writeln('Don''t forget to put failsafes in your script!');
Wait(100 +random(500));
TerminateScript;
end;
until false;
end;
end;
begin
setupsmart;
setupsrl;
setupreflection;
Writeln('Starting...');
Wait(1000);
ClearDebug;
WriteTheStuff;
end.Note, that you have to start it, let SMART setup, stop, login, then restart it. :)
Change Log:
Changed so that it is procedure not function, and a little semicolon problem
Changed it so that it's compatible w/ REV 66.
Changed the F11 for TileWalk so it actually says another before it terminates.
Made const for Path or Tile
Release