Fix various other scripts with broken comparisons

This commit is contained in:
P0nk
2022-08-05 22:33:40 +02:00
parent fcdf3d6e1e
commit bfb2c1cb3d
24 changed files with 33 additions and 33 deletions

View File

@@ -36,7 +36,7 @@
function enter(pi) {
pi.playPortalSound();
pi.warp(200090000, 4);
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog") === "true") {
pi.changeMusic("Bgm04/ArabPirate");
}
return true;

View File

@@ -36,7 +36,7 @@
function enter(pi) {
pi.playPortalSound();
pi.warp(200090000, 5);
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog") === "true") {
pi.changeMusic("Bgm04/ArabPirate");
}
return true;

View File

@@ -37,7 +37,7 @@
function enter(pi) {
pi.playPortalSound();
pi.warp(200090010, 4);
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog") === "true") {
pi.changeMusic("Bgm04/ArabPirate");
}
return true;

View File

@@ -37,7 +37,7 @@
function enter(pi) {
pi.playPortalSound();
pi.warp(200090010, 5);
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog").equals("true")) {
if (pi.getPlayer().getClient().getChannelServer().getEventSM().getEventManager("Boats").getProperty("haveBalrog") === "true") {
pi.changeMusic("Bgm04/ArabPirate");
}
return true;

View File

@@ -1,7 +1,7 @@
function enter(pi) {
try {
var eim = pi.getEventInstance();
if (eim != null && eim.getProperty("stage2").equals("3")) {
if (eim != null && eim.getProperty("stage2") === "3") {
pi.playPortalSound();
pi.warp(925100200, 0); //next
return true;

View File

@@ -30,7 +30,7 @@ function enter(pi) {
if (pi.getPlayer().getMap().getReactorByName("kinggate").getState() == 1) {
pi.playPortalSound();
pi.warp(990000900, 2);
if (pi.getPlayer().getEventInstance().getProperty("boss") != null && pi.getPlayer().getEventInstance().getProperty("boss").equals("true")) {
if (pi.getPlayer().getEventInstance().getProperty("boss") != null && pi.getPlayer().getEventInstance().getProperty("boss") === "true") {
pi.changeMusic("Bgm10/Eregos");
}
return true;

View File

@@ -30,7 +30,7 @@ function enter(pi) {
if (pi.getPlayer().getMap().getReactorByName("kinggate").getState() == 1) {
pi.playPortalSound();
pi.warp(990000900, 1);
if (pi.getPlayer().getEventInstance().getProperty("boss") != null && pi.getPlayer().getEventInstance().getProperty("boss").equals("true")) {
if (pi.getPlayer().getEventInstance().getProperty("boss") != null && pi.getPlayer().getEventInstance().getProperty("boss") === "true") {
pi.changeMusic("Bgm10/Eregos");
}
return true;