obj
scws
name = "Shini Suit Sleeveless White"
icon = 'scws.dmi'
verb
Wear()
if(src.worn)
src.worn = 0
usr.overlays -= src.icon
usr.attack-=3000
usr.defence-=3000
usr.reiatsu-=3000
else
src.worn = 1
usr.overlays += src.icon
usr.attack+=3000
usr.defence+=3000
usr.reiatsu+=3000
Drop()
if(src:worn == 1)
usr << "Not while its being worn."
if(src:worn == 0)
src.loc=locate(usr.x,usr.y-1,usr.z)
Get()
set src in oview(1)
src.loc = usr
usr<<"You picked up a [src]"
Problem description:
Ok as the Topic States my stats dont revert back to wat they wer before i put the item on anyone know how to change this
-Don't use the : operator
-src.loc=locate(usr.x,usr.y-1,usr.z) is overkill, just use src.loc=usr.loc
-You don't need a worn variable, instead try if(src in usr) to check if the user has the object and create something like mob/var/obj/suit (actually you would want to add /obj/clothes and make all clothes derived from that if you plan to add any other types of clothing) and set that to whatever the person wearing. -You have a ton of possible glitches, for example there's no checking if the user is already wearing something.
-Drop() could be shortened to
I'm not sure if any of these are the cause of your problem, but fixing them up would certainly make everything a lot clearer.