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,22 +20,22 @@
*/
/**
-- Odin JavaScript --------------------------------------------------------------------------------
Portal - To get into Ariant Castle
-- By ---------------------------------------------------------------------------------------------
Jayd
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Jayd
---------------------------------------------------------------------------------------------------
**/
-- Odin JavaScript --------------------------------------------------------------------------------
Portal - To get into Ariant Castle
-- By ---------------------------------------------------------------------------------------------
Jayd
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Jayd
---------------------------------------------------------------------------------------------------
**/
function enter(pi) {
if (pi.getPlayer().haveItem(4031582) == true) {
pi.playPortalSound();
pi.warp(260000301, 5);
return true;
} else {
pi.playerMessage(5, "You can enter only if you have a Entry Pass to the Palace.");
return false;
}
if (pi.getPlayer().haveItem(4031582) == true) {
pi.playPortalSound();
pi.warp(260000301, 5);
return true;
} else {
pi.playerMessage(5, "You can enter only if you have a Entry Pass to the Palace.");
return false;
}
}