Results 1 to 5 of 5

Thread: InvFull issues

  1. #1
    Join Date
    Sep 2008
    Location
    Nova Scotia, Canada
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default InvFull issues

    Feel like I'm going backwards rather than forwards trying to learn to script.

    Anybody else having issues with InvFull? since the upgrade to 27 (may be co-incidental) I cannot detect whether the inventory is full.

    As a test I used just this and...nothing.

    SCAR Code:
    SetupSRL;
    ActivateClient;

    if (InvFull()) then
      writeln('full inventory');
    if (InvCount() = 28) then
      writeln(full inventory (count)');
    for i := 1 to 28 do
      if (ExistsItem(i)) then
        writeln('
    exists: ' + IntToStr(i));
    Colorfinding routines that used to work are also wonky. Work 1 out of 2-3 tries. Drives me nuts trying to test/debug anything.

    Edit: I have an inventory of 28 oak logs when trying this.

    Edit: Just for kicks rolled back to rev 25 - working, forward to 26 - working, forward to 27 - working? What the h***?

    Edit: Just reloaded RS and what do you know...not working again. After a bit of testing it will work for a random number of tries then just stop detecting. Grrr.

    I give up trying to write a script when the routines give a different result everytime you run it.
    http://www.stats.srl-forums.com/sigs/6137.png

    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - Put this in your sig.

  2. #2
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Try this and use Scar tags:
    SCAR Code:
    program new;
    {.Include Srl/Srl.Scar}
    var
      i: Integer;

    begin
      SetupSRL;
      ActivateClient;
      if (InvFull) then
        Writeln('full inventory')
      else
        Writeln('Inv not full or no RS client');
      if (InvCount = 28) then
        Writeln('full inventory')
      else
        Writeln('Inv not full or no RS client2');
      for I := 1 to 28 do
        if (ExistsItem(I)) then
          Writeln('exists: ' + IntToStr(I))
        else
          Writeln('Inv not full or no RS client3, going through slot: ' + IntToStr(I));
    end.
    ~Eerik~

  3. #3
    Join Date
    Sep 2008
    Location
    Nova Scotia, Canada
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Sort of works

    Just tried this and it didn't work. Retargeted the client and it worked...for a while, then stopped working. Retargeted the client and it worked again? It's consistently inconsistent lol.
    http://www.stats.srl-forums.com/sigs/6137.png

    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - Put this in your sig.

  4. #4
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Just use Smart?
    And add a wait in the beggining like Wait(5000 + Random(500));
    Then go to RS Screen, should work.
    ~Eerik~

  5. #5
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    I just tried one of my scripts and it was not working. I am trying another one now.

    Bah, it working for me now.
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. InvFull
    By D1zl3 in forum OSR Help
    Replies: 21
    Last Post: 11-11-2008, 06:16 AM
  2. InvCount + InvFull Broken?
    By Sandstorm in forum OSR Help
    Replies: 7
    Last Post: 10-26-2008, 03:02 AM
  3. Is there an Option named InvFull?
    By papenco in forum OSR Help
    Replies: 5
    Last Post: 11-30-2007, 07:15 PM
  4. First script.. need help with invfull
    By Maiki in forum OSR Help
    Replies: 14
    Last Post: 10-02-2007, 09:05 PM
  5. Replies: 8
    Last Post: 10-01-2007, 08:44 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
  •