Hat of Compliments (3.5e Curse)
From D&D Wiki
Hat of Compliments: This audaciously bold hat attracts attention like nothing else. In fact, the wearer finds it impossible to hide from anyone. When the hat is worn the wearer is automatically detected by every living sentient being within 60 feet. These creatures feel absolutely compelled to approach the wearer and tell them "Nice Hat!" The wearer can only remove the hat by making a successful Will Save against a DC 20. Of course, the wearer feels as if they own the best hat in the world and are loathe to remove it - even to sleep!
Detect magic shows the hat as having some form of charismatic touch.