Hi Joćo -
It's going to take some serious debugging. This script is
riddled with errors. I think it dates back to an earlier
version of the GIMP, and was never updated.
"Chip Away" is a similar script, and may do what you want, but
if you can wait a few minutes, I'm debugging oldstone.scm right
now, and I'll mail it to you when I'm done.