This is a special device that can repaint some or all objects in a room.
Create an object of type 31, "Use" or "Activated Knicknack" (depending on the tool you use.)
Set action_type to 3.
action_menu can be any suitable value to get the menu prompt you want. The default of 0 gives “Use”.
Set colorMap to the colors you wish to apply.
Set action_type to 4.
action_menu can be any suitable value to get the menu prompt you want. The default of 0 gives “Use”.
The user must be holding a spray can of the color they want to apply to all objects.
Objects
Within the locale, you can place items as normal.
Set common_flags on the item to the usual values, plus 4096. The “Paintable” flag.
When the active object is Used:
This allows you to change colors of things available to buy, and objects glued in the room, but not items being held or dropped on the floor.
Bought items will have the paintable flag retained, so they can be placed in a turf and repainted there.
You can also create a loose object with a 'charges' value set to however many times you want this to be used. After this point the object will be deleted. Unpowered avatars can only use this within their own turf. This would allow rapid color changing of a scene for normal avatars bent on decorating. See also spray cans with a can_type of 5.