Lurker News

Comments (235) 72 threads

Earlier comments
YuMS#
LV 20 Math.random = function() {return 1;} map.getPlayer().hasItem = function() {return true;}
resist_futility6 replies#
Any tips on level 15? Once the player is killed what could I possibly do?
alnis#
The level filename is a hint.
cheepin2 replies#
I actually figured something out with this which is weird, because I don't think it has to do with exceptions. I passed in a new object of an undeclared type and just walked across the water, which I can't explain.

Can anyone help?

wingerlang#
I think that's the purpose, the filename says something about "exception".
SheeEttin#
I'm trying with

    player.killedBy(function(){throw new Exception();});
...but then that just means I get killed by "function(){throw new Exception();}".

Edit: never mind, got it. Overriding onCollision helps. :)
https://gist.github.com/anonymous/2868beb0cee19259ebb5

rooodini#
you can close the bracket and inject some more commands… although you don’t have many characters in which to do it.
Lord_DeathMatch1 reply#
I can't figure it out either; i know that if you raise an exception in the area you can edit, it gets caught a few levels up where the toString representation of whatever you threw is parsed into status update info, with newlines interpreted correctly. But after that, even if you input chars that could build a bridge, it's not persisted to the next attempt :/
m_myers1 reply#
After a lot of trial, error, and attempted code injection, I found that it was much easier than I had expected. It can in fact be solved with a single character.
Lord_DeathMatch#
Hmm. Damn.
9193-on#
Overriding a certain method may help ;)
AStack0verflow#
Remember in of the earlier levels when who-ever is talking to us, said that the name of the level could come in handy? Try using that ;)
pacofvf2 replies#
:'( I'm stuck at crispsContest.js lvl
aaronem#
So was I, until I took another close look at the code. It's easy to miss the part you can edit.
majugi1 reply#
This level was driving me crazy (mostly because of the character limit). The solution that I found is kind of silly: it turns out the removeItem function is dumber than you probably think it is.
SheeEttin2 replies#
A good solution would be to remove an invalid item, and the function should silently try to remove the invalid item, but still allow passage. For some reason, even when you have the green key, but try to remove an invalid item, it still doesn't let you through, despite apparently returning false (passable).

Additionally it doesn't support injection there, so while "player.removeItem('greenKey'); player.additem('greenKey');" should work, it says "TypeError: undefined is not a function".

9193-on#
I approached it like this:

player.removeItem('greenKey'); return 0;} if(1==1){('');
Full link: https://gist.github.com/anonymous/c78b439d8f2369e03f68
Basically, this let's you delete the green item once. After that, it makes sure that return true is never reached (because of the 1==1), so next passages through green are allowed. Kinda liked the sneaky (''); myself :P

Load more comments