Treasure Cave HELP!

hero.buildXY('fire-trap', 64, 44)
hero.moveXY(73, 15)
hero.moveXY(42, 11)
hero.moveXY(46, 9)

item = hero.findNearestItem()
itemX = item.pos.x
itemY = item.pos.y
while True:
    if item:
        hero.move(item.pos.x, item.pos.y)
        item = hero.findNearestItem()

what must i do to get the gold? I can’t see any gold coins.

and i can’t even have a sword to kill the yeti/ogre(maybe they have the gold)

the ogre gets killed by the yeti and the ogre drops coins. you have to distract the yeti so you can get the coins. So for the loop try putting a if-statement so if there are no coins you head back.