# Help shine getter

**URL:** <https://discourse.codecombat.com/t/help-shine-getter/10811>\
**Category:** Uncategorized\
**Created:** [March 7, 2017, 12:43am UTC](https://discourse.codecombat.com/t/help-shine-getter/10811 "2017-03-07T00:43:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keen\_Do](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@Keen\_Do](https://discourse.codecombat.com/u/Keen_Do)\
**Post date:** [March 7, 2017, 12:43am UTC](https://discourse.codecombat.com/t/help-shine-getter/10811/1 "2017-03-07T00:43:58Z")

</div>

it won’t move to at all  
can you help me. thank you  
here is my code  
while True:  
coins = hero.findItems()  
coinIndex = 0

```
# Wrap this into a loop that iterates over all coins.
while coinIndex < len(coins):
    coin = coins[coinIndex]
    # Gold coins are worth 3.
    if coin.value == 3:
        hero.moveXY(coins.pos.x, coins.pos.y)
    coinIndex += 1
    pass
```

---

<div class="post-metadata">

**Author:** ![\_TD\_RodYT](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/_td_rodyt/32/6285_2.png) [@\_TD\_RodYT](https://discourse.codecombat.com/u/_TD_RodYT)\
**Post date:** [March 7, 2017, 1:33am UTC](https://discourse.codecombat.com/t/help-shine-getter/10811/2 "2017-03-07T01:33:05Z")

</div>

Post the error message. I don’t see anything wrong with this code

---

<div class="post-metadata">

**Author:** ![Keen\_Do](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@Keen\_Do](https://discourse.codecombat.com/u/Keen_Do)\
**Post date:** [March 7, 2017, 3:08am UTC](https://discourse.codecombat.com/t/help-shine-getter/10811/3 "2017-03-07T03:08:52Z")

</div>

the error line is  
hero.moveXY(coin.pos.x , coin.pos.y)
