# Rescue the peasant from the bandits and return her to the village.
# Choose the path that suits you, avoiding patrols or facing them head on.
# Potions will grant random effects–some good, some bad.
# Feeling brave? Bonus if you can loot the ogre treasure chest.
item = self.findItems()
enemies = self.findEnemies()
flag = hero.findFlag("green")
while True:
    enemy = self.findNearest(self.findEnemies())
    item = self.findNearest(self.findItems())

    flag = hero.findFlag("green")
    if enemy and enemy != "sand-yak":
        if self.distanceTo(enemy) < 20:
        if self.isReady("cleave") and self.distanceTo(enemy) < 5:
        if flag:
            hero.moveXY(flag.pos.x, flag.pos.y)
            if item:
                position = item.pos
                x = position.x
                y = position.y
                self.moveXY(x, y)
hero.moveXY(22, 104)



 Projektuję strony www Lublin













Projektuję strony www Lublin na Joomla i WordPress