Help on Level clash of clones

‘sand-yak’ not ‘yak’

2 Likes

Put the the != sand-yak right below the While true, not in the archer line. Also, yak is not defined because it’s sand-yak.

2 Likes

These might work if you stick them in.

closest_archer = None
archer_dist = 999
elif(closest_archer and archer_dist < 20):
    enemy = closest_archer
1 Like

Maybe not. My code is different.

1 Like

where I put it?

Oh wait, do you have the electrocute ring?

1 Like

Actually, scratch that, that would make it VERY confusing.

1 Like

yes I do

hero.moveXY(80, 78)
while True:
    enemy = hero.findNearestEnemy()
    if enemy.type != "sand-yak":
        if enemy.type == "archer":
            if hero.isReady("cleave"):
                hero.cleave(enemy)
            else:
                hero.attack(enemy)
                hero.bash(enemy)
                hero.electrocute(enemy)

Make sure your hero is ready to bash, electrocute, and cleave.

2 Likes

Scratch the ‘archer part’, I think since you moved to 80, 78, you don’t need that.

2 Likes

No don’t scratch that! Scratch the move part. You actually want to wait a little bit before you move to the battle.

3 Likes

When we are all done, I will show you guys my very confusing code, Honestly, I think t is my best work yet.

2 Likes

Mine too. We can have a pm.

2 Likes

while True:
    enemy = hero.findNearestEnemy()
    if enemy.type != "sand-yak":
        if enemy.type == "archer":
            if hero.isReady("cleave"):
                hero.cleave(enemy)
            if hero.isReady("bash"):
                hero.bash(enemy)
            if hero.isReady("electrocute"):
                hero.electrocute(enemy)
            else:
                hero.attack(enemy)

I think that might work…

1 Like

Do you have jumping boots and invsiblity ring? If yes, you can cast invisibility, jump to the clone pos near archers and cleave there. Then start attacking enemy clone.

3 Likes

nope, my hero does not move or attack also let me try that peter

1 Like

That’s not bad. Try experimenting with your armor. For me, I used pretty bad armor. For hello daddy, he used very good armor.

1 Like

I think it is easier to do it with bad armor though.

1 Like