Thread: @@@

Results 1 to 7 of 7
  1. #1 @@@ 
    Banned
    Join Date
    May 2013
    Posts
    497
    Thanks given
    31
    Thanks received
    3
    Rep Power
    0
    Bazil
    Reply With Quote  
     

  2. #2  
    Registered Member Stewie1million's Avatar
    Join Date
    Jun 2011
    Posts
    588
    Thanks given
    2
    Thanks received
    56
    Rep Power
    14
    You say "Don't tell me to look at the logout delay.... yet the logout delay is all you need. You're never going to get anywhere if all you do is copy/paste.

    Anyways....

    The logout method:
    Code:
    public void logout() {
    			if(System.currentTimeMillis() - logoutDelay > 10000) {
    				outStream.createFrame(109);
    				properLogout = true;
    				PlayerSave.saveGame(this);
    			} else {
    				sendMessage("Please wait "+logoutDelay+" seconds before logging out!");
    		}
    	}
    Now.... as you can see it checks at the begining:
    Code:
    if(System.currentTimeMillis() - logoutDelay > 10000) {
    So you would simple add that to the openUpBank method, like so:
    Code:
    public void openUpBank(){
    			if(c.inWild() && !c.safeZone())
    			{
    				c.sendMessage("You can't bank in the wilderness!");
    				return;
    			}
    			if(c.getOutStream() != null && c != null && System.currentTimeMillis() - c.logoutDelay > 10000) {
    				c.isBanking = true;
    				c.getItems().resetItems(5064);
    				c.getItems().rearrangeBank();
    				c.getItems().resetBank();
    				c.getItems().resetTempItems();
    				c.getOutStream().createFrame(248);
    				c.getOutStream().writeWordA(5292);
    				c.getOutStream().writeWord(5063);
    				c.flushOutStream();
    		}
    	}
    Alright so we have the check to see if it has alredy been 10 seconds and now you need to add he message to send if it hasn't been 10 seconds.

    So just like the logout method(Changed a bit):
    Code:
    } else {
    				sendMessage("Please wait "+logoutDelay+" seconds before logging out!");
    Add it to the bank method like so:
    Code:
    public void openUpBank(){
    			if(c.inWild() && !c.safeZone())
    			{
    				c.sendMessage("You can't bank in the wilderness!");
    				return;
    			}
    			if(c.getOutStream() != null && c != null && System.currentTimeMillis() - c.logoutDelay > 10000) {
    				c.isBanking = true;
    				c.getItems().resetItems(5064);
    				c.getItems().rearrangeBank();
    				c.getItems().resetBank();
    				c.getItems().resetTempItems();
    				c.getOutStream().createFrame(248);
    				c.getOutStream().writeWordA(5292);
    				c.getOutStream().writeWord(5063);
    				c.flushOutStream();
    			} else {
    				c.sendMessage("You were recently in combat please wait 10 seconds before banking!");
    		}
    	}
    There you go it's that easy.

    I'm going to let you do the other two in hopes that you will actually learn something.

    If you happen to have more questions, as long as there not "Can you do the other two for me" then i'd be happy to answer them.
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    May 2013
    Posts
    497
    Thanks given
    31
    Thanks received
    3
    Rep Power
    0
    ----
    Reply With Quote  
     

  4. #4  
    Registered Member Stewie1million's Avatar
    Join Date
    Jun 2011
    Posts
    588
    Thanks given
    2
    Thanks received
    56
    Rep Power
    14
    Quote Originally Posted by Alaa View Post


    And yes please, tell me the others
    Just remove
    Code:
    c.isBanking = true;
    [spoil]It's not like you're going to get anywhere anyways. You strive to have everything handed to you instead of actually learning something. [/spoil]

    Good luck.
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    May 2013
    Posts
    497
    Thanks given
    31
    Thanks received
    3
    Rep Power
    0
    it's not working.

    need the others.
    Reply With Quote  
     

  6. #6  
    Registered Member Stewie1million's Avatar
    Join Date
    Jun 2011
    Posts
    588
    Thanks given
    2
    Thanks received
    56
    Rep Power
    14
    If you're referring to:
    Code:
    c.isBanking = true;
    Then you need to add:
    Code:
    isBanking = false
    Into player.java.

    Then adding the 10 second delay for dropItem & Trade, simple add what I added to the bank method in the following:

    DropItem: DropItem.java

    Trade: Trade.java
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    May 2013
    Posts
    497
    Thanks given
    31
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by Stewie1million View Post
    If you're referring to:
    Code:
    c.isBanking = true;
    Then you need to add:
    Code:
    isBanking = false
    Into player.java.

    Then adding the 10 second delay for dropItem & Trade, simple add what I added to the bank method in the following:

    DropItem: DropItem.java

    Trade: Trade.java
    Not working, got teamviewer ?
    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
  •