This can't be achieved on scripting, but you can do it by editing source code.
However, an example of what you can do with scripting is making a custom atcommand available to your mounting users that, if they have fly wings or butterfly wings, will delete one of these from their inventory and run their script.