Thread: Bank Updating

Results 1 to 9 of 9
  1. #1 Bank Updating 
    Seven Lions

    Yvne's Avatar
    Join Date
    Sep 2012
    Posts
    1,204
    Thanks given
    164
    Thanks received
    173
    Rep Power
    81
    close please.
    Reply With Quote  
     

  2. #2  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    Server side, don't worry about it.
    Reply With Quote  
     

  3. #3  
    CodexBot


    Join Date
    Sep 2011
    Age
    30
    Posts
    884
    Thanks given
    136
    Thanks received
    153
    Rep Power
    148
    Quote Originally Posted by TheChosenOne View Post
    Server side, don't worry about it.
    What? Was that useful in anyway?
    - CodexBot
    Reply With Quote  
     

  4. #4  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    Quote Originally Posted by Geek View Post
    What? Was that useful in anyway?
    We both work on the same server, should've made that clear I guess.
    Reply With Quote  
     

  5. #5  
    Seven Lions

    Yvne's Avatar
    Join Date
    Sep 2012
    Posts
    1,204
    Thanks given
    164
    Thanks received
    173
    Rep Power
    81
    Quote Originally Posted by TheChosenOne View Post
    Server side, don't worry about it.
    I just realised you already added this. Lol forgot.
    Reply With Quote  
     

  6. #6  
    Registered Member
    natsu's Avatar
    Join Date
    Apr 2007
    Age
    32
    Posts
    3,435
    Thanks given
    1,084
    Thanks received
    676
    Rep Power
    1096
    why dont you communicate using pms and not make a thread
    Reply With Quote  
     

  7. Thankful user:

    Respected MemberKoy

  8. #7  
    Expert Python Programmer

    Join Date
    Nov 2012
    Posts
    90
    Thanks given
    6
    Thanks received
    17
    Rep Power
    8
    Just add a "shift()" method right before the method(s) that updates your bank account. For example:

    Code:
        public void withdraw(Item item, int slot) {
            try {
                //Withdraw logic here...
            } finally {
                shift();
                doBankUpdate();
            }
        }
    Please note that the code above is merely an example. Just apply the concept to your own code.
    Reply With Quote  
     

  9. #8  
    Duration Developer
    Intrum's Avatar
    Join Date
    Jul 2012
    Posts
    871
    Thanks given
    46
    Thanks received
    147
    Rep Power
    66
    Isn't it just like "c.getItems().rearrangeBank();"
    Reply With Quote  
     

  10. #9  
    PokeFrontier Java Developer

    Pokemon's Avatar
    Join Date
    May 2011
    Posts
    2,726
    Thanks given
    495
    Thanks received
    807
    Rep Power
    1260
    Quote Originally Posted by Koka Kola View Post
    Just add a "shift()" method right before the method(s) that updates your bank account. For example:

    Code:
        public void withdraw(Item item, int slot) {
            try {
                //Withdraw logic here...
            } finally {
                shift();
                doBankUpdate();
            }
        }
    Please note that the code above is merely an example. Just apply the concept to your own code.
    Why do that if you're not catching any exception?

    its basically doing this

    Code:
        public void withdraw(Item item, int slot) {
                //Withdraw logic here...
                shift();
                doBankUpdate();
        }


    Attached image


    I love
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •