Fix map spawn
Fix map failing to spawn in some cases.
This commit is contained in:
0
scripts/map/onUserEnter/921100300.txt
Normal file
0
scripts/map/onUserEnter/921100300.txt
Normal file
0
scripts/map/onUserEnter/923010000.txt
Normal file
0
scripts/map/onUserEnter/923010000.txt
Normal file
@@ -41,9 +41,12 @@ if (mode == 0 && status == 1) {
|
||||
status++;
|
||||
else
|
||||
cm.dispose();
|
||||
if (status == 1)
|
||||
|
||||
if (status == 1) {
|
||||
cm.sendNext ("Alright, see you next time. Take care.");
|
||||
else if (status == 2)
|
||||
}
|
||||
else if (status == 2) {
|
||||
cm.warp(200000111, 0);// back to Orbis jetty
|
||||
cm.dispose();
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,18 @@ var sel;
|
||||
actionx = {"Mental" : false, "Physical" : false};
|
||||
|
||||
function start() {
|
||||
if(cm.isQuestStarted(6192)) {
|
||||
if(cm.getWarpMap(921100300).getCharacters().size() > 0)
|
||||
cm.sendOk("There is someone currently in this map, come back later.");
|
||||
else {
|
||||
cm.resetMapObjects(921100300);
|
||||
cm.warp(921100300);
|
||||
}
|
||||
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!(cm.getPlayer().getLevel() >= 70 && parseInt(cm.getJobId() / 100) == 1)){
|
||||
cm.sendNext("Hi there.");
|
||||
cm.dispose();
|
||||
|
||||
12
scripts/npc/world0/2022004.js
Normal file
12
scripts/npc/world0/2022004.js
Normal file
@@ -0,0 +1,12 @@
|
||||
function start() {
|
||||
cm.sendNext("You did a great job back there, " + cm.getPlayer().getName() + ", well done. Now I will transport you back to El Nath. Have the pendant in your possession and talk to me when you feel ready to receive the new skill.");
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == -1) {
|
||||
cm.dispose();
|
||||
} else {
|
||||
cm.warp(211000000,"in01");
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
@@ -22,10 +22,13 @@
|
||||
function start() {
|
||||
if(cm.isQuestCompleted(6002))
|
||||
cm.sendOk("Thanks for saving the pork.");
|
||||
else if(cm.getClient().getChannelServer().getMapFactory().getMap(923010000).getCharacters().size() > 0)
|
||||
else if(cm.getWarpMap(923010000).getCharacters().size() > 0)
|
||||
cm.sendOk("There is currently someone in this map, come back later.");
|
||||
else if(cm.isQuestStarted(6002))
|
||||
else if(cm.isQuestStarted(6002)) {
|
||||
cm.resetMapObjects(923010000);
|
||||
cm.warp(923010000);
|
||||
}
|
||||
|
||||
else cm.sendSimple("Only few adventurers, from a selected public, are eligible to protect the Watch Hog.");
|
||||
cm.dispose();
|
||||
}
|
||||
@@ -32,7 +32,7 @@ var belts = Array(1132000, 1132001, 1132002, 1132003, 1132004);
|
||||
var belt_level = Array(25, 35, 45, 60, 75);
|
||||
|
||||
/* var belt_points = Array(200, 1800, 4000, 9200, 17000); */
|
||||
var belt_points = Array(5, 45, 100, 230, 425); /* Watered down version */
|
||||
var belt_points = Array(10, 90, 200, 460, 850); /* Watered down version */
|
||||
|
||||
var status = -1;
|
||||
var selectedMenu = -1;
|
||||
|
||||
9
scripts/portal/s4common1_exit.js
Normal file
9
scripts/portal/s4common1_exit.js
Normal file
@@ -0,0 +1,9 @@
|
||||
//Author: Ronan
|
||||
|
||||
function enter(pi) {
|
||||
if(pi.hasItem(4031495)) pi.warp(921100301);
|
||||
else pi.warp(211040100);
|
||||
|
||||
pi.getWarpMap(921100300).clearMapObjects();
|
||||
return true;
|
||||
}
|
||||
@@ -25,8 +25,10 @@ function enter(pi) {
|
||||
pi.removeAll(4031508);
|
||||
}
|
||||
|
||||
if (pi.getClient().getChannelServer().getMapFactory().getMap(923010000).getCharacters().size() < 1)
|
||||
pi.getClient().getChannelServer().getMapFactory().getMap(923010000).killAllMonsters();
|
||||
pi.warp(230000003, "out00");
|
||||
if (pi.getClient().getChannelServer().getMapFactory().getMap(923010000).getCharacters().size() == 0) {
|
||||
pi.getClient().getChannelServer().getMapFactory().getMap(923010000).clearMapObjects();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user