banker
name = "Banker (NPC)"
name="Banker"
icon_state="person1"
verb/Talk()
set src in oview(3)
set category="NPC"
switch(input("Hello, Welcome to the Bank, how may i help you?","-= Bank =-")in list("Withdraw","Deposit","Balance","loan","Nothing"))
if("Deposit")
if(alert("We take 10% of the Zenni you deposit, would you still like to continue?","Deposit","Yes","No") == "Yes")
var/D = input("How much Zenni you want to deposit?","Deposit Zenni") as num
D = round(D)
if(D > usr.zenni || isnull(D))
alert("You dont have that much to deposit.","Deposit","Ok")
else if(D <= 0)
alert("You cant deposit less then 1.","Deposit","Ok")
return
else
D -= D/10
usr.Bankzenni += D
usr.zenni -= D
alert("You Deposit [D] Zenni.","Deposit","Finish")
if("Withdraw")
alert("Your Current Bank Total Is: [usr.Bankzenni] Zenni.")
var/W = input("How much Zenni do you wish to withdraw, [usr]?","Withdraw Zenni") as num
W = round(W)
if(W > usr.Bankzenni || isnull(W))
alert("You dont have that much Zenni.","Withdraw","Ok")
else if(W <= 0)
alert("You can't withdraw less then 1.","Withdraw","Ok")
return
else
usr.Bankzenni -= W
usr.zenni += W
alert("You Withdraw [W] Zenni.","Withdraw","Finish")
var/choice=input(usr,"Hey [usr.name]! What can I do for you?","Bank") as null|anything in list("Get Loan","Pay Loan")
if(choice=="Loan")
(alert(usr,"We are currently offering $10,000 loans, with %1.4 - %1.6 interest. Would you like one?","Loan","Yes","No")=="Yes")
usr.zenni += 10000
usr.loan += 10000
usr.loan()
if("Balance")alert("Balance: [usr.Bankzenni] Zenni.","Balance")
if("Nothing")alert("Come back, Anytime!","Bank")
Thats my coding now heres the errors i get in from that
mobs.dm:210:error: proc definition not allowed inside another proc
How can i fix that?
a. else if(D <= 0)?
Wjat? Its just else
b. if(choice=="Loan")
what the? the stuff below it isnt indented.
c. alert stuff
the 2 alerts at the bottom have to be indented