Summits gate on free account?

This is my first time posting on the discourse but im on summits gate and im wondering if it is possible to beat on a free account, I have been on it for a couple weeks and have tried many different codes and I know that isnt specific but if anyone can help me please do.

summonTypes = [‘griffin-rider’]
tactick = 'hold’
stage = 1

def summonTroops():
type = summonTypes[len(hero.built) % len(summonTypes)]
if hero.gold > hero.costOf(type):
hero.summon(type)

def lowestHealthPaladin():
lowestHealth = 99999
lowestFriend = None
friends = hero.findFriends()
for friend in friends:
if friend.health < lowestHealth and friend.health < friend.maxHealth:
lowestHealth = friend.health
lowestFriend = friend
return lowestFriend

def commandPaladin(paladin):
if (paladin.canCast(“heal”)):
if (hero.health < hero.maxHealth * 0.8):
target = self
else:
target = lowestHealthPaladin()
if target:
hero.command(paladin, “cast”, “heal”, target)
elif (paladin.health < 100):
hero.command(paladin, “shield”)
elif stage < 4:
hero.command(paladin, “move”, {‘x’: 94, ‘y’: 34})
elif stage == 5:
hero.command(paladin, “move”, {‘x’: 284, ‘y’: 33})
else:
target = hero.findNearest(hero.findEnemies())
if (warlock):
target = warlock
if (target):
hero.command(paladin, “attack”, target)

def commandSoldier(soldier):
target = hero.findNearest(hero.findEnemies())
if (warlock):
target = warlock
if stage == 3:
hero.command(soldier, “move”, {‘x’: 84, ‘y’: 34})
elif (target):
hero.command(soldier, “attack”, target)

def commandFriends():
friends = hero.findFriends()
for friend in friends:
if tactick == ‘hold’:
hero.command(friend, “defend”, {‘x’: 1, ‘y’: 40})
elif friend.type == “paladin”:
commandPaladin(friend)
else:
commandSoldier(friend)

def moveTo(position):
if (hero.isReady(“jump”)):
hero.jumpTo(position)
else:
hero.move(position)

def attack(target):
if target:
if (hero.distanceTo(target) > 10):
moveTo(target.pos)
else:
hero.attack(target)

def pickUpNearestItem():
nearestItem = hero.findNearest(hero.findItems())
if nearestItem:
moveTo(nearestItem.pos)

commandFriends()
hero.moveXY(31, 56)
while True:
catapult = hero.findNearest(hero.findByType(‘catapult’))
warlock = hero.findNearest(hero.findByType(‘warlock’))
target = hero.findNearest(hero.findEnemies())
nearestItem = hero.findNearest(hero.findItems())
now = hero.now()
if catapult:
stage = 1
attack(catapult)
elif now < 20:
tactick = 'defend’
stage = 2
moveTo({“x”: 50, “y”: 33})
elif stage < 4:
if target:
stage = 3
attack(target)
else:
moveTo({“x”: 172, “y”: 46})
if hero.pos.x > 170:
stage = 4
elif stage < 5:
if hero.pos.x < 240:
moveTo({“x”: 274, “y”: 35})
tactick = 'defend’
elif nearestItem and hero.distanceTo(nearestItem) < 10:
pickUpNearestItem()
tactick = 'attack’
elif (warlock):
target = warlock
summonTroops()
attack(target)
elif target and target.type != ‘gates’:
attack(target)
elif nearestItem and hero.distanceTo(nearestItem) < 45:
pickUpNearestItem()
tactick = 'defend’
summonTroops()
else:
attack(target)
if hero.pos.x > 290:
stage = 5
tactick = 'attack’
else:
summonTroops()
attack(target)
commandFriends()Preformatted text I dont know how to format code but this is my code and my friends dont follow

Tell us what errors do you have. I think if you can access that lvl you can definetly beat it, did you try to change EQ?

Oh thank you I beat it but now im stuck on circle walking it says incomplete no matter what and this is my code.

var center = new Vector(40, 34);


var partner = this.findByType("peasant")[0];

loop {
   
    var vector = Vector.subtract(partner.pos, center);

  
    var moveToPos = Vector.subtract(center, vector);

     moveToPos.
    this.move(moveToPos);
}

Please post your code according to the FAQ and please line it up correctly. Proper format helps us be able to understand you code as we try to help you.:relaxed: