Results 1 to 5 of 5

Thread: AmountDtm Broken?

  1. #1
    Join Date
    Jun 2007
    Location
    NSW, Australia.
    Posts
    541
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    AmountDtm Broken?

    SCAR Code:
    function FeatherAmount : Integer;
    var x, y : Integer;
    begin
      if (Not(LoggedIn)) then Exit;
      if (FindDTM(FeatherDTM, x, y, MSX1, MSY1, MSX2, MSY2)) then
      begin
        Result := AmountDtm('shop', FeatherDTM);
        Writeln('Shop has ' + inttostr(result) + ' feathers.');
      end else
      begin
        Result := 0;
      end;
    end;

    This code does not work. It prints to the debug box 'Shop has 0 feathers.' There are over 900 feathers there.
    What is going on?

    -Pancakes.
    Quote Originally Posted by RAM View Post
    I sam sofa king wee todd did ! ~RAM
    My SRL Army Blog.


  2. #2
    Join Date
    Jun 2007
    Location
    NSW, Australia.
    Posts
    541
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    *bump*
    Quote Originally Posted by RAM View Post
    I sam sofa king wee todd did ! ~RAM
    My SRL Army Blog.


  3. #3
    Join Date
    Jan 2007
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Pancakes View Post
    *bump*
    lol, I looked at this earlier but could not see how I could help.. The feather dtm is obviously working, so yep must be something to do with amountdtm.. perhaps although the featherdtm is working when using finddtm, it is not quite right when trying to use amountdtm? you could always try amountbmp?

  4. #4
    Join Date
    Jun 2007
    Location
    NSW, Australia.
    Posts
    541
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by joerobo View Post
    lol, I looked at this earlier but could not see how I could help.. The feather dtm is obviously working, so yep must be something to do with amountdtm.. perhaps although the featherdtm is working when using finddtm, it is not quite right when trying to use amountdtm? you could always try amountbmp?
    I tried that, and it resulted in 'Shop has 1 feathers.'

    Which leads me to believe the function is buggy / broken.
    Quote Originally Posted by RAM View Post
    I sam sofa king wee todd did ! ~RAM
    My SRL Army Blog.


  5. #5
    Join Date
    Jan 2007
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yep defo looks to be broken, i had a look at the srl function nd it only uses the dtm to find the item coordinates- so if dtm is working (which it is) then i reckon you must be right nd the function is buggy/broken. u plan to go down the long road of doing your own function to work this?- its probs just that jagex have changed the coordinates slightly but i havnt got a clue hw u work out whether they have nd by wat lol.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How do I use AmountDTM properly?
    By Pure1993 in forum OSR Help
    Replies: 2
    Last Post: 02-10-2008, 09:15 PM
  2. Is the SVN Broken?
    By boberman in forum News and General
    Replies: 3
    Last Post: 12-10-2007, 10:03 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
  •