# Sarven Statue Help

**URL:** <https://discourse.codecombat.com/t/sarven-statue-help/27179>\
**Category:** Level Help\
**Created:** [January 31, 2021, 6:19am UTC](https://discourse.codecombat.com/t/sarven-statue-help/27179 "2021-01-31T06:19:21Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukas31](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lukas31/32/22892_2.png) [@lukas31](https://discourse.codecombat.com/u/lukas31)\
**Post date:** [January 31, 2021, 6:19am UTC](https://discourse.codecombat.com/t/sarven-statue-help/27179/1 "2021-01-31T06:19:21Z")

</div>

I need some help in sarven statue. Here is my code;

```python
# Walk to a few points around the ogre camps, defeating any enemies along the way.
# Visit the statue to begin the event.
# Stand your ground and defeat the attacking ogres.
hero.moveXY(60, 65)
# Hint: fight close to the statue for it's assistance during the battle.
def attack(enemy):
    if enemy and hero.distanceTo(enemy) < 20:
        if hero.isReady("bash"):
            hero.bash(enemy)
        if hero.isReady("stomp") and hero.distanceTo(enemy) < 15:
            hero.stomp()
        if hero.canCast("earthskin"):
            hero.cast("earthskin", self)
        hero.attack(enemy)
        hero.shield()
        
    else:
        hero.moveXY(60, 65)
    if hero.health < 500 and hero.canCast("invisibility"):
        hero.cast("invisibility", hero)
        hero.moveXY(60, 65)

def move(pos):
    if hero.isReady("jump"):
        hero.jumpTo(pos)
    else:
        hero.move(pos)

def raise_dead():
    Summon = hero.findCorpses()
    toSummon = hero.findNearest(Summon)
    if toSummon:
        if hero.canCast("raise-dead"):
            hero.cast("raise-dead")

def buff():
    skeleys()
    if hero.canCast("sacrifice"):
        skeleton = hero.findNearest( hero.findByType( "skeleton" ) )
        if skeleton:
            hero.cast( "sacrifice", skeleton, hero )
            raise_dead()

def summon():
    if hero.gold > 20:
        hero.summon("soldier")
    for solider in hero.findFriends():
        enemy = solider.findNearestEnemy()
        if enemy and (solider.type == 'soldier'):
            hero.command(solider, "attack", enemy)
        if (solider.type == "soldier") and not enemy:
            hero.command(solider, "defend", self)

def farm():
    while True:
        enemy = hero.findNearestEnemy()
        buff()
        if enemy and hero.distanceTo(enemy) < 20:
            attack(enemy)
        if hero.maxHealth > 5000:
            hero.moveXY(60, 65)
            break

while True:
    enemy = hero.findNearestEnemy()
    attack(enemy)
    summon()
    if pet.isReady("cold-blast") and enemy and hero.distanceTo(enemy) < 15:
        pet.coldBlast()
            

```

I have okar, and the best warrior armour, sword of the forgotten, and deflector.

---

<div class="post-metadata">

**Author:** ![lukas31](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lukas31/32/22892_2.png) [@lukas31](https://discourse.codecombat.com/u/lukas31)\
**Post date:** [January 31, 2021, 6:24am UTC](https://discourse.codecombat.com/t/sarven-statue-help/27179/2 "2021-01-31T06:24:26Z")

</div>

Also im in sarven statue 7

---

<div class="post-metadata">

**Author:** ![anon62741001](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@anon62741001](https://discourse.codecombat.com/u/anon62741001)\
**Post date:** [January 31, 2021, 6:29am UTC](https://discourse.codecombat.com/t/sarven-statue-help/27179/3 "2021-01-31T06:29:05Z")

</div>

What is not working? what happens when you run your code?

---

<div class="post-metadata">

**Author:** ![PeterPalov](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/peterpalov/32/45280_2.png) [@PeterPalov](https://discourse.codecombat.com/u/PeterPalov)\
**Post date:** [January 31, 2021, 6:29am UTC](https://discourse.codecombat.com/t/sarven-statue-help/27179/4 "2021-01-31T06:29:57Z")

</div>

Is that Sacred Statue? If it is, it’s difficult to complete level 7 with okar. Do you have wizards?

---

<div class="post-metadata">

**Author:** ![lukas31](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lukas31/32/22892_2.png) [@lukas31](https://discourse.codecombat.com/u/lukas31)\
**Post date:** [January 31, 2021, 6:30am UTC](https://discourse.codecombat.com/t/sarven-statue-help/27179/5 "2021-01-31T06:30:20Z")

</div>

Yeah it is (20 chars)

---

<div class="post-metadata">

**Author:** ![lukas31](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lukas31/32/22892_2.png) [@lukas31](https://discourse.codecombat.com/u/lukas31)\
**Post date:** [January 31, 2021, 6:30am UTC](https://discourse.codecombat.com/t/sarven-statue-help/27179/6 "2021-01-31T06:30:45Z")

</div>

I have pender, and naflar

---

<div class="post-metadata">

**Author:** ![lukas31](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lukas31/32/22892_2.png) [@lukas31](https://discourse.codecombat.com/u/lukas31)\
**Post date:** [January 31, 2021, 6:41am UTC](https://discourse.codecombat.com/t/sarven-statue-help/27179/7 "2021-01-31T06:41:45Z")

</div>

I also have senick. (20chars)

---

<div class="post-metadata">

**Author:** ![PeterPalov](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/peterpalov/32/45280_2.png) [@PeterPalov](https://discourse.codecombat.com/u/PeterPalov)\
**Post date:** [January 31, 2021, 7:11am UTC](https://discourse.codecombat.com/t/sarven-statue-help/27179/8 "2021-01-31T07:11:22Z")

</div>

That;s nice that you have Nalfar! It’s the best hero for this level! Try to summon many troops and sacrifice them.

---

<div class="post-metadata">

**Author:** ![lukas31](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lukas31/32/22892_2.png) [@lukas31](https://discourse.codecombat.com/u/lukas31)\
**Post date:** [January 31, 2021, 7:49am UTC](https://discourse.codecombat.com/t/sarven-statue-help/27179/9 "2021-01-31T07:49:33Z")

</div>

Do I kill burls, and also what troops do I summon? Like archer, solider, paladin

---

<div class="post-metadata">

**Author:** ![PeterPalov](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/peterpalov/32/45280_2.png) [@PeterPalov](https://discourse.codecombat.com/u/PeterPalov)\
**Post date:** [January 31, 2021, 9:41am UTC](https://discourse.codecombat.com/t/sarven-statue-help/27179/10 "2021-01-31T09:41:49Z")

</div>

Well, I think it’s good to summon skeletons and paladins and sacrifice them and use lightning twig.

---

<div class="post-metadata">

**Author:** ![JoPro\_8000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jopro_8000/32/27121_2.png) [@JoPro\_8000](https://discourse.codecombat.com/u/JoPro_8000)\
**Post date:** [January 31, 2021, 10:36am UTC](https://discourse.codecombat.com/t/sarven-statue-help/27179/11 "2021-01-31T10:36:29Z")

</div>

I think when you are on Sarven Statue seven, you just have to try around, because its really difficult (I’ve never been to it, but Ive been to others with seven and above). I dont think there its a lot of advice to give here. But its still very kind and encouraging of you guys

---

<div class="post-metadata">

**Author:** ![milton.jinich](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/milton.jinich/32/21419_2.png) [@milton.jinich](https://discourse.codecombat.com/u/milton.jinich)\
**Post date:** [January 31, 2021, 12:35pm UTC](https://discourse.codecombat.com/t/sarven-statue-help/27179/12 "2021-01-31T12:35:37Z")

</div>

Happy B-Day @anon62741001

---

<div class="post-metadata">

**Author:** ![anon62741001](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@anon62741001](https://discourse.codecombat.com/u/anon62741001)\
**Post date:** [January 31, 2021, 2:08pm UTC](https://discourse.codecombat.com/t/sarven-statue-help/27179/13 "2021-01-31T14:08:12Z")

</div>

Thanks @milton.jinich :3
