Results 1 to 4 of 4

Thread: Banking Script Notion

  1. #1
    Join Date
    Jan 2012
    Posts
    190
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default Banking Script Notion

    I Have A Banking Procedure That I Made
    Was Wondering If Anyone Can Help And Make It Run Smoother
    Here It Is

    Simba Code:
    Function IsDepositBoxOpen : Boolean ;
     var
      x , y : integer ;
        begin
         if not LoggedIn or InvEmpty or DepositScreen then
          Exit ;
            begin
             if InvFull and GuyJustchilln then
               begin
                 GetSymbolColor( x , y , 'bank' ) ;
                 SSMouse ( x + 14 , y , 5 , 5 , True ) ;
                 wait ( 2000 + Random ( 1000 ) ) ;
                  if FindObjTPA ( x , y , 8095630 , 10 , - 1 , 30 , 60 , 600 , [ 'deposit' ] ) or    (*i use this for findind depot box cuz i can change/add color acrdingly*)
                   FindObjTPA ( x , y , 7964044 , 10 , - 1 , 30 , 60 , 600 , [ 'deposit' ] ) or
                   FindObjTPA ( x , y , 8226960 , 10 , - 1 , 30 , 60 , 600 , [ 'deposit' ] )  then
                    begin
                     SSMouse ( x , y , 5 , 5 , True ) ;
                     Result := True ;
                    end ;
                end ;
             end ;
         end ;





    procedure BankItems ;
     var
      SCMark , x , y : Integer ;
        begin
         if not LoggedIn or InvEmpty then
          Exit ;
            begin
             if InvFull and WalkFinished then
              begin
               SCMark := DTMFromString('mWAAAAHicY2FgYBAGYiUg5gBiUSDmAWIxIGYHYhUgrq+qYrCxsmSIDg9naK2vZ5AEiiFjRjQMAgAKowW6');
                if FindDTM ( SCMark , x , y , msx1 , msx1 , mscx , mscy ) then    (*this dtm is a thing on left side of bank, for positioning is all*)
                  begin
                   IsDepositBoxOpen ;
                   Wait ( 3000 + Random ( 500 ) ) ;
                    if DepositScreen then
                      begin
                       DepositAll ;
                      end else
                       if FindObjTPA ( x , y , 8095630 , 10 , - 1 , 30 , 60 , 600 , [ 'deposit' ] ) or
                        FindObjTPA ( x , y , 7964044 , 10 , - 1 , 30 , 60 , 600 , [ 'deposit' ] ) or
                        findObjTPA ( x , y , 8226960 , 10 , - 1 , 30 , 60 , 600 , [ 'deposit' ] ) then
                          begin
                           SSMouse ( x , y , 5 , 5  , True ) ;
                           Wait ( 3000 + Random ( 500 ) ) ;
                            if DepositScreen then
                              begin
                               Wait ( 3000 + Random ( 500 ) ) ;
                               DepositAll ;
                              end ;
                          end ;
                   end ;
               end ;
             end ;
         end ;

  2. #2
    Join Date
    Feb 2011
    Location
    Earth
    Posts
    1,784
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Why do you have it exit the function is the DepositeBox screen is up, without returning True for the function?

    Currently: Working on Defending&Attacking in my Castle-Wars Script
    Project Rebuild: 90M/170M

  3. #3
    Join Date
    Jan 2012
    Posts
    190
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    what it does is move my character in range to the deposit box and clicks on it. if the deposit box is already open then we should not need to call this function.

    my script is very slow and it may have weird ways of functioning but it woks all except this part.

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

    Default

    same here i cant get my bank.scar file compiled cause i keep getting this error:

    if (FindTextTPA(4106994, 20, 20, 22, 400, 45, 'Bank', upchars, Nothing)) then

    what do i do?

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
  •