Hello 
Maybe i'm wrong but its work more fast for me when i replace
begin
X:=GetX(GATEID);
Y:=GetY(GATEID)-4; for Y:=GetY(GATEID)-1;
Have a nice day.
Thanks dxrom for the great script I have really appreciated you sharing it and allowing me to use it. I wanted to give a little feedback on the script. This suggested change makes the script work a lot better.
I am GMing my 2nd toons stealth/hiding. There where two problems i had with the script.
If the location the script was telling me to walk to a location that is temp blocked by some one standing there like on the moongate the script would pause for 15 minutes and stealth displays the message "Point X 771 Y 752 marked as bad to 15 min". Since the toon was 4 tiles from the gate the script basically paused for 15 minutes. With the change from 4 tiles to 1 tile I am standing next to the gate if some ones on the gate and it gets marked bad for 15 minutes it does not matter because the script keeps going since i am close to the gate.
The second problem I have been having is if i have the UOclient window loaded from time to time stealth will get out of sync with the UO server and I am frozon in place until i close the UO client disconnect and reload the application and login. The odd thing is i would still see the Gen chat messages. So to prevent this issue i am just not clicking the "Start Client" button