I need help with the usual day level codecombat lua

Check the methods that come from your hero’s boots.

Picture

i already did that man

i solved it here,s my code

while True:
enemy = hero.findNearestEnemy()
# With AND, the type is only checked if enemy exists.
if enemy and enemy.type == “munchkin”:
hero.attack(enemy);
# Find the nearest item.
item = hero.findNearestItem()
# Collect item if it exists and its type is “coin”.
if item and item.type == “coin”:
hero.moveXY (item.pos.x, item.pos.y);