ID:145308
 
Code:
    naruto_hair
identifier="shield"

naruto_hair
icon='armor.dmi'
icon_state="naruto_hair"
defense=8
OnEquip()

if(istype(src.loc,/mob))

var/mob/P=loc

P.defense+=src.defense

OnRemoval()

if(istype(src.loc,/mob))

var/mob/P=loc

P.defense-=src.defense


Problem description:
any 1 please help me all i want to do is when you equip "naruto hair" the hair will show up.. but the code above when you equip the hair it wont show out.. please help me

thank you..

Don't double post.
Please, just make one post and wait for someone to help.
To add the overlay, try:

P.overlays += image(src.icon, icon_state=src.icon_state)


To dump it, just change the += to a -=.