Thread: deposit worn items directly to bank

Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1 deposit worn items directly to bank 
    Registered Member
    Join Date
    Sep 2010
    Posts
    841
    Thanks given
    1
    Thanks received
    3
    Rep Power
    1
    So far

    Code:
    			case 82024: //Deposit equipped items
    				for (int equipment : c.playerEquipment) {
    					if (equipment > -1) {
    						c.getItems().bankItem(equipment : c.playerEquipment);
    					}
    				}
    				break;
    It doesnt work, any fixes?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Sep 2010
    Posts
    841
    Thanks given
    1
    Thanks received
    3
    Rep Power
    1
    bumppp
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Sep 2010
    Posts
    841
    Thanks given
    1
    Thanks received
    3
    Rep Power
    1
    bump
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jan 2009
    Age
    31
    Posts
    2,661
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    You cannot, unless you create a new bank method which supports equipping and i'm pretty sure you probably have an extremely length bank method.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Sep 2010
    Posts
    841
    Thanks given
    1
    Thanks received
    3
    Rep Power
    1
    Quote Originally Posted by digistr View Post
    You cannot, unless you create a new bank method which supports equipping and i'm pretty sure you probably have an extremely length bank method.
    I got the inventory deposit to bank working so I thought this one should work as well
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Jan 2009
    Age
    31
    Posts
    2,661
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    You will have to modify what each variable is.

    Below is untested but should work.

    Code:
    public void depositEquipment() {
    	int availableEquipment = new int[14];
    	int availableEquipmentN = new int[14];
    	int equipSize = 0;
    	for (int i = 0; i < playerEquipment.length; i++) {
    		availableEquipment[equipSize] = playerEquipment[i];
    		availableEquipmentN[equipSize++] = playerEquipmentN[i];
    	}
    	for (int i = 0; i < equipSize; i++) {
    		int nullSlot = -1;
    		int foundSlot = -1;
    		for (int j = 0; j < bankItems.length; j++) {
    			if (bankItems[j] == availableEquipment[i]) {
    				bankItemsN[j] += availableEquipmentN[i];
    				availableEquipment[i] = -1;
    				availableEquipmentN[i] = 0;
    				Frames.updateEquipmentSlot(i,-1,0);
    			        Frames.updateBankSlot(j,-1,0);
    				foundSlot = j;				
    				break;
    			}
    			if (bankItems[j] <= 0 && nullSlot == -1)
    				nullSlot = j;
    		}
    		if (foundSlot == -1 && nullSlot != -1) {
    			bankItems[nullSlot] = availableEquipment[i];
    			bankItemsN[nullSlot] = availableEquipmentN[i];
    			availableEquipment[i] = -1;
    			availableEquipmentN[i] = 0;
    			Frames.updateEquipmentSlot(i,-1,0);
    			Frames.updateBankSlot(j,-1,0);	
    		} else {
    			sendMessage("Not Enough Bank Space To Bank All Equipment Items");
    			break;
    		}
    	}
    }
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Sep 2010
    Posts
    841
    Thanks given
    1
    Thanks received
    3
    Rep Power
    1
    Where does this go?
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Sep 2010
    Posts
    841
    Thanks given
    1
    Thanks received
    3
    Rep Power
    1
    bump
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Oct 2010
    Posts
    168
    Thanks given
    4
    Thanks received
    4
    Rep Power
    1
    By the code you posted Mickt3, I can tell you are using Emulous.
    As for the code posted by digistr, it is not compatible.
    Reply With Quote  
     

  10. #10  
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    I could use this too, currently mine takes the items to the inventory then banks the entire inventory.
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. [PI] Deposit Worn Items
    By Alexander in forum Help
    Replies: 0
    Last Post: 09-12-2010, 05:25 AM
  2. Making a bank deposit box open up bank!
    By slickey rickey in forum Tutorials
    Replies: 10
    Last Post: 12-11-2009, 01:19 PM
  3. Deposit worn items?
    By LastResortpkz in forum Snippets
    Replies: 13
    Last Post: 10-25-2009, 02:23 AM
  4. Deleting worn items
    By Swifty in forum Help
    Replies: 12
    Last Post: 07-07-2009, 11:22 PM
  5. Bank booth & Deposit Box
    By ViperSniper in forum Configuration
    Replies: 19
    Last Post: 06-30-2009, 01:44 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •