Sarven Sheperd help (Python)

Hi @TEO Welcome to the discourse :partying_face: :partying_face:
I formatted the for you but next time pls formate the code like the link shown here

while True:
enemies = hero.findEnemies()
enemyIndex = 0

while enemyIndex > len(enemies):
enemy = enemies[enemyIndex]
if enemy.type != “sand-yak”:
while > 0:
enemyIndex +=1

hero.moveXY(x, y)

Your indentation is wrong, after while and if loop you have to put 4 spaces for just press tab.
Hope it helps :grinning: