Here is Blackrazor from the S2 conversion by Keith Martin (from the conversion library)
"Blackrazor. CN +3 Bastard Sword of Life Stealing, AC -, Hardness 15, Hit Points 18; Intelligence: 17, Charisma: 16, Wisdom: 12, Ego: 21
Blackrazor can communicate via Speech and telepathy, and speaks Common, plus up to 3 more spoken by its current wielder, which the sword learns telepathically
Minor Powers: Haste, 10/rounds, wielder only, 1/day
Detect Living Creatures (Souls) 60' radius, at will
SR 30 against Sleep and Charm effects
Life Stealing: On a critical hit, Blackrazor bestows one negative level on the target and the swords wielder gains 1d6 temporary hit points. These points last for 24 hours.
Special Purpose: Slay All
Special Power: On a killing blow, the Sword's wielder gains a number of d6 temporary hit points equal to the victim's hit dice; these temporary hit points stack with those gained via the swords Life Stealing ability, if any, and last for 1 minute per hit die of the slain victim. This power functions only if Blackrazor strikes the killing blow.
However, if the sword so much as strikes an Undead or other Negative Energy creature, it works in reverse, bestowing one negative level on the sword's wielder and granting 1d6 temporary hit points to the undead struck. 24 hours later, the wielder must make a Will save against a DC equal to Blackrazor's current ego or the level loss becomes permanent. This will happen every time Blackrazor strikes an undead or other negative-plane creature. Note that Blackrazor exists only to feed on the souls of the living; it cares little where those souls come from and may well keep this little fact to itself.
For every three days that pass without Blackrazor striking a killing blow or scoring a critical hit in combat, the sword's ego increases by 1 until it can compel its wielder to seek out and slay a human or humanoid creature. Once the sword has been "fed" in this manner its Ego drops back to 21. Although the sword seeks to slay all living things it encounters, it is intelligent and cunning enough to realize that its current wielder will need help to escape from White Plume Mountain, and it will not make an effort to force her to kill the other party members. Once Blackrazor realizes that the party intend to return it to Greyhawk, however, it will become increasingly difficult to deal with, and will constantly make all sorts of outlandish promises to whoever is bearing it, in an attempt to avoid being returned to the vault of its true owner.
Caster Level: 18th, Market Price: 105,000 GP; Blackrazor is a Minor Artifact."