Pet Snail expiration + Scripted portal sound effects

Fixed pet Snail not expiring properly (being removed from inventory when the time's up).
Broadcasted code update for most of the missing portal sound effects for portal scripts. It is expected for all scripted portals now to play the sound effect when traversing it.
This commit is contained in:
ronancpl
2018-02-11 21:19:30 -02:00
parent 2d49c322e1
commit 10dc1f03e7
300 changed files with 425 additions and 407 deletions

View File

@@ -781,4 +781,8 @@ Resolvido possibilidade de bug com inconsistência de dados ao tentar salvar na
Aplicado diversas pequenas correções em alguns drops de quests e métodos de eventos. Aplicado diversas pequenas correções em alguns drops de quests e métodos de eventos.
Quests expiráveis agora são devidamente canceladas ao entrar no MTS ou cash shop. Quests expiráveis agora são devidamente canceladas ao entrar no MTS ou cash shop.
Corrigido problemas com itens que garantem proteção contra queda de HP em certos mapas (el nath, aqua road) garantindo proteção em mapas onde não deveriam garantir. Corrigido problemas com itens que garantem proteção contra queda de HP em certos mapas (el nath, aqua road) garantindo proteção em mapas onde não deveriam garantir.
Adicionado novos scrolls à venda no Spindle. Adicionado novos scrolls à venda no Spindle.
11 Fevereiro 2018,
Corrigido bug com pet Snail sendo inexpirável (deveria ter tempo de vida de 5 horas).
Adicionado efeito de som ao atravessar portais para a maioria dos scripts de portais.

View File

@@ -34,7 +34,7 @@
**/ **/
function enter(pi) { function enter(pi) {
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,7 @@
**/ **/
function enter(pi) { function enter(pi) {
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

@@ -22,7 +22,7 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
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,7 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
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,7 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
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,6 @@
*/ */
function enter(pi) { function enter(pi) {
pi.warp(610020015, "CC6_A"); pi.playPortalSound(); pi.warp(610020015, "CC6_A");
return true; return true;
} }

View File

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

View File

@@ -22,7 +22,7 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
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,7 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
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,7 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
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,7 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
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,7 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
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,7 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
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,7 @@
*/ */
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
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,7 @@ F/*
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992039)) { if (pi.hasItem(3992039)) {
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,7 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
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,7 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
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,7 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
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,7 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
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,7 @@
function enter(pi) { function enter(pi) {
if (pi.hasItem(3992040)) { if (pi.hasItem(3992040)) {
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,7 @@
**/ **/
function enter(pi) { function enter(pi) {
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,7 +35,7 @@
**/ **/
function enter(pi) { function enter(pi) {
pi.warp(200090010, 5); 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").equals("true"))
pi.changeMusic("Bgm04/ArabPirate"); pi.changeMusic("Bgm04/ArabPirate");
return true; return true;

View File

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

View File

@@ -20,6 +20,6 @@
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.warp(230040420, "out00"); pi.playPortalSound(); pi.warp(230040420, "out00");
return true; return true;
} }

View File

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

View File

@@ -32,6 +32,6 @@ function enter(pi) {
} }
} }
} }
pi.warp(220080001, "st00"); pi.playPortalSound(); pi.warp(220080001, "st00");
return true; return true;
} }

View File

@@ -5,7 +5,7 @@ function enter(pi) {
pi.warp(922240200, 0); pi.warp(922240200, 0);
pi.getPlayer().cancelEffect(2360002); pi.getPlayer().cancelEffect(2360002);
} else } else
pi.warp(pi.getPlayer().getMapId(), 0); pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
return true; return true;
} }

View File

@@ -5,7 +5,7 @@ function enter(pi) {
pi.warp(922240200, 0); pi.warp(922240200, 0);
pi.getPlayer().cancelEffect(2360002); pi.getPlayer().cancelEffect(2360002);
} else } else
pi.warp(pi.getPlayer().getMapId(), 0); pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
return true; return true;
} }

View File

@@ -5,7 +5,7 @@ function enter(pi) {
pi.warp(922240200, 0); pi.warp(922240200, 0);
pi.getPlayer().cancelEffect(2360002); pi.getPlayer().cancelEffect(2360002);
} else } else
pi.warp(pi.getPlayer().getMapId(), 0); pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
return true; return true;
} }

