Results 1 to 6 of 6

Thread: DepositAll

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

    Default DepositAll

    Simba Code:
    Function DepositAll:Boolean;
    var
    x,y:Integer;
    begin
    FindObjCustom(x, y, ['eposit','items'], [2052490], 2);
    Mouse(x, y, 0, 0, True);
    end;
    Apparently the old deposit ran on coordinates, this new one replaces it since that particular coordiante got replaced with deposit Money Pouch.

  2. #2
    Join Date
    Oct 2007
    Location
    If (Online) then Loc := ('On comp') else Loc := ('Somewhere else!');
    Posts
    2,020
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Simba Code:
    {*******************************************************************************
    function DepositAll: Boolean;
    by: ZephyrsFury & Quickmarch
    Description: Deposits all items in your inventory
    *******************************************************************************}

    function DepositAll: Boolean;
    var
      T, X, Y: Integer;
      BScreen, DScreen: Boolean;
    begin
      Result := false;
      BScreen := BankScreen;
      if (not(BScreen)) then
        DScreen := DepositScreen;
      if (BScreen) or (DScreen) then
        if (InvCount > 0) or (FindColor(X, Y, srl_outline_black, 98, 68, 436, 257) and (DSCreen)) then
        begin
          Mouse(390 - 50 * Integer(DScreen), 305 - 30 * Integer(DScreen), 15, 10, True);
          Wait(200 + Random(300));
          T := GetSystemTime;
          while (InvCount > 0) or (FindColor(X, Y, srl_outline_black, 98, 68, 436, 257) and (DSCreen)) and (GetSystemTime - T < 2000) do
            Wait(100);
          Result := (InvEmpty) or (not(FindColor(X, Y, srl_outline_black, 98, 68, 436, 257)) and (DScreen));
        end else begin
          srl_Warn('DepositAll', 'No items to deposit ', warn_AllVersions);
          result := true;
        end;
    end;

    theres the old one do you have a fix for it as im on me phone right now

  3. #3
    Join Date
    Jan 2011
    Posts
    121
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    E: Since this is an SRL bug, we should probably keep discussion to the SRL bug subforum. I've already posted a committable fix there.

    I believe the reason we had it running on coordinates is so that there is little to no CPU usage to find the button, and to introduce randomness in the clicking of the button - yours has to search for the color and wait for UpText, and will also probably click in the same spot every time (depending on how FindObjCustom works).

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

    Default

    http://villavu.com/forum/showpost.ph...85&postcount=8

    ^ Fix was posted already But good attempt!
    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
    Feb 2011
    Location
    Vancouver Island
    Posts
    85
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thankyou! :]

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

    Default

    F U Kyle, 17 Minutes short :L

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
  •