So, as an update, with full ham robes, if you fail enough times you get thrown in the dungeon. The script then repeatedly clicks on the dungeon door (Open door) instead of the picklock option.
So the script is still not working for the Ham dungeon.
Sort of sucks for me, I'm trying to level a very sensitive account. I wish it had worked when I first bought it because your script spent 20 minutes clicking the door.