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.
12 lines
291 B
JavaScript
12 lines
291 B
JavaScript
function enter(pi) {
|
|
if (pi.getEventInstance().getIntProperty("glpq1") == 0) {
|
|
pi.getEventInstance().dropMessage(5, "This path is currently blocked.");
|
|
return false;
|
|
|
|
} else {
|
|
pi.playPortalSound(); pi.warp(610030200, 0);
|
|
return true;
|
|
}
|
|
}
|
|
|