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:
@@ -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.
|
||||
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.
|
||||
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.
|
||||
@@ -34,7 +34,7 @@
|
||||
**/
|
||||
|
||||
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")) {
|
||||
pi.changeMusic("Bgm04/ArabPirate");
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
**/
|
||||
|
||||
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")) {
|
||||
pi.changeMusic("Bgm04/ArabPirate");
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010005, "sU6_1");
|
||||
pi.playPortalSound(); pi.warp(610010005, "sU6_1");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010005, "sU6_1");
|
||||
pi.playPortalSound(); pi.warp(610010005, "sU6_1");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010005, "sU6_1");
|
||||
pi.playPortalSound(); pi.warp(610010005, "sU6_1");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -21,6 +21,6 @@
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.warp(610020015, "CC6_A");
|
||||
pi.playPortalSound(); pi.warp(610020015, "CC6_A");
|
||||
return true;
|
||||
}
|
||||
@@ -21,6 +21,6 @@
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.warp(610020010, "CC1_A");
|
||||
pi.playPortalSound(); pi.warp(610020010, "CC1_A");
|
||||
return true;
|
||||
}
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020000, "CM1_B");
|
||||
pi.playPortalSound(); pi.warp(610020000, "CM1_B");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020000, "CM1_C");
|
||||
pi.playPortalSound(); pi.warp(610020000, "CM1_C");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020000, "CM1_D");
|
||||
pi.playPortalSound(); pi.warp(610020000, "CM1_D");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020000, "CM1_E");
|
||||
pi.playPortalSound(); pi.warp(610020000, "CM1_E");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020001, "CM2_C");
|
||||
pi.playPortalSound(); pi.warp(610020001, "CM2_C");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020001, "CM2_D");
|
||||
pi.playPortalSound(); pi.warp(610020001, "CM2_D");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
*/
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020001, "CM2_E");
|
||||
pi.playPortalSound(); pi.warp(610020001, "CM2_E");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,7 @@ F/*
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992039)) {
|
||||
pi.warp(610020001, "CM2_F");
|
||||
pi.playPortalSound(); pi.warp(610020001, "CM2_F");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010004, "U5_1");
|
||||
pi.playPortalSound(); pi.warp(610010004, "U5_1");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010201, "sB2_1");
|
||||
pi.playPortalSound(); pi.warp(610010201, "sB2_1");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010001, "sU2_1");
|
||||
pi.playPortalSound(); pi.warp(610010001, "sU2_1");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010004, "U5_1");
|
||||
pi.playPortalSound(); pi.warp(610010004, "U5_1");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.hasItem(3992040)) {
|
||||
pi.warp(610010002, "sU3_1");
|
||||
pi.playPortalSound(); pi.warp(610010002, "sU3_1");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
**/
|
||||
|
||||
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")) {
|
||||
pi.changeMusic("Bgm04/ArabPirate");
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
**/
|
||||
|
||||
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"))
|
||||
pi.changeMusic("Bgm04/ArabPirate");
|
||||
return true;
|
||||
|
||||
@@ -24,6 +24,6 @@ Vs Pink Bean - Clear stage portal
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.warp(270050000);
|
||||
pi.playPortalSound(); pi.warp(270050000);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(230040420, "out00");
|
||||
pi.playPortalSound(); pi.warp(230040420, "out00");
|
||||
return true;
|
||||
}
|
||||
@@ -24,6 +24,6 @@ Vs Pink Bean - Ressurection stage portal
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.warp(270050100);
|
||||
pi.playPortalSound(); pi.warp(270050100);
|
||||
return true;
|
||||
}
|
||||
@@ -32,6 +32,6 @@ function enter(pi) {
|
||||
}
|
||||
}
|
||||
}
|
||||
pi.warp(220080001, "st00");
|
||||
pi.playPortalSound(); pi.warp(220080001, "st00");
|
||||
return true;
|
||||
}
|
||||
@@ -5,7 +5,7 @@ function enter(pi) {
|
||||
pi.warp(922240200, 0);
|
||||
pi.getPlayer().cancelEffect(2360002);
|
||||
} else
|
||||
pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -5,7 +5,7 @@ function enter(pi) {
|
||||
pi.warp(922240200, 0);
|
||||
pi.getPlayer().cancelEffect(2360002);
|
||||
} else
|
||||
pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -5,7 +5,7 @@ function enter(pi) {
|
||||
pi.warp(922240200, 0);
|
||||
pi.getPlayer().cancelEffect(2360002);
|
||||
} else
|
||||
pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -5,7 +5,7 @@ function enter(pi) {
|
||||
pi.warp(922240200, 0);
|
||||
pi.getPlayer().cancelEffect(2360002);
|
||||
} else
|
||||
pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -34,6 +34,6 @@ function enter(pi) {
|
||||
return false;
|
||||
}
|
||||
|
||||
pi.warp(211042300);
|
||||
pi.playPortalSound(); pi.warp(211042300);
|
||||
return true;
|
||||
}
|
||||
@@ -34,6 +34,6 @@ function enter(pi) {
|
||||
return false;
|
||||
}
|
||||
|
||||
pi.warp(211042400,"west00");
|
||||
pi.playPortalSound(); pi.warp(211042400,"west00");
|
||||
return true;
|
||||
}
|
||||
@@ -26,6 +26,6 @@
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.warp(pi.getPlayer().getSavedLocation("MIRROR"));
|
||||
pi.playPortalSound(); pi.warp(pi.getPlayer().getSavedLocation("MIRROR"));
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(670010300, 0);
|
||||
pi.playPortalSound(); pi.warp(670010300, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(670010301, 0);
|
||||
pi.playPortalSound(); pi.warp(670010301, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(670010302, 0);
|
||||
pi.playPortalSound(); pi.warp(670010302, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(670010400, 0);
|
||||
pi.playPortalSound(); pi.warp(670010400, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(670010500, 0);
|
||||
pi.playPortalSound(); pi.warp(670010500, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(670010600, 0);
|
||||
pi.playPortalSound(); pi.warp(670010600, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -26,7 +26,7 @@ function enter(pi) {
|
||||
var name = pi.getPortal().getName().substring(2, 4);
|
||||
var gate = pi.getPlayer().getMap().getReactorByName("gate" + name);
|
||||
if(gate != null && gate.getState() == 4) {
|
||||
pi.warp(670010600, "gt" + name + "PIB");
|
||||
pi.playPortalSound(); pi.warp(670010600, "gt" + name + "PIB");
|
||||
return true;
|
||||
} else {
|
||||
pi.message("The gate is not opened yet.");
|
||||
|
||||
@@ -20,6 +20,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(230040420, 0);
|
||||
pi.playPortalSound(); pi.warp(230040420, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
function enter(pi) {
|
||||
pi.warp(914000100, 1);
|
||||
pi.playPortalSound(); pi.warp(914000100, 1);
|
||||
return true;
|
||||
}
|
||||
@@ -10,7 +10,7 @@ function enter(pi) {
|
||||
pi.teachSkill(20000017, 1, 0, -1);
|
||||
pi.teachSkill(20000018, 1, 0, -1);
|
||||
//actually nexon does enableActions here :P
|
||||
pi.warp(914000200, 1);
|
||||
pi.playPortalSound(); pi.warp(914000200, 1);
|
||||
return true;
|
||||
} else {
|
||||
pi.message("You can only exit after you accept the quest from Athena Pierce, who is to your right.");
|
||||
|
||||
@@ -6,6 +6,6 @@ function enter(pi) {
|
||||
pi.teachSkill(20000014, 1, 0, -1);
|
||||
pi.teachSkill(20000015, 1, 0, -1);
|
||||
//actually nexon does enableActions here :P
|
||||
pi.warp(914000210, 1);
|
||||
pi.playPortalSound(); pi.warp(914000210, 1);
|
||||
return true;
|
||||
}
|
||||
@@ -4,6 +4,6 @@ function enter(pi) {
|
||||
//nexon sends updatePlayerStats MapleStat.AVAILABLESP 0
|
||||
pi.teachSkill(20000016, 1, 0, -1);
|
||||
//actually nexon does enableActions here :P
|
||||
pi.warp(914000220, 1);
|
||||
pi.playPortalSound(); pi.warp(914000220, 1);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(980010020, 0);
|
||||
pi.playPortalSound(); pi.warp(980010020, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(980010000, 0);
|
||||
pi.playPortalSound(); pi.warp(980010000, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -25,7 +25,7 @@ Agit's hideout (leader of the Sand Bandits)
|
||||
|
||||
function enter(pi) {
|
||||
if(pi.isQuestCompleted(3928) && pi.isQuestCompleted(3931) && pi.isQuestCompleted(3934)) {
|
||||
pi.warp(260000201, 1);
|
||||
pi.playPortalSound(); pi.warp(260000201, 1);
|
||||
return true;
|
||||
} else {
|
||||
pi.message("Access restricted to only members of the Sand Bandits team.");
|
||||
|
||||
@@ -28,7 +28,7 @@ function enter(pi) {
|
||||
if(isTigunMorphed(pi.getPlayer())) {
|
||||
return false;
|
||||
} 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!!");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function enter(pi) {
|
||||
pi.warp(105100000, 2);
|
||||
return(true);
|
||||
pi.playPortalSound(); pi.warp(105100000, 2);
|
||||
return true;
|
||||
}
|
||||
@@ -4,6 +4,6 @@ function enter(pi) {
|
||||
return false;
|
||||
}
|
||||
pi.gainItem(4001261,1);
|
||||
pi.warp(105100100,0);
|
||||
return(true);
|
||||
pi.playPortalSound(); pi.warp(105100100,0);
|
||||
return true;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
function enter(pi) {
|
||||
if (pi.isQuestStarted(2570)) {
|
||||
pi.warp(120000101, 0);
|
||||
pi.playPortalSound(); pi.warp(120000101, 0);
|
||||
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.");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function enter(pi) {
|
||||
pi.warp(925000000, 2);
|
||||
pi.playPortalSound(); pi.warp(925000000, 2);
|
||||
return true;
|
||||
}
|
||||
@@ -8,6 +8,6 @@ function enter(pi) {
|
||||
eim.setProperty("stage2b", "1");
|
||||
}
|
||||
|
||||
pi.warp(925100202,0);
|
||||
return(true);
|
||||
pi.playPortalSound(); pi.warp(925100202,0);
|
||||
return true;
|
||||
}
|
||||
@@ -8,6 +8,6 @@ function enter(pi) {
|
||||
eim.setProperty("stage3b", "1");
|
||||
}
|
||||
|
||||
pi.warp(925100302,0);
|
||||
return(true);
|
||||
pi.playPortalSound(); pi.warp(925100302,0);
|
||||
return true;
|
||||
}
|
||||
@@ -5,10 +5,10 @@ function passedGrindMode(map, eim) {
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getMap().getMonsters().size() == 0 && passedGrindMode(pi.getMap(), pi.getEventInstance())) {
|
||||
pi.warp(925100100,0); //next
|
||||
return(true);
|
||||
pi.playPortalSound(); pi.warp(925100100,0); //next
|
||||
return true;
|
||||
} else {
|
||||
pi.playerMessage(5, "The portal is not opened yet.");
|
||||
return(false);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -2,15 +2,15 @@ function enter(pi) {
|
||||
try {
|
||||
var eim = pi.getEventInstance();
|
||||
if (eim != null && eim.getProperty("stage2").equals("3")) {
|
||||
pi.warp(925100200,0); //next
|
||||
return(true);
|
||||
pi.playPortalSound(); pi.warp(925100200,0); //next
|
||||
return true;
|
||||
} else {
|
||||
pi.playerMessage(5, "The portal is not opened yet.");
|
||||
return(false);
|
||||
return false;
|
||||
}
|
||||
} catch(e) {
|
||||
pi.playerMessage(5, "Error: " + e);
|
||||
}
|
||||
|
||||
return(false);
|
||||
return false;
|
||||
}
|
||||
@@ -5,10 +5,10 @@ function passedGrindMode(map, eim) {
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getMap().getMonsters().size() == 0 && passedGrindMode(pi.getMap(), pi.getEventInstance())) {
|
||||
pi.warp(925100300,0); //next
|
||||
return(true);
|
||||
pi.playPortalSound(); pi.warp(925100300,0); //next
|
||||
return true;
|
||||
} else {
|
||||
pi.playerMessage(5, "The portal is not opened yet.");
|
||||
return(false);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -5,10 +5,10 @@ function passedGrindMode(map, eim) {
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getMap().getMonsters().size() == 0 && passedGrindMode(pi.getMap(), pi.getEventInstance())) {
|
||||
pi.warp(925100400,0); //next
|
||||
return(true);
|
||||
pi.playPortalSound(); pi.warp(925100400,0); //next
|
||||
return true;
|
||||
} else {
|
||||
pi.playerMessage(5, "The portal is not opened yet.");
|
||||
return(false);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -19,10 +19,10 @@ function enter(pi) {
|
||||
eim.setProperty("spawnedBoss", "true");
|
||||
}
|
||||
|
||||
pi.warp(925100500, 0);
|
||||
return(true);
|
||||
pi.playPortalSound(); pi.warp(925100500, 0);
|
||||
return true;
|
||||
} else {
|
||||
pi.playerMessage(5, "The portal is not opened yet.");
|
||||
return(false);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -29,6 +29,6 @@ function enter(pi) {
|
||||
var map = pi.getPlayer().getSavedLocation("MIRROR");
|
||||
if(map == -1) map = 100000000;
|
||||
|
||||
pi.warp(map);
|
||||
pi.playPortalSound(); pi.warp(map);
|
||||
return true;
|
||||
}
|
||||
@@ -60,7 +60,7 @@ function enter(pi) {
|
||||
pi.warp(pi.getPlayer().getMap().getId() + 100, 0);
|
||||
}
|
||||
} else {
|
||||
pi.warp(925020003, 0);
|
||||
pi.playPortalSound(); pi.warp(925020003, 0);
|
||||
pi.getPlayer().gainExp(2000 * pi.getPlayer().getDojoPoints(), true, true, true);
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -29,7 +29,7 @@ function enter(pi) {
|
||||
if (pi.getPlayer().getMap().getMonsterById(9300216) != null) {
|
||||
pi.getPlayer().enteredScript("dojang_Msg", pi.getPlayer().getMap().getId());
|
||||
pi.getPlayer().setFinishedDojoTutorial();
|
||||
pi.warp(925020001, 0);
|
||||
pi.playPortalSound(); pi.warp(925020001, 0);
|
||||
return true;
|
||||
} 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!");
|
||||
|
||||
@@ -20,6 +20,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(240000100, "east00");
|
||||
pi.playPortalSound(); pi.warp(240000100, "east00");
|
||||
return true;
|
||||
}
|
||||
@@ -20,6 +20,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(240040611, "out00");
|
||||
pi.playPortalSound(); pi.warp(240040611, "out00");
|
||||
return true;
|
||||
}
|
||||
@@ -4,7 +4,7 @@ function enter(pi) {
|
||||
if (elevator == null) {
|
||||
pi.getPlayer().dropMessage(5, "The elevator is under maintenance.");
|
||||
} 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");
|
||||
return true;
|
||||
} else if (elevator.getProperty(pi.getMapId() == 222020100 ? ("goingUp") : ("goingDown")).equals("true")) {
|
||||
|
||||
@@ -20,6 +20,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi){
|
||||
pi.warp(920020000, 0);
|
||||
pi.playPortalSound(); pi.warp(920020000, 0);
|
||||
return true;
|
||||
}
|
||||
@@ -16,7 +16,7 @@ function enter(pi){
|
||||
}
|
||||
}
|
||||
else{
|
||||
pi.warp(120000103);
|
||||
pi.playPortalSound(); pi.warp(120000103);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
function enter(pi) {
|
||||
pi.warp(100000201, "out02");
|
||||
pi.playPortalSound(); pi.warp(100000201, "out02");
|
||||
pi.playPortalSound();
|
||||
return true;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
function enter(pi) {
|
||||
if(pi.isQuestActive(21747) || pi.isQuestActive(21744) && pi.isQuestCompleted(21745)) {
|
||||
pi.warp(925040000,0);
|
||||
pi.playPortalSound(); pi.warp(925040000,0);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -39,7 +39,7 @@ function enter(pi) {
|
||||
|
||||
pi.warp(108010600 + (10 * jobtype), "out00");
|
||||
} else {
|
||||
pi.warp(130010010, "out00");
|
||||
pi.playPortalSound(); pi.warp(130010010, "out00");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -39,7 +39,7 @@ function enter(pi) {
|
||||
|
||||
pi.warp(108010600 + (10 * jobtype), "out00");
|
||||
} else {
|
||||
pi.warp(130010020, "out00");
|
||||
pi.playPortalSound(); pi.warp(130010020, "out00");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ function enter(pi) {
|
||||
|
||||
pi.warp(108010600 + (10 * jobtype), "out00");
|
||||
} else {
|
||||
pi.warp(130010110, "out00");
|
||||
pi.playPortalSound(); pi.warp(130010110, "out00");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ function enter(pi) {
|
||||
|
||||
pi.warp(108010600 + (10 * jobtype), "out00");
|
||||
} else {
|
||||
pi.warp(130010120, "out00");
|
||||
pi.playPortalSound(); pi.warp(130010120, "out00");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ function enter(pi) {
|
||||
|
||||
pi.warp(108010600 + (10 * jobtype), "east00");
|
||||
} else {
|
||||
pi.warp(130020000, "east00");
|
||||
pi.playPortalSound(); pi.warp(130020000, "east00");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -3,7 +3,7 @@ function enter(pi) {
|
||||
pi.warp(105070300,3);
|
||||
return true;
|
||||
} else if(pi.isQuestStarted(21734)) {
|
||||
pi.warp(910510100,0);
|
||||
pi.playPortalSound(); pi.warp(910510100,0);
|
||||
return true;
|
||||
} else {
|
||||
pi.message("An ominous power prevents you from passing here.");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
function enter(pi) {
|
||||
if(pi.isQuestCompleted(20730) || pi.isQuestCompleted(21734)) { // puppeteer defeated, newfound secret path
|
||||
pi.warp(105040201,2);
|
||||
pi.playPortalSound(); pi.warp(105040201,2);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ function enter(pi) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
pi.warp(200060001,2);
|
||||
pi.playPortalSound(); pi.warp(200060001,2);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -23,6 +23,6 @@ function enter(pi) {
|
||||
if (pi.getPlayer().getJob().getId() == 2000 && !pi.isQuestCompleted(21014))
|
||||
pi.warp(140000000, 1);
|
||||
else
|
||||
pi.warp(140000000, "west00");
|
||||
pi.playPortalSound(); pi.warp(140000000, "west00");
|
||||
return true;
|
||||
}
|
||||
@@ -33,7 +33,7 @@ function enter(pi) {
|
||||
pi.removeAll(4032100);
|
||||
|
||||
var rand = Math.floor(Math.random() * maps.length);
|
||||
pi.warp(maps[rand], 0);
|
||||
pi.playPortalSound(); pi.warp(maps[rand], 0);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function enter(pi) {
|
||||
pi.warp(300000011,0);
|
||||
return(true);
|
||||
pi.playPortalSound(); pi.warp(300000011,0);
|
||||
return true;
|
||||
}
|
||||
@@ -6,7 +6,7 @@ function enter(pi) {
|
||||
pi.warp(924010100,0);
|
||||
return true;
|
||||
} else if (pi.getQuestStatus(20404) == 2) {
|
||||
pi.warp(924010000,0);
|
||||
pi.playPortalSound(); pi.warp(924010000,0);
|
||||
return true;
|
||||
} else {
|
||||
pi.playerMessage(5, "I shouldn't go here.. it's creepy!");
|
||||
|
||||
@@ -4,6 +4,6 @@ function enter(pi) {
|
||||
return false;
|
||||
}
|
||||
|
||||
pi.warp(221000300,"earth00");
|
||||
pi.playPortalSound(); pi.warp(221000300,"earth00");
|
||||
return true;
|
||||
}
|
||||
@@ -4,6 +4,6 @@ function enter(pi) {
|
||||
return false;
|
||||
}
|
||||
|
||||
pi.warp(120000101,"earth01");
|
||||
pi.playPortalSound(); pi.warp(120000101,"earth01");
|
||||
return true;
|
||||
}
|
||||
@@ -24,6 +24,6 @@ Nautilus Port portal
|
||||
By xV1ral
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.warp(120010000, "nt01");
|
||||
pi.playPortalSound(); pi.warp(120010000, "nt01");
|
||||
return true;
|
||||
}
|
||||
@@ -7,7 +7,7 @@ function enter(pi) {
|
||||
if (pi.getPlayerCount(913010200) == 0) {
|
||||
var map = pi.getMap(913010200);
|
||||
map.killAllMonsters();
|
||||
pi.warp(913010200, 0);
|
||||
pi.playPortalSound(); pi.warp(913010200, 0);
|
||||
pi.spawnMonster(9300289, 0, 0);
|
||||
return true;
|
||||
} else {
|
||||
|
||||
@@ -6,7 +6,7 @@ function enter(pi) {
|
||||
else if (pi.isQuestStarted(1043))
|
||||
pi.warp(1010300, 4);
|
||||
else if (pi.isQuestStarted(1044))
|
||||
pi.warp(1010400, 4);
|
||||
pi.playPortalSound(); pi.warp(1010400, 4);
|
||||
else {
|
||||
pi.message("Only the adventurers that have been trained by Mai may enter.");
|
||||
return false;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
function enter(pi) {
|
||||
if(pi.isQuestStarted(22010) || pi.getPlayer().getJob().getId() != 2001) {
|
||||
pi.warp(100030310, 0);
|
||||
pi.playPortalSound(); pi.warp(100030310, 0);
|
||||
} else {
|
||||
pi.playerMessage(5, "Cannot enter the Lush Forest without a reason.");
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
function enter(pi) {
|
||||
if(pi.isQuestStarted(22008)){
|
||||
pi.warp(100030103, "west00");
|
||||
pi.playPortalSound(); pi.warp(100030103, "west00");
|
||||
} else {
|
||||
pi.playerMessage(5, "You cannot go to the Back Yard without a reason");
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ function enter(pi) {
|
||||
*/
|
||||
var gender = pi.getPlayer().getGender();
|
||||
if (gender == 1) {
|
||||
pi.warp(670010200, 4);
|
||||
pi.playPortalSound(); pi.warp(670010200, 4);
|
||||
return true;
|
||||
} else {
|
||||
pi.getPlayer().dropMessage(5, "You cannot proceed past here.");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function enter(pi) {
|
||||
pi.warp(222010200, "east00");
|
||||
pi.playPortalSound(); pi.warp(222010200, "east00");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
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);
|
||||
return true;
|
||||
}
|
||||
@@ -10,7 +10,7 @@ function enter(pi) {
|
||||
}
|
||||
} else {
|
||||
if (pi.getPlayer().getGender() == 0) {
|
||||
pi.warp(map.getId(), "male01");
|
||||
pi.playPortalSound(); pi.warp(map.getId(), "male01");
|
||||
return true;
|
||||
} else {
|
||||
pi.message("This portal leads to the boys' area, try the portal at the other side.");
|
||||
|
||||
@@ -27,7 +27,7 @@ Sharen III's Grave Exit - Guild Quest
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getMap().getReactorByName("ghostgate").getState() == 1) {
|
||||
pi.warp(990000800, 0);
|
||||
pi.playPortalSound(); pi.warp(990000800, 0);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
function enter(pi) {
|
||||
if (pi.haveItem(3992041, 1)) {
|
||||
pi.warp(610030020, "out00");
|
||||
pi.playPortalSound(); pi.warp(610030020, "out00");
|
||||
return true;
|
||||
} else {
|
||||
pi.playerMessage(5, "The giant gate of iron will not budge no matter what, however there is a visible key-shaped socket.");
|
||||
|
||||
@@ -4,7 +4,7 @@ function enter(pi) {
|
||||
return false;
|
||||
|
||||
} else {
|
||||
pi.warp(610030200, 0);
|
||||
pi.playPortalSound(); pi.warp(610030200, 0);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getJob().getJobNiche() == 1) {
|
||||
pi.warp(610030510,0);
|
||||
pi.playPortalSound(); pi.warp(610030510,0);
|
||||
return true;
|
||||
} else {
|
||||
pi.playerMessage(5, "Only warriors may enter this portal.");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getJob().getJobNiche() == 3) {
|
||||
pi.warp(610030540,0);
|
||||
pi.playPortalSound(); pi.warp(610030540,0);
|
||||
return true;
|
||||
} else {
|
||||
pi.playerMessage(5, "Only bowmen may enter this portal.");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getJob().getJobNiche() == 2) {
|
||||
pi.warp(610030521,0);
|
||||
pi.playPortalSound(); pi.warp(610030521,0);
|
||||
return true;
|
||||
} else {
|
||||
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
Reference in New Issue
Block a user