Results 1 to 3 of 3

Thread: Counting items?

  1. #1
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default Counting items?

    That aren't in a stack I know there GetItem does this work with single items?
    Mat



    ^^

  2. #2
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    You mean CountItemsIn?

    Simba Code:
    (*
    CountItemsIn
    ~~~~~~~~~~~~

    .. code-block:: pascal

        function CountItemsIn(Area, ItemType: string; Item: Integer; Tol: TIntegerArray): Integer;

    Counts the number of items found within the Area (does not count stacks).
    Parameters are exactly the same as ItemCoordinates.

    .. note::

        Author: masquerader
        Last Modified: Unknown by ZephyrsFury

    Example:

    .. code-block:: pascal

        var
          itemsFound: integer;
        begin
          itemsFound := CountItemsIn('inv', 'dtm', dtm_Ore, []);
          writeln('Ore found: ' + toStr(itemsFound));
        end;
    *)

  3. #3
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    Edit:Not a clue how it works.
    E::Got it! ty



    ^^

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
  •