You are looking at a command called cpr

cpr {object}

If the object's material is not 'living' then this sets the material to 'living'.

If a living object's health is gone, then this restores it to 1.

For healing above 1 health, consider cast heal and there is some treasure dropped by living creatures in cow that may help you to gain health.

Reactions:
This triggers the cpr reaction. Here's an example of something you can script into an object to react:

if target of cpr then thankyou;
##thankyou:
getgender $actor;
print "[$actor] stands up, dusts $him self off, and smiles towards [$init_obj], 'Thanks mate!'";

Note: When examining, double quotes appear as " so please adjust the above code accordingly in your script.
Code