ID:144377
 
Code:
                Drop()
set src in usr
set category = null
if(src.amount>1)
src.amount--
var/obj/item/s=new(src)
s.Move(usr.loc)
s.amount=1
if(src.amount==1) src.suffix=""
else src.suffix="x [src.amount]"
else
src.Move(usr.loc)


Problem description:
s dosn't appear.I think it might be something with new() but I can't see what.

var/obj/item/s=new(src)
That is saying basically:
var/obj/item/s=new/obj/item(loc=src)


Maybe you want to try
new/obj/item/s = new type(usr.loc)
(I forgot if this works or not, I know there was a work around.. the first argument for new is pretty much always the location of where the item should appear.

BTW, why are you force setting the amount to 1 just a bit lower of the --?

- GhostAnime
In response to GhostAnime
BTW, why are you force setting the amount to 1 just a bit lower of the --?

- GhostAnime

S's amount should be set to 1 so it dosen't add lik....5 onto the src's amount when picked up again
In response to Metamorphman
Ah I see, a default value of >1..

- GhostAnime