SRL Archive - SRL Archives

Some Reflection thing.


BobboHobbo

2008-09-05 09:26:24

Simple, just finds if the tile is on your MM, can be used for finding where you are etc.

function CanSeeTile(Tile: Tpoint): boolean;
begin
Result := rs_OnMiniMap(Tile.X, Tile.Y);
end;

Not sure if still works, my scar is STUFFED.

MasterKill

2008-09-05 09:32:19

isnt there a function called "IsTileOnMM" in reflection?

BobboHobbo

2008-09-05 09:35:25

Have no idea. Havent been using scar in ages, just picked this up from my script.

Method

2008-09-05 09:43:22

function TileOnMM(Tile: TPoint): Boolean;
var
PointEx: TPoint;
begin
PointEx := TileToMM(Tile);
Result := rs_OnMinimap(PointEx.x, PointEx.y);
end

From the reflection include. I don't think yours would work either way, because you have to convert from tiles to minimap coordinates to figure out if the tile's on the minimap or not.

Gu3st...

2008-09-05 10:01:32

From: Method
I don't think yours would work either way, because you have to convert from tiles to minimap coordinates to figure out if the tile's on the minimap or not.

Yea, thats correct.

You would have to convery to tiles to get it working. Your script just checks if the cordinate you are entering is on the mm.