mob
verb
drop_gold()
set category = "Channels"
set name = "Drop Zenni"
var/dropgold = input("How much you want to drop?","Drop Zenni",) as num
if(dropgold<=0)
usr << "You have to drop ATLEAST 1 zenni!"
return
if(dropgold>usr:zenni)
usr << "You dont have that much zenni to drop."
return
else
var/O = new /obj/goldbag(usr.loc)
O:zenni = dropgold
usr.zenni -= dropgold
usr << "You drop <B>[dropgold]</b> zenni"
view(6) << "[usr] drops <b>[dropgold] zenni."
return
obj/goldbag
name="Dropped Zenni"
icon='Dropped Zenni.dmi'
verb
Get()
set src in oview(0)
usr << "You get <b>[src.dropgold]</b> zenni."
usr:zenni += src.dropgold
del(src)
Problem description:the last two line are popping up as an undefined error and i have no idea why so guys plz help and thank you. :D
The only thing I can help you with since you didn't explain what error, is that you're using : instead of .
Although I don't know if this would solve the problem, but I hear that it's bad to use :