SRL Archive - OSR Help

Think CountDots, GetMiniMapDots are broken


Element17

2013-02-18 20:43:41

I believe these functions are broken, I have been playing with them and tried every type of dot but always returns 0 value even though there are dots present. Don't know if it its just me or what.

Sjoe

2013-02-18 21:21:40

From: Element17
I believe these functions are broken, I have been playing with them and tried every type of dot but always returns 0 value even though there are dots present. Don't know if it its just me or what.


Post the coding on how u use it? :p
It works for me.

Runehack123

2013-02-18 21:23:06

Sorry, but I can confirm that they're not broken since I'm using them a lot in my script.
Post me your code, I believe you're doing something wrong here. :p

Justin

2013-02-18 21:23:51

Not broken for me, using Ashamans Hunter script

Element17

2013-02-18 22:24:59

:duh: I forgot to call it in the function I was using…..yeah epic fail on my part….

Runehack123

2013-02-18 22:29:13

From: Element17
:duh: I forgot to call it in the function I was using…..yeah epic fail on my part….

Just adding to that you can also always do something on the lines of
Writeln(IntToStr(…..
to debug the amount of dots found on the minimap.
You'll find that it's very accurate.
Best of luck with your scripting! :)

Element17

2013-02-18 23:20:22

procedure FindMonster;
var
NPCTPA:TPointArray;
begin
NPCTPA := GetMiniMapDots('npc');
if not(length(NPCTPA) = 0) then
begin
SortTPAFrom(NPCTPA, Point(MMCX, (MMCY - 20)));//wanted off center ;)
Mouse(NPCTPA[0].x, NPCTPA[0].y, 2, 2, true);
end
else
writeln('No NPC dot found.');
end;

This returns 0 npc found when there are npcs in the area.

**Not my procedure but I am using it to test and its not working either