Hi, I had been trying this for quite a while. But undone! Feeling pretty lost. What else can I do? Moreover, the enemy= soldier.findNearestEnemy() shows error. I got no clue why as i worked with that line before.
# This level is supposed to be VERY hard! You may need a great strategy and or gear to complete it! # Find and defeat the yeti then gather its essence for the ritual. # You might want to gather the coins the yeti leaves behind, you'll need them to summon an army # Stand at the summoning stone (red x) to begin summoning # Now you just have to survive the undead hoard def pickUpCoin(): item = hero.findNearestItem() while item: hero.move(item.pos) item = hero.findNearestItem() def summonSoldier(): if hero.gold > hero.costOf("soldier"): hero.summon("soldier") def commandSoldier(): for soldier in hero.findByType("soldier"): enemy = soldier.findNearestEnemy() if enemy: hero.command(soldier, "attack", enemy) def attackEnemy(enemy): if enemy: while (enemy.health > 0): if hero.distanceTo(enemy) > 10: hero.move(enemy.pos) elif (hero.isReady("bash")): hero.bash(enemy) elif (hero.canCast('chain-lightning', enemy)): hero.cast("chain-lightning", enemy) else: hero.attack(enemy) hero.moveXY(55, 15) hero.wait(2) attackEnemy(hero.findNearestEnemy()) pickUpCoin() hero.moveXY(50, 45) hero.moveXY(19, 40) hero.wait(2) hero.moveXY(55, 48) for i in range(1,20): summonSoldier() commandSoldier while True: attackEnemy(hero.findNearestEnemy()) commandSoldier() pickUpCoin() break