CPQ 1 CPQ 2 CASAMENTO
This commit is contained in:
8
scripts/portal/MC2revive.js
Normal file
8
scripts/portal/MC2revive.js
Normal file
@@ -0,0 +1,8 @@
|
||||
function enter(pi) {
|
||||
if ( pi.getPlayer().getTeam() == 0 ) {
|
||||
pi.warp( pi.getMapId() - 100);
|
||||
} else {
|
||||
pi.warp( pi.getMapId() - 100);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
10
scripts/portal/MCRevive1.js
Normal file
10
scripts/portal/MCRevive1.js
Normal file
@@ -0,0 +1,10 @@
|
||||
importPackage(Packages.server.maps);
|
||||
|
||||
/*
|
||||
[CelticMS] Monster Carnival Reviving Field 1
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.warp(980000101, 0);
|
||||
return true;
|
||||
}
|
||||
10
scripts/portal/MCRevive2.js
Normal file
10
scripts/portal/MCRevive2.js
Normal file
@@ -0,0 +1,10 @@
|
||||
importPackage(Packages.server.maps);
|
||||
|
||||
/*
|
||||
[CelticMS] Monster Carnival Reviving Field 1
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.warp(980000201, 0);
|
||||
return true;
|
||||
}
|
||||
19
scripts/portal/MCRevive3.js
Normal file
19
scripts/portal/MCRevive3.js
Normal file
@@ -0,0 +1,19 @@
|
||||
importPackage(Packages.server.maps);
|
||||
|
||||
/*
|
||||
[CelticMS] Monster Carnival Reviving Field 1
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
var portal = 0;
|
||||
switch (pi.getPlayer().getTeam()) {
|
||||
case 0:
|
||||
portal = 4;
|
||||
break;
|
||||
case 1:
|
||||
portal = 3;
|
||||
break;
|
||||
}
|
||||
pi.warp(980000301, portal);
|
||||
return true;
|
||||
}
|
||||
19
scripts/portal/MCRevive4.js
Normal file
19
scripts/portal/MCRevive4.js
Normal file
@@ -0,0 +1,19 @@
|
||||
importPackage(Packages.server.maps);
|
||||
|
||||
/*
|
||||
[CelticMS] Monster Carnival Reviving Field 1
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
var portal = 0;
|
||||
switch (pi.getPlayer().getTeam()) {
|
||||
case 0:
|
||||
portal = 4;
|
||||
break;
|
||||
case 1:
|
||||
portal = 3;
|
||||
break;
|
||||
}
|
||||
pi.warp(980000401, portal);
|
||||
return true;
|
||||
}
|
||||
10
scripts/portal/MCRevive5.js
Normal file
10
scripts/portal/MCRevive5.js
Normal file
@@ -0,0 +1,10 @@
|
||||
importPackage(Packages.server.maps);
|
||||
|
||||
/*
|
||||
[CelticMS] Monster Carnival Reviving Field 1
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.warp(980000501, 0);
|
||||
return true;
|
||||
}
|
||||
10
scripts/portal/MCRevive6.js
Normal file
10
scripts/portal/MCRevive6.js
Normal file
@@ -0,0 +1,10 @@
|
||||
importPackage(Packages.server.maps);
|
||||
|
||||
/*
|
||||
[CelticMS] Monster Carnival Reviving Field 1
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.warp(980000601, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -1,28 +1,35 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
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/>.
|
||||
*/
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
importPackage(Packages.server.maps);
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
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/>.
|
||||
*/
|
||||
/*
|
||||
Author: kevintjuh93
|
||||
*/
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getSavedLocation("MIRROR"));
|
||||
var returnMap = pi.getPlayer().getSavedLocation("MONSTER_CARNIVAL");
|
||||
if (returnMap < 0) {
|
||||
returnMap = 102000000; // Just Incase there is no saved location.
|
||||
}
|
||||
var target = pi.getPlayer().getClient().getChannelServer().getMapFactory().getMap(returnMap);
|
||||
pi.getPlayer().changeMap(target);
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user