Thread: Bank Issues

Results 1 to 3 of 3
  1. #1 Bank Issues 
    Registered Member
    Knova's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    677
    Thanks given
    0
    Thanks received
    9
    Rep Power
    344
    Well yea.. I don't know exactly what to call this... so I'll do my best in describing it.

    ---

    How can you make it, so if u lost a item, and you talk to the npc, (then the server (npc) checks the players' bank, to see if they have it).

    ---

    Any1 know how to 'find a item in a players bank'??--this last part is the request.
    I AM KITE! Hope you like my programming!
    Reply With Quote  
     

  2. #2  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    30
    Posts
    6,023
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    Code:
    	public boolean playerCheckBank(int itemID, int amt) {
    		itemID++;
    		int found = 0;
    		for (int i = 0; i < bankItems.length; i++) {
    			if (bankItems[i] == itemID) {
    				if (bankItemsN[i] >= amt)
    				return true;
    				else
    				found++;
    			}
    		}
    		if (found >= amt)
    		return true;
    		return false;
    	}
    Free Filehost Premium Accounts
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Registered Member
    Knova's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    677
    Thanks given
    0
    Thanks received
    9
    Rep Power
    344
    lol thanks, figured it out before u said it
    I AM KITE! Hope you like my programming!
    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
  •