View File

@@ -5,7 +5,7 @@ function enter(pi) {
pi.warp(922240200, 0); pi.warp(922240200, 0);
pi.getPlayer().cancelEffect(2360002); pi.getPlayer().cancelEffect(2360002);
} else } else
pi.warp(pi.getPlayer().getMapId(), 0); pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
return true; return true;
} }

View File

@@ -34,6 +34,6 @@ function enter(pi) {
return false; return false;
} }
pi.warp(211042300); pi.playPortalSound(); pi.warp(211042300);
return true; return true;
} }

View File

@@ -34,6 +34,6 @@ function enter(pi) {
return false; return false;
} }
pi.warp(211042400,"west00"); pi.playPortalSound(); pi.warp(211042400,"west00");
return true; return true;
} }

View File

@@ -26,6 +26,6 @@
*/ */
function enter(pi) { function enter(pi) {
pi.warp(pi.getPlayer().getSavedLocation("MIRROR")); pi.playPortalSound(); pi.warp(pi.getPlayer().getSavedLocation("MIRROR"));
return true; return true;
} }

View File

@@ -20,6 +20,6 @@
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.warp(670010300, 0); pi.playPortalSound(); pi.warp(670010300, 0);
return true; return true;
} }

View File

@@ -20,6 +20,6 @@
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.warp(670010301, 0); pi.playPortalSound(); pi.warp(670010301, 0);
return true; return true;
} }

View File

@@ -20,6 +20,6 @@
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.warp(670010302, 0); pi.playPortalSound(); pi.warp(670010302, 0);
return true; return true;
} }

View File

@@ -20,6 +20,6 @@
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.warp(670010400, 0); pi.playPortalSound(); pi.warp(670010400, 0);
return true; return true;
} }

View File

@@ -20,6 +20,6 @@
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.warp(670010500, 0); pi.playPortalSound(); pi.warp(670010500, 0);
return true; return true;
} }

View File

@@ -20,6 +20,6 @@
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.warp(670010600, 0); pi.playPortalSound(); pi.warp(670010600, 0);
return true; return true;
} }

View File

@@ -26,7 +26,7 @@ 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.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,6 @@
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.warp(230040420, 0); pi.playPortalSound(); pi.warp(230040420, 0);
return true; return true;
} }

View File

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

View File

@@ -10,7 +10,7 @@ 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.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,6 @@ 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.warp(914000210, 1); pi.playPortalSound(); pi.warp(914000210, 1);
return true; return true;
} }

View File

@@ -4,6 +4,6 @@ function enter(pi) {
//nexon sends updatePlayerStats MapleStat.AVAILABLESP 0 //nexon sends updatePlayerStats MapleStat.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.warp(914000220, 1); pi.playPortalSound(); pi.warp(914000220, 1);
return true; return true;
} }

View File

@@ -20,6 +20,6 @@
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.warp(980010020, 0); pi.playPortalSound(); pi.warp(980010020, 0);
return true; return true;
} }

View File

@@ -20,6 +20,6 @@
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.warp(980010000, 0); pi.playPortalSound(); pi.warp(980010000, 0);
return true; return true;
} }

View File

@@ -25,7 +25,7 @@ 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.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

@@ -28,7 +28,7 @@ function enter(pi) {
if(isTigunMorphed(pi.getPlayer())) { if(isTigunMorphed(pi.getPlayer())) {
return false; return false;
} else { } else {
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,4 @@
function enter(pi) { function enter(pi) {
pi.warp(105100000, 2); pi.playPortalSound(); pi.warp(105100000, 2);
return(true); return true;
} }

View File

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

View File

@@ -1,6 +1,6 @@
function enter(pi) { function enter(pi) {
if (pi.isQuestStarted(2570)) { if (pi.isQuestStarted(2570)) {
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

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

View File

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

View File

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

View File

@@ -5,10 +5,10 @@ function passedGrindMode(map, eim) {
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.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.");
return(false); return false;
} }
} }

View File

@@ -2,15 +2,15 @@ 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.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.");
return(false); return false;
} }
} catch(e) { } catch(e) {
pi.playerMessage(5, "Error: " + e); pi.playerMessage(5, "Error: " + e);
} }
return(false); return false;
} }

View File

@@ -5,10 +5,10 @@ function passedGrindMode(map, eim) {
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.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.");
return(false); return false;
} }
} }

