Turns out, you need to:
First, find a plaque in a sarcophagus in one of the side rooms near the ghost of the boy. Then, perform the actions according to the entry in the codex. If the action is performed incorrectly, a spirit will appear. The algorithm:
Examine the fountain to start its dialog // Examine the fountain to start its dialog
Fill the earthen jug with water // Fill the earthen jug with water
Leave the pool alone // Leave the pool alone
Examine the altar to start its dialogue // Examine the altar to start its dialogue
Place the filled earthen jug on top of the altar // Place the filled earthen jug on top of the altar
Kneel before the altar and pray // Kneel before the altar and pray
Examine the earthen jug on the altar // Examine the earthen jug on the altar
Take a single sip from the water in the jug // Take a single sip from the water in the jug
Take the earthen jug // Take the earthen jug
Leave the altar alone // Leave the altar alone
Examine the fountain to start its dialog // Examine the fountain to start its dialog
Dump the water in the jug back into the pool // Dump the water in the jug back into the pool
http://forums.ag.ru/?board=ti_bg&action=display&num=1258797764
And I was fighting the demon, having violated the above conditions...:(
Sincerely, VDV_forever