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

@@ -34,7 +34,8 @@
**/ **/
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(200090000, 4); 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").equals("true")) {
pi.changeMusic("Bgm04/ArabPirate"); pi.changeMusic("Bgm04/ArabPirate");
} }

View File

@@ -34,7 +34,8 @@
**/ **/
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(200090000, 5); 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").equals("true")) {
pi.changeMusic("Bgm04/ArabPirate"); pi.changeMusic("Bgm04/ArabPirate");
} }

View File

@@ -1,4 +1,3 @@
/* /*
[CelticMS] Monster Carnival Reviving Field 1 [CelticMS] Monster Carnival Reviving Field 1
*/ */

View File

@@ -1,4 +1,3 @@
/* /*
[CelticMS] Monster Carnival Reviving Field 1 [CelticMS] Monster Carnival Reviving Field 1
*/ */

View File

@@ -1,4 +1,3 @@
/* /*
[CelticMS] Monster Carnival Reviving Field 1 [CelticMS] Monster Carnival Reviving Field 1
*/ */

View File

@@ -1,4 +1,3 @@
/* /*
[CelticMS] Monster Carnival Reviving Field 1 [CelticMS] Monster Carnival Reviving Field 1
*/ */

View File

@@ -1,4 +1,3 @@
/* /*
[CelticMS] Monster Carnival Reviving Field 1 [CelticMS] Monster Carnival Reviving Field 1
*/ */

View File

@@ -1,4 +1,3 @@
/* /*
[CelticMS] Monster Carnival Reviving Field 1 [CelticMS] Monster Carnival Reviving Field 1
*/ */

View File

@@ -1,4 +1,5 @@
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(674030100,"in00"); pi.playPortalSound();
pi.warp(674030100, "in00");
return true; return true;
} }

View File

@@ -22,7 +22,8 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
pi.playPortalSound(); pi.warp(610010005, "sU6_1"); pi.playPortalSound();
pi.warp(610010005, "sU6_1");
return true; return true;
} }
return false; return false;

View File

@@ -22,7 +22,8 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
pi.playPortalSound(); pi.warp(610010005, "sU6_1"); pi.playPortalSound();
pi.warp(610010005, "sU6_1");
return true; return true;
} }
return false; return false;

View File

@@ -22,7 +22,8 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
pi.playPortalSound(); pi.warp(610010005, "sU6_1"); pi.playPortalSound();
pi.warp(610010005, "sU6_1");
return true; return true;
} }
return false; return false;

View File

@@ -21,6 +21,7 @@
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(610020015, "CC6_A"); pi.playPortalSound();
pi.warp(610020015, "CC6_A");
return true; return true;
} }

View File

@@ -21,6 +21,7 @@
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(610020010, "CC1_A"); pi.playPortalSound();
pi.warp(610020010, "CC1_A");
return true; return true;
} }

View File

@@ -22,7 +22,8 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
pi.playPortalSound(); pi.warp(610020000, "CM1_B"); pi.playPortalSound();
pi.warp(610020000, "CM1_B");
return false; return false;
} }
return true; return true;

View File

@@ -22,7 +22,8 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
pi.playPortalSound(); pi.warp(610020000, "CM1_C"); pi.playPortalSound();
pi.warp(610020000, "CM1_C");
return false; return false;
} }
return true; return true;

View File

@@ -22,7 +22,8 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
pi.playPortalSound(); pi.warp(610020000, "CM1_D"); pi.playPortalSound();
pi.warp(610020000, "CM1_D");
return false; return false;
} }
return true; return true;

View File

@@ -22,7 +22,8 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
pi.playPortalSound(); pi.warp(610020000, "CM1_E"); pi.playPortalSound();
pi.warp(610020000, "CM1_E");
return false; return false;
} }
return true; return true;

View File

@@ -22,7 +22,8 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
pi.playPortalSound(); pi.warp(610020001, "CM2_C"); pi.playPortalSound();
pi.warp(610020001, "CM2_C");
return false; return false;
} }
return true; return true;

View File

@@ -22,7 +22,8 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
pi.playPortalSound(); pi.warp(610020001, "CM2_D"); pi.playPortalSound();
pi.warp(610020001, "CM2_D");
return false; return false;
} }
return true; return true;

View File

@@ -21,7 +21,8 @@
*/ */
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
pi.playPortalSound(); pi.warp(610020001, "CM2_E"); pi.playPortalSound();
pi.warp(610020001, "CM2_E");
return false; return false;
} }
return true; return true;

View File

@@ -22,7 +22,8 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
pi.playPortalSound(); pi.warp(610020001, "CM2_F"); pi.playPortalSound();
pi.warp(610020001, "CM2_F");
return false; return false;
} }
return true; return true;

View File

@@ -22,7 +22,8 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
pi.playPortalSound(); pi.warp(610010004, "U5_1"); pi.playPortalSound();
pi.warp(610010004, "U5_1");
return false; return false;
} }
return true; return true;

