I found ppslot.bcs, an unused script for an apparent 10gp slot machine in the asylum maze (ar1514). I think the idea was that the current boot machine was originally a slot machine. Dunno if you want to try and include it somewhere, but there you go.
If you do want to use it, you'll need to fix a few minor bugs in the script.