Reformat and clean up portal scripts
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user