i'm having trouble setting off the deposit proc i made heres the code i really need some help
mob/trainer
Banker
icon='npc.dmi'
icon_state="9"
verb
Bank()
set src in oview(2)
switch(input("Hullo [usr.name],what would you like to do? You have [usr.goldsave] in your account")in list("Deposit","Withdraw","Cancel"))
if("Deposit")
usr<<"Depositing gold eh?"
usr.deposit()
if("Withdraw")
usr<< "sry just test"
if("Cancel")
usr<< "Cya later [usr.name] the [usr.race]"
mob/proc/deposit(amount as num)
if(src.gold<=amount)
src << "you haven't enough gold"
return
else
src.gold-=amount
src.goldsave+=amount
return
ID:150275
![]() Nov 15 2001, 3:55 pm
|
|