Files
sweetgum-server/scripts/portal/davy2_hd1.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

13 lines
367 B
JavaScript

var windowTime = 10 * 1000;
function enter(pi) {
var eim = pi.getEventInstance();
var level = eim.getProperty("level");
if(eim.getProperty("stage2b") == "0") {
pi.getMap(925100202).spawnAllMonstersFromMapSpawnList(level, true);
eim.setProperty("stage2b", "1");
}
pi.playPortalSound(); pi.warp(925100202,0);
return true;
}