I found some free time and finally completed this work.
It's due to this thread I found the terrain height and read it properly.
So thanks all.
P.S. Now my overlay maphack is 100% accurate: https://www.ownedcore.com/forums/mmo...exile-api.html (GameHelper: A light version of PoeHUD/Exile-Api)