SRL Archive - Help

Smart patining


NexPB

2012-01-14 15:46:41

procedure PaintPoints(tpa: TPointArray);
var
i, h: Integer;
pt: TPoint;

begin
if (Length(tpa) = 0) then Exit;
if (Length(tpa) > 0) then
SMART_SetupDebug;
h := High(tpa);
For i := 0 to h do
begin
pt := tpa[i];
SMART_DrawCircle(false, pt, 20, true, 65386);
end;
end;

Somebody knows what im doing wrong and why it won't paint my points?

mormonman

2012-01-14 16:04:12

First off, just call SMART_SetupDebug once at the beginning of your script.

What points are you using? It worked for me.

NexPB

2012-01-14 16:26:01

From: mormonman
First off, just call SMART_SetupDebug once at the beginning of your script.

What points are you using? It worked for me.

Point I get from SPS_GetMyPos; wich I added to an array.

mormonman

2012-01-14 17:20:28

If you printed out that point, you would see that it is something like Point(3000, 3500). That is not a point on the mainscreen or minimap, it is a point on the runescape map. You won't be able to draw it until you convert it to a minimap point. To do that, you have to use SPS_PosToMM on each point.

NexPB

2012-01-14 17:36:01

From: mormonman
If you printed out that point, you would see that it is something like Point(3000, 3500). That is not a point on the mainscreen or minimap, it is a point on the runescape map. You won't be able to draw it until you convert it to a minimap point. To do that, you have to use SPS_PosToMM on each point.

Oh thanks learnt something new now ;p

EDIT: Didn't seem to paint on MM it paint in the left cornor :s

mormonman

2012-01-14 19:37:12

From: NexPB
Oh thanks learnt something new now ;p

EDIT: Didn't seem to paint on MM it paint in the left cornor :s


If it paints it in the left corner, that means it doesn't find your position or the point isn't on the minimap.

NexPB

2012-01-15 05:59:54

From: mormonman
If it paints it in the left corner, that means it doesn't find your position or the point isn't on the minimap.

That is weird cause im 100% sure it was on the mm :o

mormonman

2012-01-15 06:02:08

Make sure you have the right SPS areas…and sometimes SPS just doesn't work for a path.

NexPB

2012-01-15 06:48:43

From: mormonman
Make sure you have the right SPS areas…and sometimes SPS just doesn't work for a path.

100% sure the right area ;p otherwise I wouldn't be able to get the point