Reformat and clean up portal scripts
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user