How do I complete Clash of Clones?

Please do not necropost, we are here to help, but we mostly look at new posts. You will get more help by making a new post. however, don’t make multiple posts on the same topic, if you don’t receive help within 1-2 weeks of making the post, it is most likely safe to make a new post.

Have fun coding
-Chase

Please do not copy other people’s code, CodeCombat is about learning, you can’t do that if you copy other people’s work.

Have fun
-Chase

Actually, I would disagree, I find it better to use a topic already in existence, so as not to clutter the forum with duplicate topics.
Thanks
Danny

04%20PM
19%20PM
download%20(10)

1 Like

what does all that sonic stuff say

also, the “eggpawn” doesn’t work

// You’ll need good strategy to win this one!
// Your clone will have the same equipment you have!
// But, they’re not very skilled at using special powers.

function findthrower() {
var enemies = hero.findEnemies();
for (var i = 0; i < enemies.length; ++i) {
if (enemies[i].type == “thrower”) {
//hsay("jest " + enemies[i].pos.x + " " + enemies[i].pos.y);
return enemies[i];
}
}
return false;
}
function findShaman() {
var enemies = hero.findEnemies();
for (var i = 0; i < enemies.length; ++i) {
if (enemies[i].type == “archer”) {
return enemies[i];
}
}
return false;
}

function findOgre() {
var enemies = hero.findEnemies();
for (var i = 0; i < enemies.length; ++i) {
if (enemies[i].type == “ogre”) {
return enemies[i];
}
}
return false;
}

function howManyNear() {
var enemies = hero.findEnemies();
var howmany = 1;
for (var i = 0; i < enemies.length; ++i) {
if (hero.distanceTo(enemies[i]) < 5) {
howmany++;
}
}
// hsay(“w kolo " + howmany);
return howmany;
}
function hsay(text) {
}
function jumpAndDie(enemy) {
//go to
if (hero.isReady(“jump”) && enemy && hero.time > 5) {
// hsay(” skacze do " + enemyt.pos.x + enemyt.pos.y);
hero.jumpTo({
‘x’: enemy.pos.x,
‘y’: enemy.pos.y
});
} else if (enemy && enemy.type != “thrower”) {
hero.moveXY(enemy.pos.x, enemy.pos.y);
}
// hsay(“bede bil”);
//kill
kill(enemy);
}
function shieldatack(enemy) {
if (hero.isReady(“bash”) && enemy && enemy.type != “archer” && enemy.type != “munchkin”) {
// hero.say(“tarcza”);
hero.bash(enemy);
} else if (enemy && enemy.health > 0) {
// hero.say(enemy.type +" zonk" + enemy.pos.x +" " +enemy.pos.y);
hero.attack(enemy);
}
}
function kill(enemy) {

if(enemy.type =="sand-yak")
{
    return;
}

if (enemy && howManyNear() > 4 && hero.isReady("cleave")) {
    hsay("bum bo " + howManyNear());
    hero.cleave(enemy);
} else {
    hsay("jednegozabije bo w kolo " + howManyNear());
    shieldatack(enemy);
}

I need only 1 help how do I call my clone my hero is THARIN
I’m asking because when I put findNearestEnemy only him is not reconigzed.

Can you show us your code? You can find him with this (I think):

Tharin = hero.findByType("knight")[0]

I’ll try with that.Thanks

It’s not working.Do you have any other ideas.
And yes I wanted to ask can you somehow send message that only I can see so you can show me how to pass the level because I’m not doing this for fun,Im doing this because I must and I don’t have time to deal with this it is so much harder than the others.

Let’s see if @Deadpool198 lets me to.

Thanks i really need help right now and my biggest problem is that I don’t have any special powers exept shield.If it is even a power that clone can’t use.

What is your gear? How many gems do you have?

I have 1574 but i think i can get more and my gear
Obsidian Helmet,Engraved Obsidian Armor,Obsidian Shield.Ring with 1.1x health,
Wooden Strand for health Regeneration,Belt and Gloves from the start ofa the game,
Edge of Darkness sword.And that’s kinda everything i have thing for flag and for distance

What about the cleave sword? You must have that. Try and cleave the archers first. You could get the jump boots to jump into the middle of the archers at the start and cleave. Is your shield a bash one? Do you have the emperor’s gloves? They’re really good. If you can afford them, buy them.

It depends how desperate it is, what’s the hurry? And I’m afraid even if I wanted to give you the answer I couldn’t because there is no right answer. It depends what equipment you have. A bit of a bad level to be stuck on. :grimacing:

Danny

And you should lure the enemy troops to the yaks using flags.

I already tried that and they are only attacking me.And I’ll look into it Danny. Thanks for idea.

I have gems to afford boots and i have cleave sword but it’s damage is only 27.62 is it enough cuz my clone will have it too.And for the gloves im afraid im not even close to that number.I saw now that i have shiled with bash but it’s slightly worse than mine now.