Results 1 to 4 of 4

Thread: Counting Inv?

  1. #1
    Join Date
    Jan 2008
    Posts
    89
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Counting Inv?

    YES I KNOW this is a very very retarted question. BUT i just cannot think today. and i feel like shit for wasting your time while u r reading this. but here it is.

    here's my function

    SCAR Code:
    function CountFlax : Integer;
    var
    FlaxCounted: Integer;

    begin
      LoadDTM;
      NumberOfFlax := CountItemsDtm('inv',Flax);
      if (NumberOfFlax >= 1) and (NumberOfFlax <= 28) then
      begin
        FlaxCounted := 0;
        FlaxCounted := NumberOfFlax + FlaxCounted;
        NumberOfFlax := 0;
        result := FlaxCounted;
      end;
      FreeDTM(Flax);
    end;

    now can someone tell me why it doesnt count properly? or any way i could fix it up so it counts the flax properly?

    thanks,
    prince

  2. #2
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    SCAR Code:
    f := CountItemsDTM('inv',FlaxDTM);
    Flax := Flax + f
    Try if it works for you.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  3. #3
    Join Date
    Jan 2008
    Posts
    89
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    trying right now, thanks in advance

  4. #4
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Or you can just do
    SCAR Code:
    IncEx(Flax,28);
    with 28 being how many flax you get per load (28 pieces of Flax fill up an Inv?)


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Counting
    By Smarter Child in forum OSR Help
    Replies: 3
    Last Post: 03-04-2009, 11:14 PM
  2. Counting runes
    By trojan in forum OSR Help
    Replies: 7
    Last Post: 02-10-2009, 10:13 PM
  3. Counting In Inv
    By [S]paz in forum OSR Help
    Replies: 10
    Last Post: 01-19-2008, 01:12 PM
  4. Counting Kebabs
    By The Claw in forum OSR Help
    Replies: 9
    Last Post: 05-06-2007, 11:21 AM

Posting Permissions

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