View File

@@ -22,7 +22,8 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
pi.playPortalSound(); pi.warp(610010201, "sB2_1"); pi.playPortalSound();
pi.warp(610010201, "sB2_1");
return false; return false;
} }
return true; return true;

View File

@@ -22,7 +22,8 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
pi.playPortalSound(); pi.warp(610010001, "sU2_1"); pi.playPortalSound();
pi.warp(610010001, "sU2_1");
return false; return false;
} }
return true; return true;

View File

@@ -22,7 +22,8 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
pi.playPortalSound(); pi.warp(610010004, "U5_1"); pi.playPortalSound();
pi.warp(610010004, "U5_1");
return false; return false;
} }
return true; return true;

View File

@@ -22,7 +22,8 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
pi.playPortalSound(); pi.warp(610010002, "sU3_1"); pi.playPortalSound();
pi.warp(610010002, "sU3_1");
return false; return false;
} }
return true; return true;

View File

@@ -35,7 +35,8 @@
**/ **/
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(200090010, 4); 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").equals("true")) {
pi.changeMusic("Bgm04/ArabPirate"); pi.changeMusic("Bgm04/ArabPirate");
} }

View File

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

View File

@@ -24,6 +24,7 @@ Vs Pink Bean - Clear stage portal
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(270050000); pi.playPortalSound();
pi.warp(270050000);
return true; return true;
} }

View File

@@ -20,6 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(230040420, "out00"); pi.playPortalSound();
pi.warp(230040420, "out00");
return true; return true;
} }

View File

@@ -24,6 +24,7 @@ Vs Pink Bean - Resurrection stage portal
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(270050100); pi.playPortalSound();
pi.warp(270050100);
return true; return true;
} }

View File

@@ -39,8 +39,7 @@ function enter(pi) {
pi.playerMessage(5, "The battle against the boss has already begun, so you may not enter this place yet."); pi.playerMessage(5, "The battle against the boss has already begun, so you may not enter this place yet.");
return false; return false;
} }
} } else { //this should never appear
else { //this should never appear
pi.playerMessage(5, "You cannot start this battle yet, because either your party is not in the range size, some of your party members are not eligible to attempt it or they are not in this map. If you're having trouble finding party members, try Party Search."); pi.playerMessage(5, "You cannot start this battle yet, because either your party is not in the range size, some of your party members are not eligible to attempt it or they are not in this map. If you're having trouble finding party members, try Party Search.");
return false; return false;
} }

View File

@@ -5,10 +5,12 @@ function enter(pi) {
var fc = eim.getIntProperty("falls"); var fc = eim.getIntProperty("falls");
if (fc >= 3) { if (fc >= 3) {
pi.playPortalSound(); pi.warp(922240200, 0); pi.playPortalSound();
pi.warp(922240200, 0);
} else { } else {
eim.setIntProperty("falls", fc + 1); eim.setIntProperty("falls", fc + 1);
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0); pi.playPortalSound();
pi.warp(pi.getPlayer().getMapId(), 0);
} }
return true; return true;

View File

@@ -5,10 +5,12 @@ function enter(pi) {
var fc = eim.getIntProperty("falls"); var fc = eim.getIntProperty("falls");
if (fc >= 3) { if (fc >= 3) {
pi.playPortalSound(); pi.warp(922240200, 0); pi.playPortalSound();
pi.warp(922240200, 0);
} else { } else {
eim.setIntProperty("falls", fc + 1); eim.setIntProperty("falls", fc + 1);
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0); pi.playPortalSound();
pi.warp(pi.getPlayer().getMapId(), 0);
} }
return true; return true;

View File

@@ -5,10 +5,12 @@ function enter(pi) {
var fc = eim.getIntProperty("falls"); var fc = eim.getIntProperty("falls");
if (fc >= 3) { if (fc >= 3) {
pi.playPortalSound(); pi.warp(922240200, 0); pi.playPortalSound();
pi.warp(922240200, 0);
} else { } else {
eim.setIntProperty("falls", fc + 1); eim.setIntProperty("falls", fc + 1);
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0); pi.playPortalSound();
pi.warp(pi.getPlayer().getMapId(), 0);
} }
return true; return true;

View File

@@ -5,10 +5,12 @@ function enter(pi) {
var fc = eim.getIntProperty("falls"); var fc = eim.getIntProperty("falls");
if (fc >= 3) { if (fc >= 3) {
pi.playPortalSound(); pi.warp(922240200, 0); pi.playPortalSound();
pi.warp(922240200, 0);
} else { } else {
eim.setIntProperty("falls", fc + 1); eim.setIntProperty("falls", fc + 1);
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0); pi.playPortalSound();
pi.warp(pi.getPlayer().getMapId(), 0);
} }
return true; return true;

View File