View File

@@ -5,10 +5,10 @@ function passedGrindMode(map, eim) {
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.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.");
return(false); return false;
} }
} }

View File

@@ -19,10 +19,10 @@ function enter(pi) {
eim.setProperty("spawnedBoss", "true"); eim.setProperty("spawnedBoss", "true");
} }
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.");
return(false); return false;
} }
} }

View File

@@ -29,6 +29,6 @@ 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.warp(map); pi.playPortalSound(); pi.warp(map);
return true; return true;
} }

View File

@@ -60,7 +60,7 @@ function enter(pi) {
pi.warp(pi.getPlayer().getMap().getId() + 100, 0); pi.warp(pi.getPlayer().getMap().getId() + 100, 0);
} }
} else { } else {
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

@@ -29,7 +29,7 @@ function enter(pi) {
if (pi.getPlayer().getMap().getMonsterById(9300216) != null) { if (pi.getPlayer().getMap().getMonsterById(9300216) != null) {
pi.getPlayer().enteredScript("dojang_Msg", pi.getPlayer().getMap().getId()); pi.getPlayer().enteredScript("dojang_Msg", pi.getPlayer().getMap().getId());
pi.getPlayer().setFinishedDojoTutorial(); pi.getPlayer().setFinishedDojoTutorial();
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

@@ -20,6 +20,6 @@
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.warp(240000100, "east00"); pi.playPortalSound(); pi.warp(240000100, "east00");
return true; return true;
} }

View File

@@ -20,6 +20,6 @@
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.warp(240040611, "out00"); pi.playPortalSound(); pi.warp(240040611, "out00");
return true; return true;
} }

View File

@@ -4,7 +4,7 @@ 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.warp(pi.getMapId() == 222020100 ? 222020110 : 222020210, 0); pi.playPortalSound(); pi.warp(pi.getMapId() == 222020100 ? 222020110 : 222020210, 0);
//elevator.getIv().invokeFunction(pi.getMapId() == 222020110 ? "goUp" : "goDown"); //elevator.getIv().invokeFunction(pi.getMapId() == 222020110 ? "goUp" : "goDown");
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")) {

View File

@@ -20,6 +20,6 @@
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.warp(920020000, 0); pi.playPortalSound(); pi.warp(920020000, 0);
return true; return true;
} }

View File

@@ -16,7 +16,7 @@ function enter(pi){
} }
} }
else{ else{
pi.warp(120000103); pi.playPortalSound(); pi.warp(120000103);
return true; return true;
} }
} }

View File

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

View File

@@ -1,6 +1,6 @@
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.warp(925040000,0); pi.playPortalSound(); pi.warp(925040000,0);
return true; return true;
} }
else { else {

View File

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

View File

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

View File

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

View File

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

View File

@@ -39,7 +39,7 @@ function enter(pi) {
pi.warp(108010600 + (10 * jobtype), "east00"); pi.warp(108010600 + (10 * jobtype), "east00");
} else { } else {
pi.warp(130020000, "east00"); pi.playPortalSound(); pi.warp(130020000, "east00");
} }
return true; return true;
} }

View File

@@ -3,7 +3,7 @@ function enter(pi) {
pi.warp(105070300,3); pi.warp(105070300,3);
return true; return true;
} else if(pi.isQuestStarted(21734)) { } else if(pi.isQuestStarted(21734)) {
pi.warp(910510100,0); pi.playPortalSound(); pi.warp(910510100,0);
return true; return true;
} else { } else {
pi.message("An ominous power prevents you from passing here."); pi.message("An ominous power prevents you from passing here.");

View File

@@ -1,6 +1,6 @@
function enter(pi) { function enter(pi) {
if(pi.isQuestCompleted(20730) || pi.isQuestCompleted(21734)) { // puppeteer defeated, newfound secret path if(pi.isQuestCompleted(20730) || pi.isQuestCompleted(21734)) { // puppeteer defeated, newfound secret path
pi.warp(105040201,2); pi.playPortalSound(); pi.warp(105040201,2);
return true; return true;
} }

View File

@@ -16,7 +16,7 @@ function enter(pi) {
return false; return false;
} }
} else { } else {
pi.warp(200060001,2); pi.playPortalSound(); pi.warp(200060001,2);
return true; return true;
} }
} }

