ID:167201
 
Okay im in the process of building another dbz game but i cant figure out how to make it so i can have a Drop Zenni tab and command anyone help plz?
mob/verb/Drop-Zenni(amount as num)
if(amount<1||amount>usr.zenni) return // If amount is smaller than 1 or it's bigger than the usr's gold, return
new /obj/zenni(usr.loc,amount=amount) // On the location of usr, the amount of the number inputted
obj/zenni
var/amount
verb/Get()
set src in oview(0) // you need to be ontop of the zenni to use this verb
usr.zenni+=src.amount // Usr's zenni plus the gold's amount
del(src) // Delete the gold