Vodka
icon = 'Items.dmi'
icon_state = "vodka"
name = "Vodka"
verb
Get()
set category = "Item Commands"
set src in oview(1)
src.Move(usr)
Drop()
set category = "Item Commands"
src.Move(usr.loc)
Drink()
set category = "Item Commands"
usr.HP -= 50
usr.DeathCheck()
world << "[usr] was hit by hard liquor!"
usr.overlays += 'Drunk.dmi'
usr.Strength *= 2
usr.Def /= 2
sleep(250)
usr.overlays -= 'Drunk.dmi'
usr.Strength /= 2
usr.Def *= 2
world << "The effects of [usr]'s buzz have worn off."
=/ The "usr" part has to be there for other parts of the code. (Self tending bar :P)
Help will be appreciated :O
Just send the object to null and it'll get deleted once all its procs are done and nothing is referencing it.