Results 1 to 4 of 4

Thread: CountItemDTM from xInventory..broken..?

  1. #1
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default CountItemDTM from xInventory..broken..?

    I feel stupid making another thread in this same forum, but i'm getting problems with CountItemDTM...I used it to count a DTM of an ore, and the DTM works fine for everything else (banking, etc) but it gives me the wrong number everytime. To test it out i did this:

    SCAR Code:
    procedure SetUpScript;
    begin
      SetUpSRL;
      SetupSRLMining;
      DeclarePlayers;
      LoadImages;
    end;

    begin
      SetUpScript;
      Oresmined := CountItemDTM(OreDTM);
      Writeln(IntToStr(OresMined));
      FreeImages;
    end.

    And the DTM is declared in the LoadImages procedure, anyway i tried it multiple times with the above, first i tried it with five iron ores in my inventory, and in the debug log i got 3, and i tried it again with another DTM (that of a gem) and the ores at the same time, and it got the right number for the gems (6 in my inventory at the time, it came up 6) but the wrong number for the ores again..Any idea why? (I apologize in advance if it's something really obvious that i'm missing as it's late and i'm tired )

  2. #2
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    Strange, it works fine for me...
    I made a new script, check it out!.

  3. #3
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I guess i'll try reinstalling SRL..Any chance it might be because this comp is a vista?

  4. #4
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    mine works ok too but it gives aa wrong number if i have other stuff in my inventory

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Is the SVN Broken?
    By boberman in forum News and General
    Replies: 3
    Last Post: 12-10-2007, 10:03 PM
  2. CountItemDTM(DTM:Integer):Integer
    By rotflmfwao in forum Research & Development Lounge
    Replies: 12
    Last Post: 08-28-2007, 04:23 PM
  3. Need someone with a broken axe.
    By Jason2gs in forum OSR Help
    Replies: 7
    Last Post: 02-28-2007, 05:15 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
  •