@@ -21,8 +21,7 @@ function enter(pi) {
pi.playerMessage(5, "The battle against the boss has already begun, so you may not enter this place yet."); pi.playerMessage(5, "The battle against the boss has already begun, so you may not enter this place yet.");
return false; return false;
} }
} } else {
else {
pi.playerMessage(5, "Your party must consist of at least 2 players to attempt the boss."); pi.playerMessage(5, "Your party must consist of at least 2 players to attempt the boss.");
return false; return false;
} }

View File

@@ -3,8 +3,7 @@ function enter(pi) {
if (pi.isQuestStarted(2330) && questProgress < 3) { if (pi.isQuestStarted(2330) && questProgress < 3) {
pi.openNpc(1300013); pi.openNpc(1300013);
} } else {
else{
pi.playPortalSound(); pi.playPortalSound();
pi.warp(106021401, 1); pi.warp(106021401, 1);
} }

View File

@@ -8,8 +8,7 @@ function enter(pi) {
pi.getPlayer().message("Lost the Royal Seal, eh? Worry not! Kevin's code here to save your hide."); pi.getPlayer().message("Lost the Royal Seal, eh? Worry not! Kevin's code here to save your hide.");
if (pi.canHold(4001318)) { if (pi.canHold(4001318)) {
pi.gainItem(4001318, 1); pi.gainItem(4001318, 1);
} } else {
else{
pi.getPlayer().message("Hey, how do you plan to hold this Seal when your inventory is full?"); pi.getPlayer().message("Hey, how do you plan to hold this Seal when your inventory is full?");
} }
} }
@@ -18,8 +17,7 @@ function enter(pi) {
pi.playPortalSound(); pi.playPortalSound();
pi.warp(106021600, 1); pi.warp(106021600, 1);
return true; return true;
} } else if (pi.isQuestStarted(2332) && pi.hasItem(4032388)) {
else if(pi.isQuestStarted(2332) && pi.hasItem(4032388)){
pi.forceCompleteQuest(2332, 1300002); pi.forceCompleteQuest(2332, 1300002);
pi.getPlayer().message("You've found the princess!"); pi.getPlayer().message("You've found the princess!");
pi.giveCharacterExp(4400, pi.getPlayer()); pi.giveCharacterExp(4400, pi.getPlayer());
@@ -46,8 +44,7 @@ function enter(pi) {
return false; return false;
} }
} }
} } else if (pi.isQuestStarted(2333) || (pi.isQuestCompleted(2332) && !pi.isQuestStarted(2333))) {
else if(pi.isQuestStarted(2333) || (pi.isQuestCompleted(2332) && !pi.isQuestStarted(2333))){
var em = pi.getEventManager("MK_PrimeMinister"); var em = pi.getEventManager("MK_PrimeMinister");
var party = pi.getPlayer().getParty(); var party = pi.getPlayer().getParty();
@@ -71,8 +68,7 @@ function enter(pi) {
return false; return false;
} }
} }
} } else {
else{
pi.getPlayer().message("The door seems to be locked. Perhaps I can find a key to open it..."); pi.getPlayer().message("The door seems to be locked. Perhaps I can find a key to open it...");
return false; return false;
} }

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
Zakum PQ portal Zakum PQ portal
*/ */
@@ -34,6 +35,7 @@ function enter(pi) {
return false; return false;
} }
pi.playPortalSound(); pi.warp(211042300); pi.playPortalSound();
pi.warp(211042300);
return true; return true;
} }

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
Zakum Entrance Zakum Entrance
*/ */
@@ -45,6 +46,7 @@ function enter(pi) {
return false; return false;
} }
pi.playPortalSound(); pi.warp(211042400,"west00"); pi.playPortalSound();
pi.warp(211042400, "west00");
return true; return true;
} }

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
* @author: Moogra * @author: Moogra
* @portal: aMatchMove2 * @portal: aMatchMove2
@@ -26,6 +27,7 @@
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(pi.getPlayer().getSavedLocation("MIRROR")); pi.playPortalSound();
pi.warp(pi.getPlayer().getSavedLocation("MIRROR"));
return true; return true;
} }

View File

@@ -20,6 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(670010300, 0); pi.playPortalSound();
pi.warp(670010300, 0);
return true; return true;
} }

View File

@@ -20,6 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(670010301, 0); pi.playPortalSound();
pi.warp(670010301, 0);
return true; return true;
} }

View File

@@ -20,6 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(670010302, 0); pi.playPortalSound();
pi.warp(670010302, 0);
return true; return true;
} }

View File

@@ -20,6 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(670010400, 0); pi.playPortalSound();
pi.warp(670010400, 0);
return true; return true;
} }

View File

@@ -20,6 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(670010500, 0); pi.playPortalSound();
pi.warp(670010500, 0);
return true; return true;
} }

View File

@@ -20,6 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(670010600, 0); pi.playPortalSound();
pi.warp(670010600, 0);
return true; return true;
} }

View File

