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

22 lines
490 B
JavaScript

/*
By: Kevin
Map: Hidden Chamber - The Nautilus - Stable (912000100)
Quest: Find Fresh Milk (2180)
*/
function enter(pi){
if (pi.isQuestStarted(2180) && (pi.hasItem(4031847) || pi.hasItem(4031848) || pi.hasItem(4031849) || pi.hasItem(4031850))){
if (pi.hasItem(4031850)){
pi.warp(120000103);
return true;
}
else{
pi.getPlayer().dropMessage(5, "Your milk jug is not full...");
return false;
}
}
else{
pi.playPortalSound(); pi.warp(120000103);
return true;
}
}