mob
npc
Banker
icon='Npc.dmi'
icon_state="Banker"
verb
Bank(n as num)
set src in oview(2)
switch(input(usr,"What Do You Wish To Do","Withdraw or Bank")in list("Withdraw","Bank","Balance"))
if("Withdraw")
switch(input(usr,"How much money","Withdraw") as num)
if(num >= usr.BankedGold)
usr<<"You Do Not Have That Much Money Banked"
return
if(num <= usr.BankedGold)
num += usr.Gold
usr<<"Have A Good Day"
return
if("Bank")
if(n >= usr.Gold)
usr<<"You Dont Have That Much Money"
return
if(n <= usr.Gold)
n += usr.BankedGold
usr<<"Have A Good Day"
if("Balance")
usr<<"You have [usr.BankedGold] in the bank"
//m.see_invisible = 1
return
Problem description:oading The Unreal.dme
loading Skin.dmf
Npc.dm:2:error: number: undefined var
Npc.dm:2:error: =: expected a constant expression
Npc.dm:14:error: : expected a constant expression
Npc.dm:17:error: : expected a constant expression
The Unreal.dmb - 4 errors, 0 warnings (double-click on an error to jump to it)