sweetgum83/scripts/portal/obstacle.js
2024-01-19 03:56:28 -05:00

23 lines
566 B
JavaScript

/*
Author: Ronan
Map: Mushroom Castle - Deep Inside Mushroom Forest (106020300)
Right Portal
*/
function enter(pi) {
if (pi.isQuestStarted(100202)) {
pi.playPortalSound();
pi.warp(106020400, 2);
return true;
} else if (pi.hasItem(4000507)) {
pi.gainItem(4000507, -1);
pi.message("You have used a Poison Spore to pass through the barrier.");
pi.playPortalSound();
pi.warp(106020400, 2);
return true;
}
pi.message("The overgrown vines is blocking the way.");
return false;
}