[SOLVED]I need help with yak rampage. please advise

this is the main problem:


I freeze and get rushed and it says I’m casting invisibility. this happens immediately after I finish being invisible, and lasts until I get killed. this is my gear:
image
my code is here:


while True:
    flag = hero.findFlag("green")

    if flag and hero.isPathClear(hero.pos, flag.pos):
        hero.move(flag.pos)
    elif flag and hero.isReady("jump"):
        hero.jumpTo(flag.pos)
    
    if pet.isReady("shape-shift") and not hero.hasEffect("hide"):
        pet.shapeShift()
    elif hero.isReady("invisibility") and not pet.hasEffect("shape-shift"):
        hero.cast("invisibility", hero)
    elif hero.isReady("phase-shift"):
        hero.phaseShift()
   

if anyone can help, that’d be great.

were do you get the hide ability and you don’t need really fancy hero’s I did it with alehandro you just need the blue fox to shape shift nothing else in the sentence just move to the flag not jump

I tried that, but a flag keeps spawning in a really bad spot, without me placing it. then I fail to get ot it and die. you’ve solved my first problem, but created another.

try and pick up the flag it is a lot faster and smoother

    elif hero.isReady("invisibility") and not pet.hasEffect("shape-shift"):
        hero.cast("invisibility", hero)
    elif hero.isReady("phase-shift"):
        hero.phaseShift()

change the pet.hasEffect into hero.hasEffect @_Codemaster

soooooo cloooooooose!
image

Plus, USE BLINK IT IS THE MOST IMPORTANT THING. (sorry for the caps)

thank you!!! I used shape shift, invisibility, and the usual flags, and it worked!!!

okay just be careful the bull might hit you with the armor