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