Useful Competitors - Bug?


I don’t know if this is a bug or not but when I run my code everything runs fine. My problem is that when my char goes to pick up the last coin I run out of time right when he’s about to pick it up… Is there an option to change the time limit or what am I doing wrong?


Here’s my code if anyone needs it…

while True:
enemy = hero.findNearestEnemy()
if enemy:
if enemy.type != “peon”:
item = hero.findNearestItem()
if item:
itemx = item.pos.x
itemy = item.pos.y
if item.type != “poison”:
hero.moveXY(itemx, itemy)


Try using a faster boot or hero.


which world is this in?
also, please use ctrl + shift + c to format your code so it looks nicer.! :grinning:

while True:
    enemies = hero.findEnemies()
    item = hero.findNearestItem()
    if len(enemies) > 0:
        for enemy in enemies:
            if enemy.type != "peon" and hero.distanceTo(enemy) < 25:
                while > 0:
    if item and item.type!= "poison":