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

@@ -24,18 +24,20 @@
* @purpose Warps to the Forgotten Passage and gives you the needed item for the resurrection.
*/
function enter(pi) {
if(pi.isQuestStarted(6134)) {
if(pi.canHold(4031448)) {
if (pi.isQuestStarted(6134)) {
if (pi.canHold(4031448)) {
pi.gainItem(4031448, 1);
pi.playPortalSound(); pi.warp(220070400, 3);
pi.playPortalSound();
pi.warp(220070400, 3);
return true;
} else {
pi.getPlayer().message("Make room on your ETC to receive the quest item.");
return false;
}
} else {
pi.playPortalSound(); pi.warp(220070400, 3);
pi.playPortalSound();
pi.warp(220070400, 3);
return true;
}
}