drawboy11
2012-02-12 17:18:54
How do I count other players on the screen(other people) I want my mining script to switch worlds if more than 3 are mining at my spot aha, thanks in advance!
2012-02-12 17:18:54
2012-02-12 17:20:30
2012-02-12 17:20:50
2012-02-12 17:21:58
(*
CountDots
~~~~~~~~~
.. code-block:: pascal
function CountDots(WhatDot: String): integer;
Counts the occurance of WhatDot on the MiniMap. See `GetMiniMapDots` in
for more information.
.. note::
by Nava2
Example:
.. code-block:: pascal
WriteLn(ToStr(CountDots('yellow')) + ' NPCs present on Minimap.');
*)
function CountDots(WhatDot: String): integer;
begin
Result := Length(GetMinimapDots(WhatDot));
end;
2012-02-12 19:02:13
From: PatDuffy
I believe there is a function for this in minimap…give me a sec to look for it
E: This should work.(*
CountDots
~~~~~~~~~
.. code-block:: pascal
function CountDots(WhatDot: String): integer;
Counts the occurance of WhatDot on the MiniMap. See `GetMiniMapDots` in
for more information.
.. note::
by Nava2
Example:
.. code-block:: pascal
WriteLn(ToStr(CountDots('yellow')) + ' NPCs present on Minimap.');
*)
function CountDots(WhatDot: String): integer;
begin
Result := Length(GetMinimapDots(WhatDot));
end;
2012-02-12 19:09:53