View File

@@ -23,6 +23,6 @@ function enter(pi) {
if (pi.getPlayer().getJob().getId() == 2000 && !pi.isQuestCompleted(21014)) if (pi.getPlayer().getJob().getId() == 2000 && !pi.isQuestCompleted(21014))
pi.warp(140000000, 1); pi.warp(140000000, 1);
else else
pi.warp(140000000, "west00"); pi.playPortalSound(); pi.warp(140000000, "west00");
return true; return true;
} }

View File

@@ -33,7 +33,7 @@ function enter(pi) {
pi.removeAll(4032100); pi.removeAll(4032100);
var rand = Math.floor(Math.random() * maps.length); var rand = Math.floor(Math.random() * maps.length);
pi.warp(maps[rand], 0); pi.playPortalSound(); pi.warp(maps[rand], 0);
return true; return true;
} else { } else {
return false; return false;

View File

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

View File

@@ -6,7 +6,7 @@ function enter(pi) {
pi.warp(924010100,0); pi.warp(924010100,0);
return true; return true;
} else if (pi.getQuestStatus(20404) == 2) { } else if (pi.getQuestStatus(20404) == 2) {
pi.warp(924010000,0); pi.playPortalSound(); pi.warp(924010000,0);
return true; return true;
} else { } else {
pi.playerMessage(5, "I shouldn't go here.. it's creepy!"); pi.playerMessage(5, "I shouldn't go here.. it's creepy!");

View File

@@ -4,6 +4,6 @@ function enter(pi) {
return false; return false;
} }
pi.warp(221000300,"earth00"); pi.playPortalSound(); pi.warp(221000300,"earth00");
return true; return true;
} }

View File

@@ -4,6 +4,6 @@ function enter(pi) {
return false; return false;
} }
pi.warp(120000101,"earth01"); pi.playPortalSound(); pi.warp(120000101,"earth01");
return true; return true;
} }

View File

@@ -24,6 +24,6 @@ Nautilus Port portal
By xV1ral By xV1ral
*/ */
function enter(pi) { function enter(pi) {
pi.warp(120010000, "nt01"); pi.playPortalSound(); pi.warp(120010000, "nt01");
return true; return true;
} }

View File

