Results 1 to 6 of 6

Thread: How to count inventory

  1. #1
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ChooseOption or WaitOption did not click

    Solved, I used if Invfull instead of counting inventory.
    Last edited by CephaXz; 04-25-2012 at 11:45 PM.

  2. #2
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    if you want help post the whole script along with the error message

  3. #3
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Simba Code:
    function WaitInvCountInc(Time:Integer):Boolean;
    var
      Inv1,Inv2,t:Integer;
    begin
      MarkTime(t);
      Inv1 := InvCount;
      repeat
        wait(10);
        Inv2 := InvCount;
        if TimeFromMark(t) > Time then
        begin
          Result := False;
          Exit;
        end;
      until(Inv2 > Inv1);
      Result := True;
    end;

    DAMN got ninja'd by Football -.-
    You can learn how to do it from my script ^^

  4. #4
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    At the last line of your script or the last line of this little snippet you gave us?

  5. #5
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    if you want help post the whole script along with the error message
    Well, I just wanted to know if there's a function that does what I want, doesn't matter what I wrote in my script. And I would be embarrassed to post my script here, because I only use VERY VERY basic codes.

    Quote Originally Posted by Sin View Post
    Simba Code:
    function WaitInvCountInc(Time:Integer):Boolean;
    var
      Inv1,Inv2,t:Integer;
    begin
      MarkTime(t);
      Inv1 := InvCount;
      repeat
        wait(10);
        Inv2 := InvCount;
        if TimeFromMark(t) > Time then
        begin
          Result := False;
          Exit;
        end;
      until(Inv2 > Inv1);
      Result := True;
    end;

    DAMN got ninja'd by Football -.-
    You can learn how to do it from my script ^^
    Thanks. I actually got a lot of your scripts for referring on how you use functions, statements, and all those. But most of them are still too hard for me to understand. The function you gave me looks like its for waiting for the timemark to end and see if there is an increase in item.

    What I actually want to do is for repairing runecrafting pouch.
    Simba Code:
    if (IsChatBoxTextAnyLine('decayed', clBlack)) or (FindDTM(decay, x, y, MIX1, MIY1, MIX2, MIY2)) then
    begin
      if Inventory is more than 25 then
      begin
        Find pure essence DTM
        Right click and deposit 5 pure essence
      end else
      begin
        Withdraw runes to repair my pouch along until pouch is repaired
      end;
    end;

    Is there something I can do for a case like this?





    Quote Originally Posted by abu_jwka View Post
    At the last line of your script or the last line of this little snippet you gave us?
    It is the very last line of every script, End. (With fullstop)

  6. #6
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by abu_jwka View Post
    At the last line of your script or the last line of this little snippet you gave us?
    he said script but who knows, that's why i asked for him to post the whole thing...


    and s1n, idk wtf you posted your little function for. Doesn't even do what he partially described he wants...

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
  •