Luup Plugin vs. Scenes
Both plugins and scences can be sold in the MiOS Apps Market.
A Luup plugin appears as a new device in Vera. It can do almost anything; A Luup plugin can be an interface to some external device, such as an alarm panel that has a serial (RS232) control port; It can be a virtual, logic device, such as a "Weather device" that fetches weather forecasts from a website and makes the information available.
The Luup plugins use the same Lua engine as the custom scenes and events. Therefore, anything you could do with a scene or event what you could also do with a Luup plugin.
The difference is that a plug-in allows you to create devices that are usable by other devices and UPnP Control Points that can run on their own and register callback hooks to be executed when events occur. Whereas when you add a snippet of code to a scene or event, it is only run in response to that scene or event. If your Luup plug-in is created in such a way that it's generic and re-usable, you can make that plug-in available in the MiOS Apps Market for other users to use. Plugins can be open source, or collaborative, so other users can expand the functionality.