This is a pretty simple script that will get the Dungeon of Doom's "Dead Mimic", also known as the ZAP wand. It runs pretty fast too!
It's runs best if you haven't done any parts of the quest yet. It will fail if you have a plus sign, and have paid for the oracle, but haven't used the plus sign yet. As far as I can tell, this is the only issue. It should be able to figure out if you have a plus sign, or if you've gotten past that, and opened the Dungeon of Doom already.
It will waste your turns if you blew up your want, and it's too soon to get a new wand.
As always, if there's any issues with the script, please let me know!
svn checkout svn://svn.code.sf.net/p/zap-wand/code/
Thanks to CKB, and AlbinoRhino for their help with this script.