Page 1 of 1

(PY) NewMoveXY......Is there any way to optimize it?

Posted: 10.10.2020 21:47
by grossi74
hello, guy
I'm making a follow-me
Could there be a better way?

Should I register in advance?
SetGoodLocation x 1~9999 , y 1~9999

Code: Select all

SetMoveThroughNPC(0)  < = Not working

followme = RequestTarget()
while True:
	while not GetDistance(followme) == 1:
		NewMoveXY(GetX(followme), GetY(followme), False, 1, True)
	while not GetDistance(followme) == 0 and not GetDistance(followme) > 1:
		SetGoodLocation(GetX(followme), GetY(followme))
		NewMoveXY(GetX(followme), GetY(followme), False, 0, True)

Re: (PY) NewMoveXY......Is there any way to optimize it?

Posted: 05.11.2020 17:41
by Vizit0r
in 8.11.3 all this problems solved.