Auto-translated
antonag07, it's nonsense...I made something similar, and the MoveHeroRealTime command doesn't work as it should... I did it using the good old MoveHero instead.
function MoveHeroRealTimeAndReachPoint( heroName, x, y, floor )
moveCost = CalcHeroMoveCost( heroName, x, y, GROUND );
ChangeHeroStat( heroName, STAT_MOVE_POINTS, moveCost );
sleep(1);
MoveHeroRealTime( heroName, x, y, GROUND );
end;
Why say it's nonsense right away?! It works there...