Multiplayer Treasure Grove (python)


#1

Hey - just wondering… how do I beat the Multiplayer Treasure Grove using python… I am very confused. I have tried a couple of methods posted previously, however, could not get them to operate correctly


#2

Here some functions

def pickUpNearestItem(items):
    nearestItem = self.findNearest(items)
    if nearestItem:
        moveTo(nearestItem.pos)
        
def moveTo(position, fast = True):    
    if(self.isReady("jump") and self.distanceTo(position)>10 and fast):
        self.jumpTo(position)
    else:
        self.move(position)
        
def attack(target):
    if target:
        if(self.distanceTo(target)>10):
            moveTo(target.pos)
        elif(self.isReady("bash")):
            self.bash(target)
        elif(self.canCast('chain-lightning', target)):
            self.cast('chain-lightning', target)
        elif(self.isReady("attack")):
            self.attack(target)
        else:
            self.shield()

#3

why it doesn’t work
even the indentations weren’t right