Originally Posted by
Flight
Okayyy, let's do this..
The result created by GetArea was never created
Simba Code:
function SPS_GetArea(Area: string; surface: integer): TMufasaBitmap;
var
x, y: integer;
S: string;
begin
SPS_GetAreaCoords(Area, x, y);
case surface of
RUNESCAPE_SURFACE: s := RUNESCAPE_SURFACE_FOLDER;
RUNESCAPE_OTHER: s := RUNESCAPE_OTHER_FOLDER;
end;
result.init(client.getMBitmaps());
result.loadFromFile(SPS_IMG_PATH + s + Area + SPS_IMG_FMT);
end;
And well, it works for me.
also, GatherMinimap and FilterMinimap can both be put into one function and be made perfect by using the minimap mask.
Simba Code:
function SPS_GatherMinimap: TMufasaBitmap;
var
tpa: TPointArray;
begin
result.init(client.getMBitmaps());
result.copyClientToBitmap(client.getIOManager, true, MMBox.x1, mmBox.y1, mmBox.x2, mmBox.y2);
findColorsBitmap(bmpMinimapMask, tpa, clBlack);
result.drawTPA(tpa, clBlack);
end;