Results 1 to 4 of 4

Thread: Amount of logs cut.

  1. #1
    Join Date
    Aug 2007
    Location
    Georgia, U.S.
    Posts
    890
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Amount of logs cut.

    In my script i have this

    C2 := C2 + AmountDTM('Inventory',Log);

    that is supposed to count the amount of logs i have cut in my inventory, but in my proggy it says the correct amount of loads i have done but it says that i cut 0 logs. what did i do wrong?

  2. #2
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    It's probably not finding your DTM.

    Try making a new one or possibly adding a little bit of tolerance to it..?

  3. #3
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    AmountDTM is not supposed to work that way..

    Use:

    CountItem

    or summtin

    use this:

    CountItems(Log, 'dtm', []);

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  4. #4
    Join Date
    Jul 2007
    Posts
    1,055
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure WillowCounter; / By Osmm
    var Number: byte;
    begin
      if not LoggedIn then Exit;
      GameTab(4);
      Number := CountItemsDTM('inv', AmountOfWillows);
      WriteLn(inttostr(number) + ' willows cut this load');
    end;

    That is part of my Willow Log counter in my Willow Banker.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. logs out for nothing
    By sjlou in forum OSR Help
    Replies: 21
    Last Post: 09-24-2007, 11:46 AM
  2. Oak logs
    By rogeruk in forum General Marketplace
    Replies: 0
    Last Post: 09-11-2007, 04:29 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
  •