Hey !
To go through a portal the simplest solution for you is:
-have a close coordinate
-use move in a loop
Example:
Code:
MoveTo(1200, -900)
Do
Move(1600, -1200, 200) ;The coords near your portal
Sleep(100)
Until WaitMapLoading($YourNextMap)
to know that a portal can slightly change its location,
that's why sometimes your bot will succeed in crossing it and sometimes not.
You must use a Move to cross a portal and not MoveTo,
the 3rd coordinate of the move is a random distance addition,
so your bot will try distances between 1400 and 1800 for X coords and -1000 and -1400 for Y
it will move several times until it detects the loading.