Hello There, Guest! Login Register

How to use moveToRectangle()
moveToRectangle() is a function that will move randomly inside a rectangle which you specify the coordinates of, this is usually used inside caves where you can't use moveToWater() and moveToGrass(). Another option for caves is moveNearExit(mapName). Read more about the PROShine API functions here.

This function takes 4 parameters, we'll call them minX, minY, maxX, and maxY (minX is short for "minimum X coordinate", and maxX is short for "maximum X coordinate").

They must be in the right order, for easier referencing later in this post; this is how it should look.
moveToRectangle(minX, minY, maxX, maxY)
Now we will substitute the placeholder names (i.e. minX, minY, etc.) for their actual values which are numbers.

Short Answer
Show ContentClick Show Content to see the short answer -->:

Detailed Answer
Show ContentClick Show Content to see the detailed answer -->:

Still not working?

Coordinates must not be enclosed in quotation marks
moveToRectangle("15", "21", "21", "23")
moveToRectangle("15, 21, 21, 23")
moveToRectangle(15, 21, 21, 23)

All PROShine functions are case sensitive make sure yours is the right case and spelling
movetorectangle(15, 21, 21, 23)
MoveToRectangle(15, 21, 21, 23)
moveToRectangle(15, 21, 21, 23)
Ty bro that helped me alot!
Thanks a lot, this is definitely going to be useful for new users!
just a little bumpt. thanks for this..

bump for the newbies so they can earn some PRO strips
Bump for new users.
nvm delete post

Forum Jump:

Browsing: 1 Guest(s)