mariofan12
2008-10-06 23:48:39
Like the title says, How to find an objects UID and Type.
Alright, you MUST have the tiles of the object, you must be logged in when getting the UID, and you must be able to see the tile.
Run this script in scar with SMART disabled
Hit F2 when you want to find the object.
I hope this helps for object finding with reflection! :p
Alright, you MUST have the tiles of the object, you must be logged in when getting the UID, and you must be able to see the tile.
Run this script in scar with SMART disabled
Hit F2 when you want to find the object.
program UIDandTYPE;
{.include srl/srl/misc/smart.scar}
{.include srl/srl.scar}
{.include srl/srl/reflection/reflection.scar}
Const
SmartWorld = 127;
XTile = 0000; //The X tile of the object
YTile = 0000; //The Y tile of the object
Var
MySpot: UID;
begin
SetupSRL;
SmartSetupEx(SmartWorld, True, True, false);
Wait(1000);
SetTargetDC(SmartGetDC);
While not (IsFKeyDown(2)) do wait(100);
repeat
if IsFKeyDown(2) then
begin
MySpot := GetObjectAt(XTile, YTile)
WriteLn('The object''s UID is ' + inttostr(MySpot.UID.High) + inttostr(MySpot.UID.Low));
WriteLn('The Object''s type is ' + inttostr(MySpot.objType));
end;
wait(500);
Until(False);
end.I hope this helps for object finding with reflection! :p