Results 1 to 5 of 5

Thread: 'CountItemsDTM'

  1. #1
    Join Date
    Jul 2007
    Location
    New Zealand FTW!
    Posts
    72
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    'CountItemsDTM'

    hey guys . nuther error here.

    alot of script i run get this error.

    Code:
    Line 408: [Error] (16932:6): Unknown identifier 'CountItemsDTM' in script C:\Documents and Settings\Owner\Desktop\Al-Karid Arson ver1.0 SMART.scar
    Can any1 help?

    thanks
    The SRL team brings all the mods to the yard,
    And their like, "We kno u bot hard",
    "Damn right, We DO bot hard",
    "But you cant catch us, cos we use S.M.A.R.T!"

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    CountItemsDTM isn't a function in SRL anymore. The script you're using is most likely outdated, so I'd suggest finding a new one or using a different function to count items (CountItemsIn, for example).
    :-)

  3. #3
    Join Date
    Jul 2007
    Location
    New Zealand FTW!
    Posts
    72
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks heaps. helped me again. will rep you when i can
    The SRL team brings all the mods to the yard,
    And their like, "We kno u bot hard",
    "Damn right, We DO bot hard",
    "But you cant catch us, cos we use S.M.A.R.T!"

  4. #4
    Join Date
    May 2007
    Location
    Location:= USA
    Posts
    238
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    um there's also just CountItems
    Please, I need money, and you don't lose anything, except get money! Join BUX.TO with http://bux.to/?r=twistedvip50

  5. #5
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    You could just add CountItemsDTM into that script...

    SCAR Code:
    function ItemCoordsDtm(area: string; dtm: Integer): TPointArray;

    var
      startx, starty, rowsize, colsize, colnumber, rownumber, cn, rn, col, row: Integer;
      x1, y1 : Integer;
      itemx, itemy: Integer;
      i: Integer;

    begin
      if (CheckArea(area)) then
      begin
        AreaInfo(area, startx, starty, rowsize, colsize, colnumber, rownumber);
        cn := colnumber - 1;
        rn := rownumber - 1;
        for row := 0 to rn do
          for col := 0 to cn do
          begin
            x1 := startx + col * colsize;
            y1 := starty + row * rowsize;
            if (FindDTM(dtm, itemx, itemy, x1, y1, x1 + colsize, y1 + rowsize)) then
            begin
              i := GetArrayLength(Result);
              SetArrayLength(Result, i + 1);
              Result[i]:= Point(x1, y1);
            end;
          end;
      end;
    end;

    function CountItemsDtm(area: string; dtm: Integer): Integer;

    var
      coords : TPointArray;

    begin
      Coords := ItemCoordsDtm(area, dtm);
      Result := GetArrayLength(coords);
    end;
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. CountItemsDTM
    By D1zl3 in forum OSR Help
    Replies: 2
    Last Post: 10-13-2008, 06:31 PM

Posting Permissions

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