ID:268462
 
=/ I got a alcoholic beverage item, so meh.
    Drink()
set category = "Item Commands"
usr.overlays += 'Drunk.dmi'
usr.Strength *= 2
usr.Def /= 2
sleep(100)
usr.overlays -= 'Drunk.dmi'
usr.Strength /= 2
usr.Def *= 2
del.obj

_< I can't get it to work... =/ an error pops up (in game)...
runtime error: bad del
proc name: Drink (/obj/Wine/verb/Drink)
usr: SDF (/mob)
src: Wine (/obj/Wine)
call stack:
Wine (/obj/Wine): Drink()

And the object won't be deleted =/
Help will be appreciated... VERY much.
there's no such thing as del.obj...

in ur case all u need is del src.
In response to DeathAwaitsU
Wouldn't that delete the user?
[Edit]:
.src:undefined type path

I get that error when changing it to .src =/
[Edit]:Nevermind, I deleted the period and made a space, I wonder what the difference is...
In response to Hell Ramen
No, it's del(src), and no, it'll delete src, which is the drink, supposedly. Not seeing where this verb is makes it impossible to tell for sure.
In response to Garthor
=/ I thought it'd delete the user, seeing as they were the source of the drink, which is... drinking it... x_X
But, as I editted (I know you didn't get to read it, as you were typing), I got it with del src...
And, don't nag on me about using DM commands around that small of a code :P(Not directed at anybody specifically)
In response to Hell Ramen
src is the object that the proc belongs to. usr is the person using the verb, but is not valid if outside verbs.
In response to Garthor
=/
Thanks Garthor, for answering like 3.5/4(fraction) of my posts... :P