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.
This commit is contained in:
@@ -7,8 +7,8 @@ function enter(pi) {
|
||||
var jailedTime = pi.getJailTimeLeft();
|
||||
|
||||
if(jailedTime <= 0) {
|
||||
pi.warp(300000010,"in01");
|
||||
return(true);
|
||||
pi.playPortalSound(); pi.warp(300000010,"in01");
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
var seconds = Math.floor(jailedTime / 1000) % 60 ;
|
||||
@@ -16,6 +16,6 @@ function enter(pi) {
|
||||
var hours = (Math.floor(jailedTime / (1000*60*60)) % 24);
|
||||
|
||||
pi.playerMessage(5, "You have been caught in bad behaviour by the Maple POLICE. You've got to stay here for " + hours + " hours " + minutes + " minutes " + seconds + " seconds yet.");
|
||||
return(false);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user