Source for my MapleSolaxiaV2 (v83 MapleStory).
This commit is contained in:
ronancpl
2015-11-02 23:17:21 -02:00
parent 324982e94f
commit 972517e7b2
1675 changed files with 261831 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
function enter(pi) {
try {
var elevator = pi.getEventManager("elevator");
if (elevator == null) {
pi.getPlayer().dropMessage(5, "The elevator is under maintenance.");
} else if (elevator.getProperty(pi.getMapId() == 222020100 ? ("goingUp") : ("goingDown")).equals("false")) {
pi.warp(pi.getMapId() == 222020100 ? 222020110 : 222020210, 0);
//elevator.getIv().invokeFunction(pi.getMapId() == 222020110 ? "goUp" : "goDown");
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?!");
} catch(e) {
pi.getPlayer().dropMessage(5, "Error: " + e);
}
return false;
}