@@ -26,7 +26,8 @@ function enter(pi) {
var name = pi.getPortal().getName().substring(2, 4); var name = pi.getPortal().getName().substring(2, 4);
var gate = pi.getPlayer().getMap().getReactorByName("gate" + name); var gate = pi.getPlayer().getMap().getReactorByName("gate" + name);
if (gate != null && gate.getState() == 4) { if (gate != null && gate.getState() == 4) {
pi.playPortalSound(); pi.warp(670010600, "gt" + name + "PIB"); pi.playPortalSound();
pi.warp(670010600, "gt" + name + "PIB");
return true; return true;
} else { } else {
pi.message("The gate is not opened yet."); pi.message("The gate is not opened yet.");

View File

@@ -20,6 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(230040420, 0); pi.playPortalSound();
pi.warp(230040420, 0);
return true; return true;
} }

View File

@@ -1,4 +1,5 @@
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(914000100, 1); pi.playPortalSound();
pi.warp(914000100, 1);
return true; return true;
} }

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
@author kevintjuh93 @author kevintjuh93
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
@author kevintjuh93 @author kevintjuh93
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
@author kevintjuh93 @author kevintjuh93
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
@author kevintjuh93 @author kevintjuh93
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
@author kevintjuh93 @author kevintjuh93
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
@author kevintjuh93 @author kevintjuh93
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
@author kevintjuh93 @author kevintjuh93
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
@author kevintjuh93 @author kevintjuh93
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
@author kevintjuh93 @author kevintjuh93
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
@author kevintjuh93 @author kevintjuh93
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
@author kevintjuh93 @author kevintjuh93
*/ */

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
@author kevintjuh93 @author kevintjuh93
*/ */

View File

@@ -10,7 +10,8 @@ function enter(pi) {
pi.teachSkill(20000017, 1, 0, -1); pi.teachSkill(20000017, 1, 0, -1);
pi.teachSkill(20000018, 1, 0, -1); pi.teachSkill(20000018, 1, 0, -1);
//actually nexon does enableActions here :P //actually nexon does enableActions here :P
pi.playPortalSound(); pi.warp(914000200, 1); pi.playPortalSound();
pi.warp(914000200, 1);
return true; return true;
} else { } else {
pi.message("You can only exit after you accept the quest from Athena Pierce, who is to your right."); pi.message("You can only exit after you accept the quest from Athena Pierce, who is to your right.");

View File

@@ -6,6 +6,7 @@ function enter(pi) {
pi.teachSkill(20000014, 1, 0, -1); pi.teachSkill(20000014, 1, 0, -1);
pi.teachSkill(20000015, 1, 0, -1); pi.teachSkill(20000015, 1, 0, -1);
//actually nexon does enableActions here :P //actually nexon does enableActions here :P
pi.playPortalSound(); pi.warp(914000210, 1); pi.playPortalSound();
pi.warp(914000210, 1);
return true; return true;
} }

View File

@@ -4,6 +4,7 @@ function enter(pi) {
//nexon sends updatePlayerStats Stat.AVAILABLESP 0 //nexon sends updatePlayerStats Stat.AVAILABLESP 0
pi.teachSkill(20000016, 1, 0, -1); pi.teachSkill(20000016, 1, 0, -1);
//actually nexon does enableActions here :P //actually nexon does enableActions here :P
pi.playPortalSound(); pi.warp(914000220, 1); pi.playPortalSound();
pi.warp(914000220, 1);
return true; return true;
} }

View File

@@ -20,6 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(980010020, 0); pi.playPortalSound();
pi.warp(980010020, 0);
return true; return true;
} }

View File

@@ -20,6 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(980010000, 0); pi.playPortalSound();
pi.warp(980010000, 0);
return true; return true;
} }

View File

@@ -25,7 +25,8 @@ Agit's hideout (leader of the Sand Bandits)
function enter(pi) { function enter(pi) {
if (pi.isQuestCompleted(3928) && pi.isQuestCompleted(3931) && pi.isQuestCompleted(3934)) { if (pi.isQuestCompleted(3928) && pi.isQuestCompleted(3931) && pi.isQuestCompleted(3934)) {
pi.playPortalSound(); pi.warp(260000201, 1); pi.playPortalSound();
pi.warp(260000201, 1);
return true; return true;
} else { } else {
pi.message("Access restricted to only members of the Sand Bandits team."); pi.message("Access restricted to only members of the Sand Bandits team.");

View File

@@ -27,7 +27,8 @@ function enter(pi) {
if (isTigunMorphed(pi.getPlayer())) { if (isTigunMorphed(pi.getPlayer())) {
return false; return false;
} else { } 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!!"); pi.message("You, intruder! You don't have permission to roam the palace! Get out!!");
return true; return true;
} }

View File

@@ -1,4 +1,5 @@
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(105100000, 2); pi.playPortalSound();
pi.warp(105100000, 2);
return true; return true;
} }

View File

@@ -4,6 +4,7 @@ function enter(pi) {
return false; return false;
} }
pi.gainItem(4001261, 1); pi.gainItem(4001261, 1);
pi.playPortalSound(); pi.warp(105100100,0); pi.playPortalSound();
pi.warp(105100100, 0);
return true; return true;
} }

