Claymore
2008-08-27 11:57:19
I am making a 1/4th SMART and 3/4 SRL / Normal Script. This script is compatible to people who do not want to use SMART (Meaning no Reflections :() and people who want to use SMART. IT does work but, somehow my WalkToTile isn't working 0.o I set everything correctly.
So what did i do wrong :(
Part of SetUpScript;
if (Smart) then
begin
SmartSetup(World, True, True, False);
Wait(1000);
SetTargetDC(SmartGetDC);
end
function LoadPath(WhatPath : String): TPoint;
begin
case (WhatPath) of
'DTrees': Point(3088, 3234);
'DBank': Point(3092, 3240);
end;
WriteLn(WhatPath +' has been loaded.');
Exit;
end;
Part of a function
if (Smart) then
begin
DTrees := LoadPath('DTrees');
if WalkToTile(DTrees, 3, 3) then
begin
Result := True;
FFlag(0);
WriteLn('Found the Tile near the Willows!');
Exit;
end;
WriteLn('The specified Tiles is currently outdated.');
end;
begin
SetUpSRL;
SetupReflection;
SetUpScript;
OtherStuff;
end.
So what did i do wrong :(