SRL Archive - SRL Snippets

SPS_MMtoMS


rj

2013-06-22 11:39:57

Well, as many of you may know there used to be R_TileToMS for reflection.This can be very useful also for looking for objects difficult areas. Now we have SPS_MMtoMS, though not as accurate still not to shabby!

It's very simple:

function SPS_MMToMS(TP: TPoint): TPoint;
Var
P:TPoint;
begin
if not LoggedIn then Exit;
Result := Point(-1, -1);
P := SPS_PosToMM(TP);
Result := MMtoMS(P);
end;

It uses SPS_PostoMM to get the coordinates on the minimap, then uses MMtoMS to use those to put them on the mainscreen!

Itankbots

2013-06-25 23:44:30

MMtoMS Hardly works tho…Hasn't it been broken since zoom update?

Olly

2013-06-26 00:15:18

Hardly <> accurate, its still handy to use but no where near as accurate (to tile) as it was before :p