Results 1 to 12 of 12

Thread: Invfull won't work for me

  1. #1
    Join Date
    Oct 2007
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Invfull won't work for me

    Is anyone else having this problem? Does anyone know of any "replacement" while Invfull isn't working?

    EDIT:
    SCAR Code:
    function TheInvIsFull : Boolean;
    var
    This, That : Integer;
    begin
     case Players[CurrentPlayer].Integers[0] of
     1: This := Shrimp_Alike;
     2: This := Fish_Alike;
     3: begin
        This := Tuna;
        That := Swordfish;
        end;
     4: This := Lobster;
     end;
      if not Players[CurrentPlayer].Integers[0]=3 then
       Result := FindDTM(This, X, Y, InvBox(28).X1, InvBox(28).Y1, InvBox(28).X2, InvBox(28).Y2);
      if not Players[CurrentPlayer].Integers[0]=3 then
      Result := FindDTM(This, X, Y, InvBox(28).X1, InvBox(28).Y1, InvBox(28).X2, InvBox(28).Y2)or
      FindDTM(That, X, Y, InvBox(28).X1, InvBox(28).Y1, InvBox(28).X2, InvBox(28).Y2);
    end;
    I made that to replace InvFull because it wont work...
    I use that in this:
    SCAR Code:
    if TheInvIsFull or InvFull then begin DropTheInv:=True; Disguise('Inventory full...'); Exit; end;
    In the script whenever the inventory gets full it should exit the current function...
    Woot woot.

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

    Default

    Quote Originally Posted by Ultra View Post
    Is anyone else having this problem? Does anyone know of any "replacement" while Invfull isn't working?
    I haven't heard of it not working, but you could easily just make your own version. Depending on what you're script is for, you could do a CountItems, or even search for a DTM in the last inventory slot (using a coordinate box).

  3. #3
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Works fine on Dev rev, must be regular rev hasn't change the outline color of items.

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    +1 Icefire.
    Works fine on Dev Rev, based on progress reports I've seen today its working.

  5. #5
    Join Date
    Oct 2007
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    +1 Icefire.
    Works fine on Dev Rev, based on progress reports I've seen today its working.
    Is the dev rev only available to developers?
    Woot woot.

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

    Default

    Quote Originally Posted by Ultra View Post
    Is the dev rev only available to developers?
    Nope, everyone.

    This guide explains how to get it.

  7. #7
    Join Date
    Oct 2007
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    Nope, everyone.

    This guide explains how to get it.
    I have that, my invfull wont work. I made it so script will check if the last inv spot is taken or not by finding the color, even that wont work, what the heck...
    Woot woot.

  8. #8
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Try using InvCount, or check every single slot for an item with a for loop.
    Ce ne sont que des gueux


  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 Ultra View Post
    I have that, my invfull wont work. I made it so script will check if the last inv spot is taken or not by finding the color, even that wont work, what the heck...
    Like it's not finding the color? Could you post your code please?

  10. #10
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    Are you sure you are running 32-bits true color?
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  11. #11
    Join Date
    Oct 2007
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    All the functions and procs are in my UltramateFisherbot script, but i posted the inventory-related ones on the topic post.
    Woot woot.

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

    Default

    Have you tried just using coordinates for the last inventory slot, instead of InvBox? I would try that, then you'll know for sure if it's an SRL inventory function that's not working properly.

    Although, I don't know why it's not working for you. It seems to be working for other people.

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
  •