# [SOLVED] The Wizard's Door Help Needed

Hey guys sorry I haven’t been on in a while. Seventh Grade can take up a lot of your time and any other free time. First of all I want to give a shout-out to @Deadpool198, @Anna, @twenty-one21, and @Gamestack for all of the likes. Thank you so much.

Ok so here is my issue. I believe there is a bug in the Wizard’s Door in Backwoods forest. I have passed the level running it many times however when I submit it, the numbers and variables change. Its basically like I am repeating the level but cannot officially pass it.
Here is my code:

``````# Move to Laszlo and get his secret number.
hero.moveXY(30, 13)
las = hero.findNearestFriend().getSecret()

# Add 7 to Laszlo's number to get Erzsebet's number.
# Move to Erzsebet and say her magic number.
erz = las + 7
hero.moveXY(17, 26)
hero.say(erz)

# Divide Erzsebet's number by 4 to get Simonyi's number.
sim = erz / 4
hero.moveXY(30, 39)
hero.say(sim)
# Go to Simonyi and tell him his number.
# Multiply Simonyi's number by Laszlo's to get Agata's number.
aga = sim * 7
hero.moveXY(43, 26)
hero.say(aga)
# Go to Agata and tell her her number.

``````

Again thanks for the help and for the 's everyone.

5 Likes

Since it says to multiply sim’s # by las’s number, do `aga=sim*las` Because las’s number is random, and there is no way to determine that it is always a digit 7.

3 Likes

Thank you so much!!! It finally worked. It did change the values but my code was a success. Thanks you @Chaboi_3000. This level stumped me for like 6 months. (Hopefully admitting that didn’t make me look bad ). Thank you again!!!

4 Likes

you should also delete the code posted above, as others could use that as a solution.

3 Likes

No, it’s the wrong code. XD

2 Likes

yah, but all you need is that code and add your way to fix that.

1 Like

how did you do it i still can’t get it,it keeps on changing every time i press submit

Please post your code according to the FAQ. I will try my best to help. Also additional info would be helpful.

If you copied his upper code, it won’t work. he said that himself.

this is the right code

Mod edit: Please do not post final solutions.

Mod edit: Please do not post final solutions.

thanks for the help and that is a bug that is really annoying

There’s something that happens every time I try to submit. The number changes every single time. Is there a way to fix it?

Never mind, I got it.

this code doesnt work for me. Agata just kills me everytime i say aga. Plz help!!!

That’s not supposed to be working code, please write some of your own code, post it on the forum formatted and then I can help you with it.
Thanks
Danny

hey i got it never mind thanks tho danny

Hello.
i need a little help with my code i put in

ok here it is:
hero.moveXY(30, 13)
las = hero.findNearestFriend().getSecret()

erz = las + 7
hero.moveXY(17, 26)
hero.say(erz)

sim = erz/4
hero.moveXY(30, 39)
hero.say(“sim”)
aga = sim las
hero.moveXY(43, 26)
hero.say(“las”)