@@ -7,7 +7,7 @@ function enter(pi) {
if (pi.getPlayerCount(913010200) == 0) { if (pi.getPlayerCount(913010200) == 0) {
var map = pi.getMap(913010200); var map = pi.getMap(913010200);
map.killAllMonsters(); map.killAllMonsters();
pi.warp(913010200, 0); pi.playPortalSound(); pi.warp(913010200, 0);
pi.spawnMonster(9300289, 0, 0); pi.spawnMonster(9300289, 0, 0);
return true; return true;
} else { } else {

View File

@@ -6,7 +6,7 @@ function enter(pi) {
else if (pi.isQuestStarted(1043)) else if (pi.isQuestStarted(1043))
pi.warp(1010300, 4); pi.warp(1010300, 4);
else if (pi.isQuestStarted(1044)) else if (pi.isQuestStarted(1044))
pi.warp(1010400, 4); pi.playPortalSound(); pi.warp(1010400, 4);
else { else {
pi.message("Only the adventurers that have been trained by Mai may enter."); pi.message("Only the adventurers that have been trained by Mai may enter.");
return false; return false;

View File

@@ -1,6 +1,6 @@
function enter(pi) { function enter(pi) {
if(pi.isQuestStarted(22010) || pi.getPlayer().getJob().getId() != 2001) { if(pi.isQuestStarted(22010) || pi.getPlayer().getJob().getId() != 2001) {
pi.warp(100030310, 0); pi.playPortalSound(); pi.warp(100030310, 0);
} else { } else {
pi.playerMessage(5, "Cannot enter the Lush Forest without a reason."); pi.playerMessage(5, "Cannot enter the Lush Forest without a reason.");
} }

View File

@@ -1,6 +1,6 @@
function enter(pi) { function enter(pi) {
if(pi.isQuestStarted(22008)){ if(pi.isQuestStarted(22008)){
pi.warp(100030103, "west00"); pi.playPortalSound(); pi.warp(100030103, "west00");
} else { } else {
pi.playerMessage(5, "You cannot go to the Back Yard without a reason"); pi.playerMessage(5, "You cannot go to the Back Yard without a reason");
} }

View File

@@ -25,7 +25,7 @@ function enter(pi) {
*/ */
var gender = pi.getPlayer().getGender(); var gender = pi.getPlayer().getGender();
if (gender == 1) { if (gender == 1) {
pi.warp(670010200, 4); pi.playPortalSound(); pi.warp(670010200, 4);
return true; return true;
} else { } else {
pi.getPlayer().dropMessage(5, "You cannot proceed past here."); pi.getPlayer().dropMessage(5, "You cannot proceed past here.");

View File

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

View File

@@ -2,7 +2,7 @@
function enter(pi) { function enter(pi) {
pi.getPlayer().getEvents().getGagaRescue().complete(); pi.getPlayer().getEvents().getGagaRescue().complete();
pi.warp(922240100 + (pi.getPlayer().getMapId() - 922240000)); pi.playPortalSound(); pi.warp(922240100 + (pi.getPlayer().getMapId() - 922240000));
pi.getPlayer().cancelEffect(2360002); pi.getPlayer().cancelEffect(2360002);
return true; return true;
} }

View File

@@ -10,7 +10,7 @@ function enter(pi) {
} }
} else { } else {
if (pi.getPlayer().getGender() == 0) { if (pi.getPlayer().getGender() == 0) {
pi.warp(map.getId(), "male01"); pi.playPortalSound(); pi.warp(map.getId(), "male01");
return true; return true;
} else { } else {
pi.message("This portal leads to the boys' area, try the portal at the other side."); pi.message("This portal leads to the boys' area, try the portal at the other side.");

View File

@@ -27,7 +27,7 @@ Sharen III's Grave Exit - Guild Quest
function enter(pi) { function enter(pi) {
if (pi.getPlayer().getMap().getReactorByName("ghostgate").getState() == 1) { if (pi.getPlayer().getMap().getReactorByName("ghostgate").getState() == 1) {
pi.warp(990000800, 0); pi.playPortalSound(); pi.warp(990000800, 0);
return true; return true;
} }
else { else {

View File

@@ -1,6 +1,6 @@
function enter(pi) { function enter(pi) {
if (pi.haveItem(3992041, 1)) { if (pi.haveItem(3992041, 1)) {
pi.warp(610030020, "out00"); pi.playPortalSound(); pi.warp(610030020, "out00");
return true; return true;
} else { } else {
pi.playerMessage(5, "The giant gate of iron will not budge no matter what, however there is a visible key-shaped socket."); pi.playerMessage(5, "The giant gate of iron will not budge no matter what, however there is a visible key-shaped socket.");

View File

@@ -4,7 +4,7 @@ function enter(pi) {
return false; return false;
} else { } else {
pi.warp(610030200, 0); pi.playPortalSound(); pi.warp(610030200, 0);
return true; return true;
} }
} }

View File

@@ -1,6 +1,6 @@
function enter(pi) { function enter(pi) {
if (pi.getPlayer().getJob().getJobNiche() == 1) { if (pi.getPlayer().getJob().getJobNiche() == 1) {
pi.warp(610030510,0); pi.playPortalSound(); pi.warp(610030510,0);
return true; return true;
} else { } else {
pi.playerMessage(5, "Only warriors may enter this portal."); pi.playerMessage(5, "Only warriors may enter this portal.");

View File

@@ -1,6 +1,6 @@
function enter(pi) { function enter(pi) {
if (pi.getPlayer().getJob().getJobNiche() == 3) { if (pi.getPlayer().getJob().getJobNiche() == 3) {
pi.warp(610030540,0); pi.playPortalSound(); pi.warp(610030540,0);
return true; return true;
} else { } else {
pi.playerMessage(5, "Only bowmen may enter this portal."); pi.playerMessage(5, "Only bowmen may enter this portal.");

View File

@@ -1,6 +1,6 @@
function enter(pi) { function enter(pi) {
if (pi.getPlayer().getJob().getJobNiche() == 2) { if (pi.getPlayer().getJob().getJobNiche() == 2) {
pi.warp(610030521,0); pi.playPortalSound(); pi.warp(610030521,0);
return true; return true;
} else { } else {
pi.playerMessage(5, "Only mages may enter this portal."); pi.playerMessage(5, "Only mages may enter this portal.");

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