Here's what you're looking for. Its trial and error (or file and error)
...there's a lot of filing and such on the mech parts, to get them to take the coins you want.
http://www.rotheblog.com/2008/11/arcade/tutorial-change-your-coin-door-to-accept-tokens/