ID:174509
 
mob/var/bankitems = list()
obj/chest
icon = 'obj.dmi'
icon_state = "chest"
density = 1
verb/Access_chest()
set src in oview(1)
Chosing
switch(alert("What do you want to do?","Item Bank","Deposit","Withdraw","Close"))
if("Deposit")
var/list/L
for(var/obj/O in usr.contents)
L += O
var/obj/ITEM = input("Deposit which item?","Deposit") in L
if(ITEM == null)
usr << "Nothing to Deposit!"
goto Chosing
usr.contents -= ITEM
usr.bankitems += ITEM
if("Withdraw")
var/list/L
for(var/obj/O in usr.bankitems)
L += O
var/obj/ITEM = input("Withdraw which item?","Withdraw") in L
if(ITEM == null)
usr << "Nothing to Withdraw!"
goto Chosing
usr.contents += ITEM
usr.bankitems -= ITEM





how do I add my items to make them work? when I try to deposit it says nothing to deposit.