# To grab the most gold quickly, just go after gold coins.
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:
# Only pick up gold coins.
coinIndex += 1
Look at where you’ve put coinIndex += 1. It’s inside the if coin.value == 3 statement. What will happen if the first coin you loop through is silver or bronze? That if statement won’t run, and coinIndex won’t increase.
So move it to just the while true? and that might solve?
Maybe you should try it? But no, not to the while True loop. Just outside the if loop. Experiment and see what works.
Thank you so much it solved it when i put it in the while loop
All you need to do is put
coinIndex += 1 in the while loop
wait wait wait
have you noticed with the kithgard workers glasses its angled differently than all the other glasses including infinite eyes
and with crude glasses its a little closer than the other glasses
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.