Results 1 to 9 of 9

Thread: Count a stacked item

  1. #1
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Count a stacked item

    I looked in the Inventory include and didn't find anything that would count the number of a stacked item. If there isn't any, how would I be able to create a function myself?

    I'm trying to make the script to detect the number of air runes, to make myself more clear.

    Thanks in advance.

  2. #2
    Join Date
    Aug 2007
    Location
    England
    Posts
    1,038
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by Mr. Doctor View Post
    I looked in the Inventory include and didn't find anything that would count the number of a stacked item. If there isn't any, how would I be able to create a function myself?

    I'm trying to make the script to detect the number of air runes, to make myself more clear.

    Thanks in advance.
    Reflection is
    Code:
    GetItemStackSizeAt(slot)
    Today is the first day of the rest of your life

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

    Default

    Nothing color related? Something that could read the small font? I could do something else but this would be way shorter, and much easier.

  4. #4
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    GetAmount. It asks for coordinate input, so use InvItemToCoords or whatever the func is.

  5. #5
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    All the stuff your looking for is in Amount.scar, not Inventory.

  6. #6
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Yeah I think we have runes amount and arrows amount? If not I remember there being a way to search for an amount in an area that you define.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  7. #7
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks everyone. Especially TomTuff. I'm trying to make everything color, first.

    @NCDS I wish I could have seen that earlier. I remember there being some sort of file in SRL include and when you open it, it would have sections and you could easy CTRL + F stuff. I tried looking for it before, but I guess I couldn't find it.

  8. #8
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Mr. Doctor View Post
    @NCDS I wish I could have seen that earlier. I remember there being some sort of file in SRL include and when you open it, it would have sections and you could easy CTRL + F stuff. I tried looking for it before, but I guess I couldn't find it.
    Open Simba, open a script that includes SRL, right below the function list on the left there is a box to type in. Type any function name and it will show which folder it's located in along with it params.

  9. #9
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by NCDS View Post
    Open Simba, open a script that includes SRL, right below the function list on the left there is a box to type in. Type any function name and it will show which folder it's located in along with it params.
    In addition, you can double click the function in the list and it'll open the file it's in.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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