Reformat and clean up portal scripts

This commit is contained in:
P0nk
2021-09-09 23:35:59 +02:00
parent d893309b4f
commit a78ca88a02
435 changed files with 2712 additions and 2287 deletions

View File

@@ -4,14 +4,16 @@ function enter(pi) {
if (elevator == null) {
pi.getPlayer().dropMessage(5, "The elevator is under maintenance.");
} else if (elevator.getProperty(pi.getMapId() == 222020100 ? ("goingUp") : ("goingDown")).equals("false")) {
pi.playPortalSound(); pi.warp(pi.getMapId() == 222020100 ? 222020110 : 222020210, 0);
pi.playPortalSound();
pi.warp(pi.getMapId() == 222020100 ? 222020110 : 222020210, 0);
return true;
} else if (elevator.getProperty(pi.getMapId() == 222020100 ? ("goingUp") : ("goingDown")).equals("true")) {
pi.getPlayer().dropMessage(5, "The elevator is currently moving.");
} else {
pi.getPlayer().dropMessage(5, "Dafuq is happening?!");
}
else pi.getPlayer().dropMessage(5, "Dafuq is happening?!");
} catch(e) {
} catch (e) {
pi.getPlayer().dropMessage(5, "Error: " + e);
}
return false;
return false;
}