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

@@ -20,14 +20,15 @@
function isTigunMorphed(ch) {
const BuffStat = Java.type('client.BuffStat');
return ch.getBuffSource(BuffStat.MORPH) == 2210005;
return ch.getBuffSource(BuffStat.MORPH) == 2210005;
}
function enter(pi) {
if(isTigunMorphed(pi.getPlayer())) {
if (isTigunMorphed(pi.getPlayer())) {
return false;
} else {
pi.playPortalSound(); pi.warp(260000300, 7);
pi.playPortalSound();
pi.warp(260000300, 7);
pi.message("You, intruder! You don't have permission to roam the palace! Get out!!");
return true;
}