I need some help in sarven statue. Here is my code;
# 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.