loop: # Attack any enemies you see. enemy = self.findNearestEnemy() if enemy: self.attack(enemy) else: self.moveXY(57, 55) # Or, if there are no enemies in sight, keep moving up and to the right. pass
I see. There appears to be a piece of code. The information surrounding it is a little vague. We have no clue as to what it is for, and it’s not even formatted properly! Please read the FAQ and learn how to format your code in the future. I will do it for you this first time, but it is important to do so yourself.
This code is most certainly not for Oasis. It is not healthy for your hero to be attacking sand yaks. Perhaps you meant Sarven Road instead?