Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

[Solved] Help! Clash Of Clones

Hello, I need help on Clash of Clones. I have tried many different heroes and equipment and different codes. But for some reason, my hero is not attacking the enemy hero. Please help. This is my code

while True:
    enemy = hero.findNearestEnemy()
    flag = hero.findFlag("black")
    if enemy:
        if enemy.type != "sand-yak":

My hero: Naria Of The Leaf
Equipment: Programmaticon III, Wolf Pup, Thornpick, Twilight Glasses, Sapphire Sense Stone, Tarnished Copper B…, Advanced Flags, Trap Belt, Gilt Wristwatch, Emperor’s Gloves,
Precision Rifle, Riveted Dragonscale Helment, Riveted Dragonscale Armor, Knightfire Charge, and the Boots of Leaping.
If anyone know what equipment/ hero I should use, please tell me. And if anyone could help me on my code, I would be ever so grateful.

Never Mind, i solved it.
In case you’re wondering,
Equipment: ThornPrick, Twilight Glasses, Sapphire Sense Stone, Wooden Strand, Advanced Flags, Trap Belt, Gilt Wristwatch, Emperor’s Gloves, Long Sword, Engraved Obsidian Shield, Engraved Obsidian Armor, Polished Bronze Helment.
Hero: Gordon The Stalwart

while True:
    Enemies = hero.findEnemies()
    Archers = hero.findByType("archer", Enemies)
    Friends = hero.findFriends()
    EnemyIndex = 0
    while EnemyIndex < len(Archers):
        Enemy = Archers[EnemyIndex]
        if hero.distanceTo(Enemy) < 37:
            while > 0:
                if hero.isReady("bash"):
                elif hero.isReady("cleave"):
        EnemyIndex += 1
    EnemyIndex = 0

Here is the start of the code, just to get you guys started.

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.