Use the macropump. Just check when the spindle outputs are active, and turn on your pump.
I just checked, and I can get coolant to come on by modifying the M3macro to
Maybe if you create a new macro to turn on your oil and call that macro. Use, say, M777 and change M3 to:
It should work.
What does your code look like?