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,29 +1,29 @@
function enter(pi) {
var mapid = pi.getPlayer().getMap().getId();
if (mapid == 103040410 && pi.isQuestCompleted(2287)) {
pi.playPortalSound();
pi.warp(103040420, "right00");
return true;
pi.playPortalSound();
pi.warp(103040420, "right00");
return true;
} else if (mapid == 103040420 && pi.isQuestCompleted(2288)) {
pi.playPortalSound();
pi.warp(103040430, "right00");
return true;
pi.playPortalSound();
pi.warp(103040430, "right00");
return true;
} else if (mapid == 103040410 && pi.isQuestStarted(2287)) {
pi.playPortalSound();
pi.warp(103040420, "right00");
return true;
pi.playPortalSound();
pi.warp(103040420, "right00");
return true;
} else if (mapid == 103040420 && pi.isQuestStarted(2288)) {
pi.playPortalSound();
pi.warp(103040430, "right00");
return true;
pi.playPortalSound();
pi.warp(103040430, "right00");
return true;
} else {
if (mapid == 103040440 || mapid == 103040450) {
if (mapid == 103040440 || mapid == 103040450) {
pi.playPortalSound();
pi.warp(mapid + 10, "right00");
return true;
}
pi.getPlayer().dropMessage(5, "You cannot access this area.");
return false;
}
pi.getPlayer().dropMessage(5, "You cannot access this area.");
return false;
}
}