Hello, well i got everything set up but when i click on the ladder, i walk to it, but i have to click the stairs again to actually teleport down...

Here is my code. Please try and help me with it.

Code:
if ((objectIDz == 1734)) {
			if (absX == 3044 && absY == 10323) {
			teleportToX = 3044;
			teleportToY = 3927;
			} else if (absX != 3045 && absY != 3927) {
			
			walkToPoint(3045, 3927, -1);
			if (absX == 3044 && absY == 10323) {
			teleportToX = 3044;
			teleportToY = 3927;
			} } }