View File

@@ -1,6 +1,7 @@
function enter(pi) { function enter(pi) {
if (pi.isQuestStarted(2570)) { if (pi.isQuestStarted(2570)) {
pi.playPortalSound(); pi.warp(120000101, 0); pi.playPortalSound();
pi.warp(120000101, 0);
return true; return true;
} }
pi.earnTitle("You still got some stuff to take care of. I can see it in your eyes. Wait...no, those are eye boogers."); pi.earnTitle("You still got some stuff to take care of. I can see it in your eyes. Wait...no, those are eye boogers.");

View File

@@ -20,8 +20,7 @@ function enter(pi) {
pi.playerMessage(5, "The battle against the boss has already begun, so you may not enter this place yet."); pi.playerMessage(5, "The battle against the boss has already begun, so you may not enter this place yet.");
return false; return false;
} }
} } else { //this should never appear
else { //this should never appear
pi.playerMessage(5, "You cannot start this battle yet, because either your party is not in the range size, some of your party members are not eligible to attempt it or they are not in this map. If you're having trouble finding party members, try Party Search."); pi.playerMessage(5, "You cannot start this battle yet, because either your party is not in the range size, some of your party members are not eligible to attempt it or they are not in this map. If you're having trouble finding party members, try Party Search.");
return false; return false;
} }

View File

@@ -1,4 +1,5 @@
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(925000000, 2); pi.playPortalSound();
pi.warp(925000000, 2);
return true; return true;
} }

View File

@@ -5,7 +5,8 @@ function enter(pi) {
pi.getPlayer().dropMessage(5, "You cannot access this area right now."); pi.getPlayer().dropMessage(5, "You cannot access this area right now.");
return false; return false;
} else { } else {
pi.playPortalSound(); pi.warp(pi.isQuestCompleted(2227) ? 910100001 : 910100000,"out00"); pi.playPortalSound();
pi.warp(pi.isQuestCompleted(2227) ? 910100001 : 910100000, "out00");
return true; return true;
} }
} }

View File

@@ -8,6 +8,7 @@ function enter(pi) {
eim.setProperty("stage2b", "1"); eim.setProperty("stage2b", "1");
} }
pi.playPortalSound(); pi.warp(925100202,0); pi.playPortalSound();
pi.warp(925100202, 0);
return true; return true;
} }

View File

@@ -8,6 +8,7 @@ function enter(pi) {
eim.setProperty("stage3b", "1"); eim.setProperty("stage3b", "1");
} }
pi.playPortalSound(); pi.warp(925100302,0); pi.playPortalSound();
pi.warp(925100302, 0);
return true; return true;
} }

View File

