Try the "undercut" command to see if it fits your needs.
Scripting a fully functional mallbot is not the purpose of Mafia. However, a script can be made to add items and decrease prices periodically without feedback from the current market prices.
For instance, if you have a widget that you...