enemy = hero.findNearestEnemy()
if enemy and hero.distanceTo(enemy) < 10:
item = hero.findNearestItem()
if item and hero.distanceTo(item):
if hero.gold > hero.costOf("griffin-rider"):
flag = hero.findFlag("green")
health = hero.health
enemy = hero.findNearest(hero.findEnemies())
soldiers = hero.findFriends()
soldierIndex = 0
soldier = soldiers[soldierIndex]
hero.command(soldier, "attack", enemy)
And the word below his pic says this and sry to get off topic
Please do not post solutions, as it ruins the learning experience for others
Oh really? I am sorry.
I will remove that.
Maybe I should intentionally put some mistakes in when I try to help?
Like I post some code that works, but I intentionally put in mistakes, so the guy can learn?
How did you get the lucky title?
Try avoiding posting entire codes, you can post little bits of code to get him/her starting but not entire codes
I won a giveaway hosted by Chaboi in discord
maybe he means blood as for health and pinnacle gate as summits gat or smthn? idk
Thank you very much for your assistance. After some twists and turns, I broke the barrier. Thank you all for your help.
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.