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

Ask for help
Post Reply
grossi74
Posts: 1
Joined: 10.10.2020 21:21

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

Post 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)
Post Reply