hello??? urgg
uhh do you not want help?
helpp
then un mark it as solved
can you give the link?
i did unmark
can you give the link so that I can help
ok
@calvin so all you have to do is
while True:
enemy = hero.findNearestEnemy()
if enemy:
hero.attack(enemy)
if hero.isReady("cleave"):
hero.cleave(enemy)
if hero.health<enter health here:
hero.moveXY(move to the x, move to the y)
it said ORGE not defined
send me a screenshot
Did you try this already instead of your code
You have to change out my comments not add them
Let me explain
This is the correct
while True:
enemy = hero.findNearestEnemy()
if enemy:
hero.attack(enemy)
if hero.isReady("cleave"):
hero.cleave(enemy)
if hero.health<100:
hero.moveXY(move to the x, move to the y)
here move to the position of the X to heal
this is my code so far
while True:
enemy = hero.findNearestEnemy()
if enemy:
hero.attack(enemy)
if hero.isReady("cleave"):
hero.cleave(enemy)
hero.moveXY(x, y)
ok you know what do this
but MOVE TO THE X AND Y COORDINATES INSTEAD OF MOVE X Y
Find the nearest enemy, and find a flag. Then if there is a flag, pick it up. If there is an enemy, attack it.
while True:
enemy = hero.findNearestEnemy()
flag = hero.findFlag()
if flag:
#pick up the flag
if enemy:
if hero.isReady("cleave"):
#cleave enemy
else:
#attack enemy
If you need to heal, place a flag on the X and got to the spot and heal. Substitute my comments with the right commands.
1 Like
oh yeah I forgot that he doesnt have hero.health yet
@calvin might have it.
1 Like