Sarven siege help


#1
loop:
    enemies = self.findEnemies()
    gold = self.gold
    items = self.findItems()
    if gold > 20:
        self.moveXY(83, 78)
    else:
        for item in items:
            xpos = items.pos.x
            ypos = items.pos.y
            self.moveXY(xpos, ypos)

says "pos was null. use a null check before accessing properties.
this is the line it gets stuck on:
xpos = items.pos.x

please help.


#2

you want to change that items.pos.x to item.pos.x