bugger0001
2010-06-16 14:37:23
I was writing a woodcutting function where I needed to check if there are other players near me. I thought that I could take advantage of the MiniMap functions we have in MapWalk.scar and then noticed, that we have a
But from where I was standing I didn't want to scan the whole MiniMap. Therefore I wrote this little thing:
Pretty much does the same thing as CountDots, but lets you decide the area from where you want to count the Dots. I think that if we have CountDots then why not have a CountDotsIn aswell :p
function CountDots(WhatDot: String): integer;But from where I was standing I didn't want to scan the whole MiniMap. Therefore I wrote this little thing:
function CountDotsIn(WhatDot: String; xs, ys, xe, ye: Integer): integer;
begin
Result := Length(GetMinimapDotsIn(WhatDot, xs, ys, xe, ye));
end;Pretty much does the same thing as CountDots, but lets you decide the area from where you want to count the Dots. I think that if we have CountDots then why not have a CountDotsIn aswell :p