Fixed pet Snail not expiring properly (being removed from inventory when the time's up). Broadcasted code update for most of the missing portal sound effects for portal scripts. It is expected for all scripted portals now to play the sound effect when traversing it.
15 lines
414 B
JavaScript
15 lines
414 B
JavaScript
function enter(pi) {
|
|
if (pi.getQuestStatus(20407) == 2) {
|
|
pi.warp(924010200,0);
|
|
return true;
|
|
} else if (pi.getQuestStatus(20406) == 2) {
|
|
pi.warp(924010100,0);
|
|
return true;
|
|
} else if (pi.getQuestStatus(20404) == 2) {
|
|
pi.playPortalSound(); pi.warp(924010000,0);
|
|
return true;
|
|
} else {
|
|
pi.playerMessage(5, "I shouldn't go here.. it's creepy!");
|
|
return false;
|
|
}
|
|
} |