Results 1 to 17 of 17

Thread: Finding Bank Chests

  1. #1
    Join Date
    Mar 2010
    Posts
    119
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Finding Bank Chests

    Can someone please explain how to reliably bank using a chest? Thanks.
    Wow. I've been gone a very long time indeed. So much has changed.

  2. #2
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ForgotMyName View Post
    Can someone please explain how to reliably bank using a chest? Thanks.
    AutoColor and MM or TPAs would be your best bet. I use AC and MM to search for the Deposit Box in my script, works fine. Try getting a distinct color, also.

  3. #3
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You can use a find color procedure.
    Here is something I would do that someone at your current level could get your head around I think..
    SCAR Code:
    Function OpenChest: Boolean;

    Var
      BankTime, X, Y: Integer;

    Begin
      MarkTime(BankTime); //marking the time under the integer BankTime. It will start counting up in milliseconds. this is used as a failsafe
      Repeat
        FindColorTolerance(X, Y, *****, MSX1, MSY1, MSX2, MSY2, 5); //find a unique color on the chest and add the color number into the *****
        MMouse(X, Y, 4, 4);
        If WaitUpText('pen', 500) Then //if the chest is closed, it will open it
        Begin
          Mouse(X, Y, 0, 0, true);
          Wait(500+Random(500));
          Continue;
        End;
        If WaitUpText('lose', 500) Then //if the chest is open, it will right click it...
        Begin
          Mouse(X, Y, 0, 0, false);
          WaitOption('ank', 500); //...and choose the bank option.
          Wait(500+Random(500));
          Result := true;
        End;
      Until((BankTime > 30000) Or (Result = true)); //this ensures that if opening the bank takes longer then 30 seconds (something is probably wrong) it will stop trying
    End;

    This is not tested, I just wrote it up now, i don't know if the uptext or the option of the chest is right, it wouldn't be to hard to change though any questions you may have of anything I said, don't be afraid to ask from what i have seen or your scripting abilities from joining yesterday, you seem very promising
    Good luck!
    Last edited by Bionicle; 03-02-2010 at 08:52 PM.
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  4. #4
    Join Date
    Mar 2010
    Posts
    119
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the responses.

    They've littered the area with similarly colored rocks, crates, landscape, and even bits of npcs and such, possibly because they anticipated this purpose. I'm not sure there is a consistently unique color to the bank chest.

    Right now I'm doing something color based with FindObjCustom and IsUpText, and it works most of the time. I guess my options are either find something consistent or put in error recovery to my current method.

    I tried to use a DTM earlier. I have no idea if I was doing it wrong or if the DTM was an unreliable one, but I couldn't get any matches.

    If anyone has a chest banking procedure, I'd appreciate seeing it.
    Wow. I've been gone a very long time indeed. So much has changed.

  5. #5
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ForgotMyName View Post
    Thanks for the responses.

    They've littered the area with similarly colored rocks, crates, landscape, and even bits of npcs and such, possibly because they anticipated this purpose. I'm not sure there is a consistently unique color to the bank chest.

    Right now I'm doing something color based with FindObjCustom and IsUpText, and it works most of the time. I guess my options are either find something consistent or put in error recovery to my current method.

    I tried to use a DTM earlier. I have no idea if I was doing it wrong or if the DTM was an unreliable one, but I couldn't get any matches.

    If anyone has a chest banking procedure, I'd appreciate seeing it.
    Yea, DTMs wouldn't work in this case.
    Are you sure that there is not even one singular pixel that is a random color within the chest that you could use? Even one pixel could work

    Where is the chest? Lumby basement? I could look into it if you'd like..
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  6. #6
    Join Date
    Mar 2010
    Posts
    119
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm rather interested in chests in general. They seem like they'd be easy banks to use.

    Right now, I'm messing around with the Soul Wars bank. It has a color that sorta works, but sometimes the script goes wonky and starts chasing rocks and mountains and Nomad's head.
    Wow. I've been gone a very long time indeed. So much has changed.

  7. #7
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ForgotMyName View Post
    I'm rather interested in chests in general. They seem like they'd be easy banks to use.

    Right now, I'm messing around with the Soul Wars bank. It has a color that sorta works, but sometimes the script goes wonky and starts chasing rocks and mountains and Nomad's head.
    Chasing mountains...that's silly...
    It has the same layout as the Lumbridge chest though, right? I don't have members, so i can't check out that one..
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  8. #8
    Join Date
    Mar 2010
    Posts
    119
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It's a lot simpler. Just a chest and a left click option to Bank. And a ton of nearby similar colors.
    Wow. I've been gone a very long time indeed. So much has changed.

  9. #9
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ForgotMyName View Post
    It's a lot simpler. Just a chest and a left click option to Bank. And a ton of nearby similar colors.
    Don't you have to open it if it is closed?
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  10. #10
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by bionicle1800 View Post
    Don't you have to open it if it is closed?
    Not in soulwars.

  11. #11
    Join Date
    Mar 2010
    Posts
    119
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    There's a tendency to obscure some bits the chest by standing in front of it. One of the promising colors from earlier gets messed up that way.
    Wow. I've been gone a very long time indeed. So much has changed.

  12. #12
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ForgotMyName View Post
    There's a tendency to obscure some bits the chest by standing in front of it. One of the promising colors from earlier gets messed up that way.
    How about adjusting the camera angle? can it be revealed that way?
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  13. #13
    Join Date
    Mar 2010
    Posts
    119
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The sides are even more camouflaged than the front. At least the front has a small solid patch, but that gets blocked a lot.
    Wow. I've been gone a very long time indeed. So much has changed.

  14. #14
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    For a Castle Wars EP/Alcher I made, I just used the trim around the chest. I think Soul Wars has something similar, but if not, I can help you later when I get home from work.

  15. #15
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You have no moving in your script rite?
    How about something like this:
    SCAR Code:
    Function OpenChest: Boolean;

    Var
      BankTime: Integer;

    Begin
      Repeat
        FindColorTolerance(X, Y, *******, MSCX, MSCY+40, MSCX+70, MSCY-40, 5);
        MMouse(X, Y, 4, 4);
        If WaitUpText('ank', 500) Then
        Begin
          Mouse(X, Y, 0, 0, true);
          Result := true;
        End;
      Until((BankTime > 30000) or (Result = true));
    End;

    This way, it limits the huge mount of chance of not finding the chest. The measurements are not tested, however
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  16. #16
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    FindObjTPA, look into SRL/Objects.scar

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

    Default

    You could also just use ColorToleranceSpeed 2 or 3 if you're picking up other colors that way it'll be much more accurate. This could easily be done if you learned TPAs. There are plenty of awesome tutorials around for you to learn from. It's not a hard concept to grasp.

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
  •