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,15 +1,16 @@
function enter(pi) {
if(pi.isQuestStarted(2224) || pi.isQuestStarted(2226) || pi.isQuestCompleted(2227)) {
if (pi.isQuestStarted(2224) || pi.isQuestStarted(2226) || pi.isQuestCompleted(2227)) {
var hourDay = pi.getHourOfDay();
if(!((hourDay >= 0 && hourDay < 7) || hourDay >= 17)) {
if (!((hourDay >= 0 && hourDay < 7) || hourDay >= 17)) {
pi.getPlayer().dropMessage(5, "You cannot access this area right now.");
return false;
} else {
pi.playPortalSound(); pi.warp(pi.isQuestCompleted(2227) ? 910100001 : 910100000,"out00");
pi.playPortalSound();
pi.warp(pi.isQuestCompleted(2227) ? 910100001 : 910100000, "out00");
return true;
}
}
pi.getPlayer().dropMessage(5, "You cannot access this area.");
return false;
}