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
332 B
JavaScript
12 lines
332 B
JavaScript
function enter(pi) {
|
|
if (pi.isQuestActive(2324)) {
|
|
var player = pi.getPlayer();
|
|
player.gainExp(3300 * player.getExpRate());
|
|
|
|
pi.forceCompleteQuest(2324);
|
|
pi.removeAll(2430015);
|
|
pi.playerMessage(5, "Quest complete.");
|
|
}
|
|
pi.playPortalSound(); pi.warp(106020501,0);
|
|
return true;
|
|
} |