Results 1 to 16 of 16

Thread: Inventory Problems

  1. #1
    Join Date
    Dec 2011
    Posts
    392
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Inventory Problems

    First of all I can't get InvFull to work. With a full inv of crayfish I try
    Simba Code:
    program New;
      {$i SRL\SRL.scar}

    begin
      SetupSRL;
      If InvFull Then
      Writeln('FULL');
    end.
    And never get FULL, the script just keeps running and hovering on inventory tab.


    For the real script I took out the If Inv Full Then Dropfish loop at the end because invfull isn't registering for me. With just this in place it clicks the fishing spot (yay!) but when it goes to drop fish it clicks on inventory tab, drops one fish, returns to hover over inventory tab then 3-5 sec later drops next fish. It takes 5 minutes to drop the whole inventory! How do I fix this? P:


    Simba Code:
    program New;
      {$i SRL\SRL.scar}

    Const
      SRLStats_Username = '';
      SRLStats_Password = '';
      BreakEvery        = 120;
      BreakFor          = 5;
      Version           = '.01';
      NumbOfPlayers = 1;
      StartPlayer = 0;


    Procedure Fishy;
    var
      SeX, SeY: Integer;

    Begin
      If FindObjCustom(SeX, SeY, ['Cage', 'Fishing'], [7956571, 9998731,9406078], 10) Then
      WriteLn('Found Spot!');
      Begin
      Case Random(2) Of
        0:Mouse(SeX,SeY, 5,5, True);
        1: Begin
             Mouse(SeX,SeY,4,4,False);
             WaitOption('Cage',Randomrange(100,300));
           End;
       End;
      End;



    End;

    Procedure DropFish;
    Var
      SeX, SeY, CrayDTM, I: Integer;
      Slotbox:TBox;
      CrayPattern:TIntegerArray;

    Begin

      CrayDTM := DTMFromString('mggAAAHicY2NgYFBlZGAwAWIlIFYBYhkg1gLiPiDuBuIWIJ4FxDOAuBWIM63lgboYMbAkA3aAqRKCIQAA5I4FMw==');
      CrayPattern:= [1,5,9,13,17,21,25,2,6,10,14,18,22,26,3,7,11,15,19,23,27,4,8,12,16,20,24,28]

      For I:=0 To 27 Do
      Begin
      SlotBox:=InvBox(CrayPattern[I]);
      If FindDtm(CrayDTM, SeX,SeY, Slotbox.X1,Slotbox.Y1,Slotbox.X2,Slotbox.Y2) Then
        Begin
          MouseItem(CrayPattern[I], False);
          ChooseOption('Dro');
        End;
      End;
    End;

    Begin
      SetupSRL;

          Fishy;

          DropFish;

    End.

  2. #2
    Join Date
    Mar 2007
    Location
    Mars, I thought all men were from Mars.
    Posts
    513
    Mentioned
    7 Post(s)
    Quoted
    124 Post(s)

    Default

    I just made my own, I couldn't get it to work either when I tried it.

    Simba Code:
    function Inv_Full:Boolean;
    begin
      if(FindColorTolerance(x,y,131072,690,430,715,450,10))then
        begin
        result:=true;
        end else result:=false;
    end;

  3. #3
    Join Date
    Feb 2009
    Posts
    484
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Hi Lilcmp

    I'll take a look at InvFull, I don't see why it would be broken.

    Will edit this post later with results.

  4. #4
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    I haven't seen an issue with this before, but I can take a look later.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  5. #5
    Join Date
    Dec 2011
    Posts
    392
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Anyone had a chance to check this? :S

  6. #6
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Are you making sure the Inventory is showing?
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  7. #7
    Join Date
    Nov 2011
    Location
    Louisiana
    Posts
    881
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I use it in one of my scripts and I'm pretty sure it's working.

  8. #8
    Join Date
    Dec 2011
    Posts
    209
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    You need to add "PlusOne" to your script.

  9. #9
    Join Date
    Mar 2007
    Location
    USA
    Posts
    1,433
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Try using
    Simba Code:
    (InvCount > 27)

    Instead, and call it in a loop with debug and a little random wait time.
    I'm Silent SPY
    Secret project: 0%
    Need help? Send me a PM

  10. #10
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    Your just forgetting the parenthesis around InvFull. It should look like this:

    If (InvFull) then
    writeln('FULL');


    Dont forget that when using If...Then statements the part after the "if" has to be in parenthesis. You can also use the words "and" or "or" inside the parenthesis if need be. "and" will only perform the "then" if both statements are true, while "or" will perform the "then" statements if either are true. Examples of both:

    if ((Something) or (SomethingElse)) then
    writeln('Something Just happened!');

    if ((Something) and (SomethingElse)) then
    writeln('Something Just happened!');

  11. #11
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    I just checked one of my scripts that uses the InvFull - working 100% for me.
    Simba Code:
    if (InvFull) then
       begin
       Writeln('We are full... Going to bank!');
       TeleportToBank;
       end;

  12. #12
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    Quote Originally Posted by ~Justin View Post
    I just checked one of my scripts that uses the InvFull - working 100% for me.
    Simba Code:
    if (InvFull) then
       begin
       Writeln('We are full... Going to bank!');
       TeleportToBank;
       end;
    That's because in your script InvFull has parenthesis around it. His does not.

  13. #13
    Join Date
    Dec 2011
    Posts
    392
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Paranthesis! Thanks for the help

  14. #14
    Join Date
    Dec 2011
    Location
    Lubbock, Tx
    Posts
    115
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok, I have Parenthesis, and mine still isn't working... It did work, but now it is not recognizing that the inventory is full

  15. #15
    Join Date
    Dec 2011
    Posts
    392
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by HardRockers View Post
    ok, I have Parenthesis, and mine still isn't working... It did work, but now it is not recognizing that the inventory is full
    Maybe post thread/code ? It's still working for me

  16. #16
    Join Date
    Dec 2011
    Posts
    33
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    same. doesn't work for me but i just made a bitmap of the object i wanted to bank.

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
  •