Needs helps for Hitman

I can move to the last x mark but i don’t have any backstab weapon and i only have 169 gems, so please help me to complete is level without the backstab weapon, thanks.

Can you please post your code?

If you can post your code that would be great.

image

ef waitFor(abilityName):
    while True:
        if hero.isReady(abilityName):
            break

waitFor("phase-shift")
hero.phaseShift()
# Make sure that hero doesn't get stuck.
hero.moveXY(12, 62)
hero.moveXY(60, 62)
hero.moveXY(60, 56)

# Wait until "phase-shift" is ready, to use it: 
waitFor("phase-shift")
hero.phaseShift()
# Move to the next mark:
hero.moveXY(44, 17)

# Wait again, then use phaseShift and move:
waitFor("phase-shift")
hero.phaseShift()
hero.moveXY(6, 32)

# Wait, then use "phase-shift" to defeat the Witch with one hit:
waitFor("phase-shift")
hero.phaseShift()
hero.moveXY(6, 38)
Yzzrith = hero.findNearestEnemy()
hero.attack("Yzzrith")


image
you don’t need quotes when you already defined a variable

What do you mean you don’t need quotes when you already defined a variable
?

when you define a variable for example

enemy = hero.findNearestEnemy()
if enemy:
    hero.attack("enemy")

and if there is no unit named enemy it will return an error
saying that there is no one named enemy.

1 Like

and u wrote ef not def

Already correct that

i would recommend using backstab (bone dagger is recomended) as it can pack a real punch just get behind the witch and boom! its dead.

As I say I don’t have a backstab weapon.

please post your equipment and gems please

How? Do you do that?

![image|690x331](upload://82wMY0Z4NzFUhRZkUrMILVAaYOM.jpeg)

do you have the bone dagger?

No, i have no backstab weapon.

or precision rifle it has 158.4 dps?

But i have the precision rifle 158.4DPs

how much health does the witch has?