Flag problem in Summit's Gate

Hi, I really need help on the last level of the Clouddrip Mountain area. I’m able to get past the two gates(with flags) at first, but when I reach the dungeons, my character just stays still and doesn’t move to the flag. My character is Tharin and he has the Runesword, Emporer’s Gloves, Gilt Wristwatch, Leather Belt, Programmaticon IV, Ring of Speed, Kithgard Worker’s Glasses, Quartz Sense Stone, The Precious, Basic Flags, Boss Star III, Enameled Dragonplate Helmet, Enameled Dragonplate, Boots of Leaping and Deflector Here’s my code:

loop:
    enemy = self.findNearest(self.findEnemies())
    if enemy:
        self.attack("Catapult")
        self.attack("Catapult 1")
        if self.canCast("chain-lightning", enemy):
            self.cast("chain-lightning", enemy)
        if self.canCast("invisibility", self):
            self.cast("invisibility", self)
        else:
            self.attack(enemy)
    
        flag = self.findFlag("green")
        if flag:
            self.jumpTo(flag.pos)
            self.pickUpFlag(flag)
        blackFlag = self.findFlag("black")
        if blackFlag:
            self.jumpTo(blackFlag.pos)
            self.pickUpFlag(blackFlag)

I added the black flag part just to see if it works instead of green when I reach the dungeons.
Please help! I’ll be willing to take all comments even if they don’t work.
Thanks a lot,
Kevin

Your problem is that jumpTo has a cooldown. This will cause you to stay in place until the cooldown has passed. Additionally, your hero will only respond to flags if there is an enemy. When you first enter the Inner Sanctum, the wall is blocking you from seeing the six female ogres. That’s most likely your problem.

In your code:
loop:
enemy = self.findNearest(self.findEnemies())
if enemy:
self.attack(“Catapult”)
self.attack(“Catapult 1”)
if self.canCast(“chain-lightning”, enemy):
self.cast(“chain-lightning”, enemy)
if self.canCast(“invisibility”, self):
self.cast(“invisibility”, self)
else:
self.attack(enemy)

    flag = self.findFlag("green")
    if flag:
        self.jumpTo(flag.pos)
        self.pickUpFlag(flag)
    blackFlag = self.findFlag("black")
    if blackFlag:
        self.jumpTo(blackFlag.pos)
        self.pickUpFlag(blackFlag)

The avatar will move when there is a enemy like ChronistGilver said.

Please enclose your code in three backticks (`) or highlight it and click the </> button. This makes so we can read it as code. Thanks!

Thanks I’ll try that and get back to you guys!

sorry I just realized that thanks