if near X,Y if player near X,Y
if …, change X,Y
if you add these conditions, it would be great.
context