‘sand-yak’ not ‘yak’
Put the the != sand-yak right below the While true, not in the archer line. Also, yak is not defined because it’s sand-yak.
These might work if you stick them in.
closest_archer = None
archer_dist = 999
elif(closest_archer and archer_dist < 20):
enemy = closest_archer
Maybe not. My code is different.
Oh wait, do you have the electrocute ring?
Actually, scratch that, that would make it VERY confusing.
hero.moveXY(80, 78)
while True:
enemy = hero.findNearestEnemy()
if enemy.type != "sand-yak":
if enemy.type == "archer":
if hero.isReady("cleave"):
hero.cleave(enemy)
else:
hero.attack(enemy)
hero.bash(enemy)
hero.electrocute(enemy)
Make sure your hero is ready to bash, electrocute, and cleave.
Scratch the ‘archer part’, I think since you moved to 80, 78, you don’t need that.
No don’t scratch that! Scratch the move part. You actually want to wait a little bit before you move to the battle.
When we are all done, I will show you guys my very confusing code, Honestly, I think t is my best work yet.
Mine too. We can have a pm.
while True:
enemy = hero.findNearestEnemy()
if enemy.type != "sand-yak":
if enemy.type == "archer":
if hero.isReady("cleave"):
hero.cleave(enemy)
if hero.isReady("bash"):
hero.bash(enemy)
if hero.isReady("electrocute"):
hero.electrocute(enemy)
else:
hero.attack(enemy)
I think that might work…
Do you have jumping boots and invsiblity ring? If yes, you can cast invisibility, jump to the clone pos near archers and cleave there. Then start attacking enemy clone.
nope, my hero does not move or attack also let me try that peter
That’s not bad. Try experimenting with your armor. For me, I used pretty bad armor. For hello daddy, he used very good armor.
I think it is easier to do it with bad armor though.