proc
itemdrop()
if (src.shortsword >= 1)
new /obj/shortsword(loc)
//player.dm:47:error: /obj/shortsword: undefined type path
obj
shortsword
icon = 'icons.dmi'
icon_state = "shortsword"
var
amount
New()
amount = 1
Please could someone help me with this proc. I don't know why the type path is wrong.
X.loc = src.loc // if you want on ground where player is
X.loc = src // if you want in there inventory (contents)