When you speak with him. Trying to say that he was in a good mood because they feel it will be transferred to you, make him a positive feeling towards you.
When you are talking with him. Try to speak when he was in a good mood. Because this feeling will be conveyed to you make him feel positive towards you.