Need help with Arrowproof Wolf


#1

Need help with Arrowproof Wolf please help me :smile:


#2

Please post your code! Using the </>. For example:

while True:
    enemy = hero.findNearestEnemy()
    if enemy:
        hero.attack(enemy)


#3

We would love to help you but can you please post your code or explain what’s the problem :smile:


#4

ok @Naimaa1 i will post my code


#5
while True:
    
    hero.moveXY(12, 34)
    hero.say("get up")
    # Next collect mushrooms just usual items.
    hero.moveXY(56, 23)
    hero.moveXY(26, 27)
    hero.moveXY(23, 48)
    hero.moveXY(23, 35)
    hero.moveXY(48, 45)
    hero.moveXY(59, 30)
    hero.moveXY(30, 40)
    hero.moveXY(30, 46)
    hero.moveXY(33, 33)


#6

The problem is you didn’t format your code correctly. To fix this put four spaces for everything except

While True:


#7

Do you mean like this

hero.moveXY(12, 34)
hero.say("get up")
while True:
        # Next collect mushrooms just usual items.
    hero.moveXY(56, 23)
    hero.moveXY(26, 27)
    hero.moveXY(23, 48)
    hero.moveXY(23, 35)
    hero.moveXY(48, 45)
    hero.moveXY(59, 30)
    hero.moveXY(30, 40)
    hero.moveXY(30, 46)
    hero.moveXY(33, 33)


#8

Your code should be formated like this: 56%20PM


#9

Not like this:
46%20PM