sweetgum83/scripts/portal/enterGym.js
2024-01-19 03:56:28 -05:00

18 lines
565 B
JavaScript

function enter(pi) {
if (pi.isQuestStarted(21701)) {
pi.playPortalSound();
pi.warp(914010000, 1);
return true;
} else if (pi.isQuestStarted(21702)) {
pi.playPortalSound();
pi.warp(914010100, 1);
return true;
} else if (pi.isQuestStarted(21703)) {
pi.playPortalSound();
pi.warp(914010200, 1);
return true;
} else {
pi.playerMessage(5, "You will be allowed to enter the Penguin Training Ground only if you are receiving a lesson from Puo.");
return false;
}
}