View Full Version : Smart patining
NexPB
01-14-2012, 08:46 PM
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?
First off, just call SMART_SetupDebug once at the beginning of your script.
What points are you using? It worked for me.
NexPB
01-14-2012, 09:26 PM
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.
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
01-14-2012, 10:36 PM
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
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
01-15-2012, 10:59 AM
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
Make sure you have the right SPS areas...and sometimes SPS just doesn't work for a path.
NexPB
01-15-2012, 11:48 AM
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
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.