i need help with the Desert combat level. i have been with this for over an HOUR! HELP
ordersGiven = 0
while ordersGiven < 5:
# Move down 10 meters.
x = self.pos.x
y = self.pos.y - 10
hero.moveXY(x, y)
# Order your ally to "Attack!" with hero.say
# They can only hear you if you are on the X.
hero.say("Attack!")
# Be sure to increment ordersGiven!
while ordersGiven:
while True:
enemy = hero.findNearestEnemy()
# When you're done giving orders, join the attack.
enemy = hero.findNearestEnemy()
hero.moveXY(57, 31)
if enemy:
hero.attack(enemy)
if hero.isReady("cleave"):
hero.cleave(enemy)