Telling people about some information and claiming it is an inspiration from Allah
This person who calls himself shaykh is simply telling things that the devils inform him of. He does not receive Ilham. To make it clearer, devils circulate information amongst each other then tell their allies whether humans or demons about it. They do so only for those who associate them in `Ibadah (worship) with Allah. Allah (Exalted be He) states regarding them,
Our Lord! We benefited one from the other
One form of being benefited by human beings is that some of the latter worship them. On the other hand, Al-Khadir acted upon the Wahy (Revelation) of Allah (Glorified and Exalted be He) as he was a prophet according to the most proper of the two opinions of scholars. This is why Al-Khadir (peace be upon him) said at the end of the narrative:
And I did them not of my own accord.
(Part No. 1; Page No. 259) May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.