Reformat and clean up portal scripts

This commit is contained in:
P0nk
2021-09-09 23:35:59 +02:00
parent d893309b4f
commit a78ca88a02
435 changed files with 2712 additions and 2287 deletions

View File

@@ -4,19 +4,19 @@
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.playPortalSound(); 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;
}
function enter(pi) {
if (pi.isQuestStarted(2180) && (pi.hasItem(4031847) || pi.hasItem(4031848) || pi.hasItem(4031849) || pi.hasItem(4031850))) {
if (pi.hasItem(4031850)) {
pi.playPortalSound();
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;
}
}