Results 1 to 6 of 6

Thread: HELP(again ;P)

  1. #1
    Join Date
    Nov 2011
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default HELP(again ;P)

    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!

  2. #2
    Join Date
    Jan 2011
    Posts
    350
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    try the minimap include. its something like count mmdots or something.

  3. #3
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    umm create a TPA of the white color on the MM, then according to the size of the tpa, it will determine how many ppl are around u?

  4. #4
    Join Date
    Feb 2011
    Location
    Earth
    Posts
    1,784
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I believe there is a function for this in minimap...give me a sec to look for it

    E: This should work.
    Simba Code:
    (*
    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;

    Currently: Working on Defending&Attacking in my Castle-Wars Script
    Project Rebuild: 90M/170M

  5. #5
    Join Date
    Nov 2011
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by PatDuffy View Post
    I believe there is a function for this in minimap...give me a sec to look for it

    E: This should work.
    Simba Code:
    (*
    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;
    Thankyou very much(:

  6. #6
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    If you're wondering what to do,
    if CountDots('players') > 3 then
    hop;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •