necklace who morph you

My project is to create objects (a necklace) that when the player on equip morph to undead skin (3533) and when the player put this item in his bag or delete it, demorph the player. My actualy code is
http://pastebin.com/WWWisbDF

it’s work morph player on equip, but how can add a dismoph on deequip ?
For more informations about what i try to do look this screens :

http://img15.hostingpics.net/pics/689802WoWScrnShot041315194423.jpg

http://img15.hostingpics.net/pics/761636WoWScrnShot041315194445.jpg

I’m motivated and determined to learn how to do this ! /emoticons/default_biggrin.png
Can you help me ?

I’m on latest revision of trinity core /emoticons/default_tongue.png

thank you in advance /emoticons/default_wink.png

— Canned message start —

This thread is not related to the official Trinity codebase and was moved to the Custom Code section.

Please read the stickies next time.

— Canned message end —

Oups i’m sorry thank

Bump!!