(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)
User avatar
Vizit0r
Developer
Developer
Posts: 3943
Joined: 24.03.2005 17:05
Contact:

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

Post by Vizit0r »

in 8.11.3 all this problems solved.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Post Reply