Files
sweetgum-server/scripts/portal/party3_roomout.js
ronancpl 10dc1f03e7 Pet Snail expiration + Scripted portal sound effects
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.
2018-02-11 21:19:30 -02:00

36 lines
793 B
JavaScript

function enter(pi) {
var exitPortal = 0;
switch(pi.getMapId()) {
case 920010200:
exitPortal = 4;
break;
case 920010300:
exitPortal = 12;
break;
case 920010400:
exitPortal = 5;
break;
case 920010500:
exitPortal = 13;
break;
case 920010600:
exitPortal = 15;
break;
case 920010700:
exitPortal = 14;
break;
case 920011000:
exitPortal = 16;
break;
}
pi.playPortalSound(); pi.warp(920010100, exitPortal);
return true;
}