ID:176670
 
I made some pants (differend color) for my characters and this code:

pants_green
icon = 'pants_green.dmi'
name = "Green Pants"
layer = MOB_LAYER+1
verb
Get()
set category = "Item"
set src in oview(0)
src.loc = usr
Drop()
set category = "Item"
set src in usr
if(locate(usr.overlays== /obj/Clothes/pants_green))
src.suffix = ""
usr.overlays -= /obj/Clothes/pants_green
usr.pants = 0
src.loc = usr.loc
else
src.loc = usr.loc
Equip()
set category = "Item"
if(usr.pants == 0)
usr.overlays += src
usr.pants = 1
src.suffix = "Equiped"
else
usr << "\red You are allready wearing a pants."
Unequip()
set category = "Item"
if(usr.pants == 0)
usr << "\red You are not wearing any pants."
else
if(usr.overlays == /obj/Clothes/pants_green)
usr.overlays -= /obj/Clothes/pants_green
usr.pants = 0
src.suffix = ""
else
usr << "You are not wearing this pants."

The problem is that i need to check if the usr overlay is the src. If not then you can just drop or can't unequip the pants.
(i tried two things in the code, locate with the drop verb and the == thing at the unequip verb, they both don't work)

I hope someone can help me with this.

Thanks in advance

Greetz Marcel
If thats actually your code, then you have a lot of messed up indentation.