I did this one for Synjin, my Wizard, when the 3E Epic Level Handbook first came out. I still have no idea if it's done correctly or not, since that game kinda fizzled out not long thereafter unfortunately.
Synjin's Melee Mirror Abjuration Spellcraft DC: 46 Components: V,S Casting Time: 1-Hour Range: Personal Target: You Duration: Permanent To Develop: Costs: 414,000 GP / 16,560 XP / 8 days to create Seed(s): REFLECT (27) Targeted vs. Melee Attacks only Factors: Permanent Duration (Total DC x 5 [27 x 5 = 135]), Add +5 to my caster level to beat Dispel (135+10=145) Mitigating Factors: Burn 9,900 XP with the casting (-99 to DC [145 - 99 = 46]) Description: Synjin's Melee Mirror uses the REFLECT seed to automatically reflect all melee attacks back on the attacker. These reflected attacks use the die rolls the attacker made, back on himself vs. the attacker's own AC. Any and all bonus damage from enchanted weapons, etc (including vorpal), are then turned back on the attacker. If the attacking creature hits itself and has a DR, consult pages #9 and #10 of the Monster Manual.