Results 1 to 3 of 3

Thread: Need help with- getting an amount

  1. #1
    Join Date
    Dec 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help with- getting an amount

    So.. i need something that will look at an inv slot, then writing on the proggie how many items are on that slot, the item will be nats so it has to be able to get amounts of stacks i think

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

    Default

    Already in SRL.
    SCAR Code:
    {*******************************************************************************
    function CountInvSlot(var items: Integer; row, col: Integer): Boolean;
    By: Freddy1990
    Description: Counts the number of items in an inventory slot, returns true if the slot is a stack.
    *******************************************************************************}

    EXAMPLE OF USE:

    SCAR Code:
    {.include SRL/SRL.scar}
    var
      Items, NumberOfRunes : Integer;

    begin
      if CountInvSlot(Items, 1, 1) then
        NumberOfRunes := Items;
    end.

  3. #3
    Join Date
    Dec 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ty for the example and ill use it tomorow but i dont think my memb will be left by then.. wizzup will prob bann this acc aswell but i just needed some help..



    and nice that u stole my sheep shearer quest idea..

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. get run amount
    By jhildy in forum OSR Help
    Replies: 1
    Last Post: 06-04-2007, 09:17 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
  •