Results 1 to 4 of 4

Thread: just wondering

  1. #1
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default just wondering

    ok i have this in my V1 script but it leaves as soon as it finds one bar. i tried dtms but no luck. they didnt even work. Its supposed to wait until it finds 4 (or the amount of bars one load makes).

    SCAR Code:
    repeat
    blah
    blah
    CountItemColor(4346690)
    until (CountItemColor(4346690)=4)

    am i using this wrong. this is the function im using:
    Code:
    function CountItemColor(color: Integer): Integer;
    By: based of PPLSUQBAWLZ's InventoryCount by Stupid3ooo
    Description: Performs a count of inventory items by color.

  2. #2
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I would say use the dtms again, because i use the CountItemDtm function, and it works just fine

    repeat
    blah
    until (CountItemDtm(BarDTM)=4);

    just remember to declare your dtms properly ( i call all mine in a procedure)

  3. #3
    Join Date
    Aug 2006
    Location
    London
    Posts
    2,021
    Mentioned
    2 Post(s)
    Quoted
    0 Post(s)

    Default

    well CountItemColor returns a number, there is no real point putting it just before the until, because the number wont be assigned to anything (meaning you dont do anything like Items:=CountItemColor

    also, its probably better to put until(CountItemColor(4346690)>=4);
    because if you get 5 bars without the script seeing it, it will carry on the loop, this way the loop stops if you get 4 or more of the items
    Join the Official SRL IRC channel. Learn how to Here.

  4. #4
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks a lot.

    Edit: still not working...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. just wondering
    By mark9510 in forum OSR Help
    Replies: 8
    Last Post: 10-31-2007, 07:22 PM
  2. Just wondering something
    By Sirt in forum OSR Help
    Replies: 1
    Last Post: 09-29-2007, 03:53 PM
  3. ok just wondering
    By .synergy in forum RuneScape News and General
    Replies: 2
    Last Post: 09-09-2007, 09:17 AM
  4. i was just wondering...
    By Runescape Pro in forum News and General
    Replies: 0
    Last Post: 08-27-2007, 10:22 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
  •