ID:271622
 
I need a way for players to store both money and items in a bank, i got it down but i need a way for certain keys to open certain doors, and for the keys to be giving out by an NPC without same key being giving out twice help p
Does it matter if you just talk to an NPC to get your stuff or do you really want it so they go to the door and everything?

If so, that will require a little of saving and loading. You will have to create a world/var named keynum (or something like that), and make sure it saves and loads with everything when the world is created. Then you just add keynum += 1 everytime a new key is issued, and give them that number. You then also have to save which door is theres, unless you use a universal door. The rest can be used by variables on the player (which would save with the player).

Make 2 variables mob/var/list/bankitems = new/list() and mob/var/bankmoney. Both should be used with your banking system when the door is opened to get stuff. Since you said you already have the banking part done, you should be able to put it in after you actually open the door.
In response to Polantaris
How do you make a bank system that stores both money and items?
In response to Merick12
You make both variables like I said above, then when you open the door, or talk to the banker or whatever, you ask which they would like to take from, money or items, and then you access the corresponding variable from the player's var list.
In response to Polantaris
No I don't have banking system. What I want is the same concept as his system but without the door thing I want a banker and thats it. So could someone help me with making a code or push me in the right direction?
In response to Merick12
Do you have AIM or MSN so I can talk to you? I'd like to help but I'd rather do it in a private conversation, I have my reasons.
In response to Polantaris
Yes