28 lines
759 B
JavaScript
28 lines
759 B
JavaScript
|
var mapp = -1;
|
||
|
var map = 0;
|
||
|
|
||
|
function enter(pi) {
|
||
|
if (pi.getQuestStatus(20701) == 1) {
|
||
|
map = 913000000;
|
||
|
} else if (pi.getQuestStatus(20702) == 1) {
|
||
|
map = 913000100;
|
||
|
} else if (pi.getQuestStatus(20703) == 1) {
|
||
|
map = 913000200;
|
||
|
}
|
||
|
if (map > 0) {
|
||
|
if (pi.getPlayerCount(map) == 0) {
|
||
|
var mapp = pi.getMap(map);
|
||
|
mapp.resetPQ();
|
||
|
|
||
|
pi.playPortalSound();
|
||
|
pi.warp(map, 0);
|
||
|
return true;
|
||
|
} 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.");
|
||
|
return false;
|
||
|
}
|
||
|
}
|