[Kinda Solved] Can't seem to get through Multiplayer Treasure Grove


#1

My hero collects the first coin but after that he just stands there.

# Be the first to 100 gold!
# If you are defeated, you will respawn at 67% gold.
item = hero.findNearestItem()
itemPosition = item.pos
itemX = itemPosition.x
itemY = itemPosition.y
while True:
    #  Find coins and/or attack the enemy.
    # Use flags and your special moves to win!
    hero.moveXY(itemX, itemY)

#2

@bagwagen, put all variables in the while true loop and after that, put

If item:
    Hero.moveXY(ItemX,ItemY)

#3

Thanks, now the only thing I need to do is to attack the enemy.


#4

not exactly solved yet.


#5

I think he knows the steps after that


#6

place the enemy variable, then check if the enemy exists, then attack.