sweetgum83/scripts/portal/go_secretroom.js

15 lines
492 B
JavaScript
Raw Normal View History

2024-01-19 08:56:28 +00:00
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.isQuestStarted(2335)) {
pi.forceCompleteQuest(2335, 1300002);
pi.giveCharacterExp(5000, pi.getPlayer());
pi.gainItem(4032405, -1);
}
pi.playPortalSound();
pi.warp(106021001, 1);
return true;
}