@@ -1,11 +1,14 @@
function passedGrindMode(map, eim) { function passedGrindMode(map, eim) {
if(eim.getIntProperty("grindMode") == 0) return true; if (eim.getIntProperty("grindMode") == 0) {
return true;
}
return eim.activatedAllReactorsOnMap(map, 2511000, 2517999); return eim.activatedAllReactorsOnMap(map, 2511000, 2517999);
} }
function enter(pi) { function enter(pi) {
if (pi.getMap().getMonsters().size() == 0 && passedGrindMode(pi.getMap(), pi.getEventInstance())) { if (pi.getMap().getMonsters().size() == 0 && passedGrindMode(pi.getMap(), pi.getEventInstance())) {
pi.playPortalSound(); pi.warp(925100100,0); //next pi.playPortalSound();
pi.warp(925100100, 0); //next
return true; return true;
} else { } else {
pi.playerMessage(5, "The portal is not opened yet."); pi.playerMessage(5, "The portal is not opened yet.");

View File

@@ -2,7 +2,8 @@ function enter(pi) {
try { try {
var eim = pi.getEventInstance(); var eim = pi.getEventInstance();
if (eim != null && eim.getProperty("stage2").equals("3")) { if (eim != null && eim.getProperty("stage2").equals("3")) {
pi.playPortalSound(); pi.warp(925100200,0); //next pi.playPortalSound();
pi.warp(925100200, 0); //next
return true; return true;
} else { } else {
pi.playerMessage(5, "The portal is not opened yet."); pi.playerMessage(5, "The portal is not opened yet.");

View File

@@ -1,11 +1,14 @@
function passedGrindMode(map, eim) { function passedGrindMode(map, eim) {
if(eim.getIntProperty("grindMode") == 0) return true; if (eim.getIntProperty("grindMode") == 0) {
return true;
}
return eim.activatedAllReactorsOnMap(map, 2511000, 2517999); return eim.activatedAllReactorsOnMap(map, 2511000, 2517999);
} }
function enter(pi) { function enter(pi) {
if (pi.getMap().getMonsters().size() == 0 && passedGrindMode(pi.getMap(), pi.getEventInstance())) { if (pi.getMap().getMonsters().size() == 0 && passedGrindMode(pi.getMap(), pi.getEventInstance())) {
pi.playPortalSound(); pi.warp(925100300,0); //next pi.playPortalSound();
pi.warp(925100300, 0); //next
return true; return true;
} else { } else {
pi.playerMessage(5, "The portal is not opened yet."); pi.playerMessage(5, "The portal is not opened yet.");

View File

@@ -1,11 +1,14 @@
function passedGrindMode(map, eim) { function passedGrindMode(map, eim) {
if(eim.getIntProperty("grindMode") == 0) return true; if (eim.getIntProperty("grindMode") == 0) {
return true;
}
return eim.activatedAllReactorsOnMap(map, 2511000, 2517999); return eim.activatedAllReactorsOnMap(map, 2511000, 2517999);
} }
function enter(pi) { function enter(pi) {
if (pi.getMap().getMonsters().size() == 0 && passedGrindMode(pi.getMap(), pi.getEventInstance())) { if (pi.getMap().getMonsters().size() == 0 && passedGrindMode(pi.getMap(), pi.getEventInstance())) {
pi.playPortalSound(); pi.warp(925100400,0); //next pi.playPortalSound();
pi.warp(925100400, 0); //next
return true; return true;
} else { } else {
pi.playerMessage(5, "The portal is not opened yet."); pi.playerMessage(5, "The portal is not opened yet.");

View File

@@ -8,9 +8,15 @@ function enter(pi) {
var boss; var boss;
const LifeFactory = Java.type('server.life.LifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
if(chests == 0) boss = LifeFactory.getMonster(9300119); //lord pirate if (chests == 0) {
else if(chests == 1) boss = LifeFactory.getMonster(9300105); //angry lord pirate boss = LifeFactory.getMonster(9300119);
else boss = LifeFactory.getMonster(9300106); //enraged lord pirate }//lord pirate
else if (chests == 1) {
boss = LifeFactory.getMonster(9300105);
}//angry lord pirate
else {
boss = LifeFactory.getMonster(9300106);
} //enraged lord pirate
boss.changeDifficulty(level, true); boss.changeDifficulty(level, true);
@@ -19,7 +25,8 @@ function enter(pi) {
eim.setProperty("spawnedBoss", "true"); eim.setProperty("spawnedBoss", "true");
} }
pi.playPortalSound(); pi.warp(925100500, 0); pi.playPortalSound();
pi.warp(925100500, 0);
return true; return true;
} else { } else {
pi.playerMessage(5, "The portal is not opened yet."); pi.playerMessage(5, "The portal is not opened yet.");

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
* @author: kevintjuh93, moogra * @author: kevintjuh93, moogra
* @portal: dojang_exit * @portal: dojang_exit
@@ -27,8 +28,11 @@
function enter(pi) { function enter(pi) {
var map = pi.getPlayer().getSavedLocation("MIRROR"); var map = pi.getPlayer().getSavedLocation("MIRROR");
if(map == -1) map = 100000000; if (map == -1) {
map = 100000000;
}
pi.playPortalSound(); pi.warp(map); pi.playPortalSound();
pi.warp(map);
return true; return true;
} }

View File

@@ -25,7 +25,9 @@
function enter(pi) { function enter(pi) {
var currwarp = Date.now(); var currwarp = Date.now();
if(currwarp - pi.getPlayer().getNpcCooldown() < 3000) return false; // this script can be ran twice when passing the dojo portal... strange. if (currwarp - pi.getPlayer().getNpcCooldown() < 3000) {
return false;
} // this script can be ran twice when passing the dojo portal... strange.
pi.getPlayer().setNpcCooldown(currwarp); pi.getPlayer().setNpcCooldown(currwarp);
var gate = pi.getPlayer().getMap().getReactorByName("door"); var gate = pi.getPlayer().getMap().getReactorByName("door");
@@ -53,14 +55,17 @@ function enter(pi) {
} }
} else { } else {
pi.getPlayer().message("You received " + pi.getPlayer().addDojoPointsByMap(pi.getMapId()) + " training points. Your total training points score is now " + pi.getPlayer().getDojoPoints() + "."); pi.getPlayer().message("You received " + pi.getPlayer().addDojoPointsByMap(pi.getMapId()) + " training points. Your total training points score is now " + pi.getPlayer().getDojoPoints() + ".");
pi.playPortalSound(); pi.warp(pi.getPlayer().getMap().getId() + 100, 0); pi.playPortalSound();
pi.warp(pi.getPlayer().getMap().getId() + 100, 0);
} }
} else { } else {
pi.getPlayer().message("You received " + pi.getPlayer().addDojoPointsByMap(pi.getMapId()) + " training points. Your total training points score is now " + pi.getPlayer().getDojoPoints() + "."); pi.getPlayer().message("You received " + pi.getPlayer().addDojoPointsByMap(pi.getMapId()) + " training points. Your total training points score is now " + pi.getPlayer().getDojoPoints() + ".");
pi.playPortalSound(); pi.warp(pi.getPlayer().getMap().getId() + 100, 0); pi.playPortalSound();
pi.warp(pi.getPlayer().getMap().getId() + 100, 0);
} }
} else { } else {
pi.playPortalSound(); pi.warp(925020003, 0); pi.playPortalSound();
pi.warp(925020003, 0);
pi.getPlayer().gainExp(2000 * pi.getPlayer().getDojoPoints(), true, true, true); pi.getPlayer().gainExp(2000 * pi.getPlayer().getDojoPoints(), true, true, true);
} }
return true; return true;

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
Author: Traitor Author: Traitor
Map(s): So Gong's maps Map(s): So Gong's maps
@@ -31,7 +32,8 @@ function enter(pi) {
pi.getPlayer().setFinishedDojoTutorial(); pi.getPlayer().setFinishedDojoTutorial();
pi.getClient().getChannelServer().resetDojo(pi.getPlayer().getMap().getId()); pi.getClient().getChannelServer().resetDojo(pi.getPlayer().getMap().getId());
pi.getClient().getChannelServer().dismissDojoSchedule(pi.getPlayer().getMap().getId(), pi.getParty()); pi.getClient().getChannelServer().dismissDojoSchedule(pi.getPlayer().getMap().getId(), pi.getParty());
pi.playPortalSound(); pi.warp(925020001, 0); pi.playPortalSound();
pi.warp(925020001, 0);
return true; return true;
} else { } else {
pi.getPlayer().message("So Gong: Haha! You're going to run away like a coward? I won't let you get away that easily!"); pi.getPlayer().message("So Gong: Haha! You're going to run away like a coward? I won't let you get away that easily!");

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
* @author: Moogra * @author: Moogra
* @function: Warp character up and award player with dojo points * @function: Warp character up and award player with dojo points
@@ -33,7 +34,9 @@ function enter(pi) {
var stage = Math.floor(pi.getPlayer().getMapId() / 100) % 100; var stage = Math.floor(pi.getPlayer().getMapId() / 100) % 100;
const GameConstants = Java.type('constants.game.GameConstants'); const GameConstants = Java.type('constants.game.GameConstants');
if ((stage - (stage / 6) | 0) == pi.getPlayer().getVanquisherStage() && !GameConstants.isDojoPartyArea(pi.getPlayer().getMapId())) // we can also try 5 * stage / 6 | 0 + 1 if ((stage - (stage / 6) | 0) == pi.getPlayer().getVanquisherStage() && !GameConstants.isDojoPartyArea(pi.getPlayer().getMapId())) // we can also try 5 * stage / 6 | 0 + 1
{
pi.getPlayer().setVanquisherKills(pi.getPlayer().getVanquisherKills() + 1); pi.getPlayer().setVanquisherKills(pi.getPlayer().getVanquisherKills() + 1);
}
} else { } else {
pi.getPlayer().message("There are still some monsters remaining."); pi.getPlayer().message("There are still some monsters remaining.");
} }

View File

@@ -20,6 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(240000100, "east00"); pi.playPortalSound();
pi.warp(240000100, "east00");
return true; return true;
} }

View File

@@ -21,7 +21,8 @@
*/ */
function enter(pi) { function enter(pi) {
if (pi.isQuestCompleted(3706)) { if (pi.isQuestCompleted(3706)) {
pi.playPortalSound(); pi.warp(240040612, "out00"); pi.playPortalSound();
pi.warp(240040612, "out00");
return true; return true;
} else if (pi.isQuestStarted(100203) || pi.getPlayer().haveItem(4001094)) { } else if (pi.isQuestStarted(100203) || pi.getPlayer().haveItem(4001094)) {
var em = pi.getEventManager("NineSpirit"); var em = pi.getEventManager("NineSpirit");

View File

@@ -4,12 +4,14 @@ function enter(pi) {
if (elevator == null) { if (elevator == null) {
pi.getPlayer().dropMessage(5, "The elevator is under maintenance."); pi.getPlayer().dropMessage(5, "The elevator is under maintenance.");
} else if (elevator.getProperty(pi.getMapId() == 222020100 ? ("goingUp") : ("goingDown")).equals("false")) { } else if (elevator.getProperty(pi.getMapId() == 222020100 ? ("goingUp") : ("goingDown")).equals("false")) {
pi.playPortalSound(); pi.warp(pi.getMapId() == 222020100 ? 222020110 : 222020210, 0); pi.playPortalSound();
pi.warp(pi.getMapId() == 222020100 ? 222020110 : 222020210, 0);
return true; return true;
} else if (elevator.getProperty(pi.getMapId() == 222020100 ? ("goingUp") : ("goingDown")).equals("true")) { } else if (elevator.getProperty(pi.getMapId() == 222020100 ? ("goingUp") : ("goingDown")).equals("true")) {
pi.getPlayer().dropMessage(5, "The elevator is currently moving."); pi.getPlayer().dropMessage(5, "The elevator is currently moving.");
} else {
pi.getPlayer().dropMessage(5, "Dafuq is happening?!");
} }
else pi.getPlayer().dropMessage(5, "Dafuq is happening?!");
} catch (e) { } catch (e) {
pi.getPlayer().dropMessage(5, "Error: " + e); pi.getPlayer().dropMessage(5, "Error: " + e);
} }

View File

@@ -20,6 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(920020000, 2); pi.playPortalSound();
pi.warp(920020000, 2);
return true; return true;
} }

View File

@@ -7,16 +7,16 @@
function enter(pi) { function enter(pi) {
if (pi.isQuestStarted(2180) && (pi.hasItem(4031847) || pi.hasItem(4031848) || pi.hasItem(4031849) || pi.hasItem(4031850))) { if (pi.isQuestStarted(2180) && (pi.hasItem(4031847) || pi.hasItem(4031848) || pi.hasItem(4031849) || pi.hasItem(4031850))) {
if (pi.hasItem(4031850)) { if (pi.hasItem(4031850)) {
pi.playPortalSound(); pi.warp(120000103); pi.playPortalSound();
pi.warp(120000103);
return true; return true;
} } else {
else{
pi.getPlayer().dropMessage(5, "Your milk jug is not full..."); pi.getPlayer().dropMessage(5, "Your milk jug is not full...");
return false; return false;
} }
} } else {
else{ pi.playPortalSound();
pi.playPortalSound(); pi.warp(120000103); pi.warp(120000103);
return true; return true;
} }
} }

View File

@@ -1,5 +1,6 @@
function enter(pi) { function enter(pi) {
pi.playPortalSound(); pi.warp(100000201, "out02"); pi.playPortalSound();
pi.warp(100000201, "out02");
pi.playPortalSound(); pi.playPortalSound();
return true; return true;
} }

View File

@@ -1,9 +1,9 @@
function enter(pi) { function enter(pi) {
if (pi.isQuestActive(21747) || pi.isQuestActive(21744) && pi.isQuestCompleted(21745)) { if (pi.isQuestActive(21747) || pi.isQuestActive(21744) && pi.isQuestCompleted(21745)) {
pi.playPortalSound(); pi.warp(925040000,0); pi.playPortalSound();
pi.warp(925040000, 0);
return true; return true;
} } else {
else {
pi.message("You don't have permission to access this area."); pi.message("You don't have permission to access this area.");
return false; return false;
} }

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
Map(s): Empress' Road : Crossroads of Ereve Map(s): Empress' Road : Crossroads of Ereve
Description: Takes you to Training Forest I Description: Takes you to Training Forest I

View File

@@ -37,9 +37,11 @@ function enter(pi) {
return false; return false;
} }
pi.playPortalSound(); pi.warp(108010600 + (10 * jobtype), "out00"); pi.playPortalSound();
pi.warp(108010600 + (10 * jobtype), "out00");
} else { } else {
pi.playPortalSound(); pi.warp(130010010, "out00"); pi.playPortalSound();
pi.warp(130010010, "out00");
} }
return true; return true;
} }

View File

@@ -37,9 +37,11 @@ function enter(pi) {
return false; return false;
} }
pi.playPortalSound(); pi.warp(108010600 + (10 * jobtype), "out00"); pi.playPortalSound();
pi.warp(108010600 + (10 * jobtype), "out00");
} else { } else {
pi.playPortalSound(); pi.warp(130010020, "out00"); pi.playPortalSound();
pi.warp(130010020, "out00");
} }
return true; return true;
} }

View File

@@ -37,9 +37,11 @@ function enter(pi) {
return false; return false;
} }
pi.playPortalSound(); pi.warp(108010600 + (10 * jobtype), "out00"); pi.playPortalSound();
pi.warp(108010600 + (10 * jobtype), "out00");
} else { } else {
pi.playPortalSound(); pi.warp(130010110, "out00"); pi.playPortalSound();
pi.warp(130010110, "out00");
} }
return true; return true;
} }

View File

@@ -37,9 +37,11 @@ function enter(pi) {
return false; return false;
} }
pi.playPortalSound(); pi.warp(108010600 + (10 * jobtype), "out00"); pi.playPortalSound();
pi.warp(108010600 + (10 * jobtype), "out00");
} else { } else {
pi.playPortalSound(); pi.warp(130010120, "out00"); pi.playPortalSound();
pi.warp(130010120, "out00");
} }
return true; return true;
} }

Some files were not shown because too many files have changed in this diff Show More