Results 1 to 20 of 20

Thread: DepositAll function

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

    Default DepositAll function

    Since they have added the Deposit Pouch button, DepositAll is no longer working, when DepositAll is called, it clicks on the money pouch button



    Edit: http://villavu.com/forum/showpost.ph...85&postcount=8 for the fix
    Last edited by Justin; 01-04-2012 at 04:46 PM.

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

    Default

    Deposit All coords just need to be updated.
    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.


  3. #3
    Join Date
    Feb 2009
    Location
    inside Hello World! Application
    Posts
    232
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Nice hate the pouch sometimes :/
    I'm not a lesser Being imma Lesser demon


    http://i.imgur.com/faGr0.png << First Script With Paint. Good First proggy? exp 21k/hr is ok pretty buggy

  4. #4
    Join Date
    Oct 2010
    Posts
    1,255
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    In Bank.scar, on line 454, I just changed the first coord to 370 - 50 * ..... instead of 390 or whatever it was.

    Working fine.
    I'm back

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

    Default

    Quote Originally Posted by smurg View Post
    In Bank.scar, on line 454, I just changed the first coord to 370 - 50 * ..... instead of 390 or whatever it was.

    Working fine.
    Just made a quick DTM and pushed it to my users so they don't have to edit Bank.scar, will remove the DTM once SRL is updated.

    Thanks for the coords tho!

  6. #6
    Join Date
    Jan 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    wheres bank.scar?

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

    Default

    Quote Originally Posted by keiranmartin View Post
    wheres bank.scar?
    C:\Simba\Includes\SRL\SRL\core\bank.scar

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

    Default

    You can replace your DepositAll function with this and it will work:

    Simba Code:
    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(360 - 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;
    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.


  9. #9
    Join Date
    Jan 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    done it

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

    Default

    Thank you Kyle Undefined.

  11. #11
    Join Date
    Dec 2011
    Posts
    90
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Kyle Undefined View Post
    You can replace your DepositAll function with this and it will work:

    Simba Code:
    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(360 - 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;
    Replace the whole file?

    EDIT: Found what he told: Goto Line 454, Replace the whole paragraph!
    Last edited by MaxPayne619; 01-05-2012 at 09:16 AM.

  12. #12
    Join Date
    Nov 2011
    Posts
    93
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what program are you opening your scar files?I'm opening with free file viewer.and i cannot replace line 454.plz help!

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

    Default

    Quote Originally Posted by chelmid View Post
    what program are you opening your scar files?I'm opening with free file viewer.and i cannot replace line 454.plz help!
    Just update your SRL and it will be fixed

    SRL -> Update in the menu bar
    You should be on version 1005+

  14. #14
    Join Date
    Dec 2011
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I updated everything possible (simba, SRL, SPS, extension, MSI), but it's still clicking the deposit money pouch. can someone help me?

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

    Default

    Quote Originally Posted by darklordnd View Post
    I updated everything possible (simba, SRL, SPS, extension, MSI), but it's still clicking the deposit money pouch. can someone help me?
    Delete SRL, then go SRL -> setting -> override update, then SRL -> Update

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

    Default

    Quote Originally Posted by legoace View Post
    Delete SRL, then go SRL -> setting -> override update, then SRL -> Update
    I did all that and it didn't work for me, still.

  17. #17
    Join Date
    Dec 2011
    Location
    Iceland
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    if i use the DepositAll function in my script and i have already changed the DepositAll function with the right coords, Do everyone who use my script have to do the same?

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

    Default

    Quote Originally Posted by RuNnNy View Post
    if i use the DepositAll function in my script and i have already changed the DepositAll function with the right coords, Do everyone who use my script have to do the same?
    If your script is using SRL5 the no, if its using SRL4 (you should really move to SRL5) then yes

  19. #19
    Join Date
    Dec 2011
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    please, someone help me with this. I can't get it working, it's still clicking the deposit money pouch icon. I'm working on a new script to become member at last. Thank you!

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

    Default

    Update to SRL5.
    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.


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
  •