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

@@ -1,27 +1,28 @@
var mapp = -1;
var map = 0;
function enter(pi) {
if (pi.getQuestStatus(20701) == 1) {
map = 913000000;
map = 913000000;
} else if (pi.getQuestStatus(20702) == 1) {
map = 913000100;
map = 913000100;
} else if (pi.getQuestStatus(20703) == 1) {
map = 913000200;
map = 913000200;
}
if (map > 0) {
if (pi.getPlayerCount(map) == 0) {
var mapp = pi.getMap(map);
mapp.resetPQ();
if (pi.getPlayerCount(map) == 0) {
var mapp = pi.getMap(map);
mapp.resetPQ();
pi.playPortalSound();
pi.warp(map, 0);
pi.warp(map, 0);
return true;
} else {
pi.playerMessage(5, "Someone is already in this map.");
} else {
pi.playerMessage(5, "Someone is already in this map.");
return false;
}
}
} else {
pi.playerMessage(5, "Hall #1 can only be entered if you're engaged in Kiku's Acclimation Training.");
pi.playerMessage(5, "Hall #1 can only be entered if you're engaged in Kiku's Acclimation Training.");
return false;
}
}