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,15 @@
function enter(pi) {
if(!pi.isQuestCompleted(2335) && !(pi.isQuestStarted(2335) && pi.hasItem(4032405))){
pi.getPlayer().message("The door is locked securely. I will need a key if I want to go in there.");
return false;
}
if (!pi.isQuestCompleted(2335) && !(pi.isQuestStarted(2335) && pi.hasItem(4032405))) {
pi.getPlayer().message("The door is locked securely. I will need a key if I want to go in there.");
return false;
}
if(pi.isQuestStarted(2335)){
pi.forceCompleteQuest(2335, 1300002);
pi.giveCharacterExp(5000, pi.getPlayer());
pi.gainItem(4032405, -1);
}
pi.playPortalSound();
pi.warp(106021001, 1);
return true;
if (pi.isQuestStarted(2335)) {
pi.forceCompleteQuest(2335, 1300002);
pi.giveCharacterExp(5000, pi.getPlayer());
pi.gainItem(4032405, -1);
}
pi.playPortalSound();
pi.warp(106021001, 1);
return true;
}