I just had a basilisk attack me in Slashem (a Nethack derviative), and I didn't have a lizard corpse yet in the game. Luckily, I had a potion of acid with me:
The basilisk bites! You hear the basilisk's hissing! The dwarf throws a runed dagger!
You are almost hit by a runed dagger. The dwarf throws a dagger! You are almost hit by a dagger.
The fiery blade burns the basilisk! You are slowing down.
What do you want to drink? [B or ?*]
B - a potion called acid.
This burns like acid! You feel limber!
You could also eat a lizard corpse (the norm), an acid blob corpse, a yellow dragon, and anything else acidic.