Crafters & keybinding & commands fix + updated MobBook info
Fixed player receiving DOT even if protected on Orbis Tower <B2>, added HPbar on Rombot, fixed keybinding issue with clashing skill-item id's, fixed some mischeckings on NPC crafters, fixed "travelling events" sending players to random spawnpoints when arriving, fixed hair&face commands, fixed dispel effect not showing to others, updated drop data on mobbook.
This commit is contained in:
@@ -40,8 +40,8 @@ function takeoff() {
|
||||
}
|
||||
|
||||
function arrived() {
|
||||
Plane_to_CBD.warpEveryone(CBD_docked.getId());
|
||||
Plane_to_KC.warpEveryone(KC_docked.getId());
|
||||
Plane_to_CBD.warpEveryone(CBD_docked.getId(), 0);
|
||||
Plane_to_KC.warpEveryone(KC_docked.getId(), 7);
|
||||
|
||||
scheduleNew();
|
||||
}
|
||||
|
||||
@@ -61,10 +61,10 @@ function takeoff() {
|
||||
}
|
||||
|
||||
function arrived() {
|
||||
Boat_to_Orbis.warpEveryone(Orbis_Station.getId());
|
||||
Orbis_Boat_Cabin.warpEveryone(Orbis_Station.getId());
|
||||
Boat_to_Ellinia.warpEveryone(Ellinia_docked.getId());
|
||||
Ellinia_Boat_Cabin.warpEveryone(Ellinia_docked.getId());
|
||||
Boat_to_Orbis.warpEveryone(Orbis_Station.getId(), 0);
|
||||
Orbis_Boat_Cabin.warpEveryone(Orbis_Station.getId(), 0);
|
||||
Boat_to_Ellinia.warpEveryone(Ellinia_docked.getId(), 1);
|
||||
Ellinia_Boat_Cabin.warpEveryone(Ellinia_docked.getId(), 1);
|
||||
Orbis_docked.broadcastShip(true);
|
||||
Ellinia_docked.broadcastShip(true);
|
||||
Boat_to_Orbis.broadcastEnemyShip(false);
|
||||
|
||||
@@ -94,8 +94,8 @@ function takeoff() {
|
||||
}
|
||||
|
||||
function arrived() {
|
||||
Cabin_to_Orbis.warpEveryone(Orbis_Station.getId());
|
||||
Cabin_to_Leafre.warpEveryone(Leafre_Station.getId());
|
||||
Cabin_to_Orbis.warpEveryone(Orbis_Station.getId(), 0);
|
||||
Cabin_to_Leafre.warpEveryone(Leafre_Station.getId(), 0);
|
||||
|
||||
Orbis_docked.broadcastShip(true);
|
||||
Leafre_docked.broadcastShip(true);
|
||||
|
||||
@@ -72,8 +72,8 @@ function takeoff() {
|
||||
}
|
||||
|
||||
function arrived() {
|
||||
Genie_to_Orbis.warpEveryone(Orbis_Station.getId());
|
||||
Genie_to_Ariant.warpEveryone(Ariant_docked.getId());
|
||||
Genie_to_Orbis.warpEveryone(Orbis_Station.getId(), 0);
|
||||
Genie_to_Ariant.warpEveryone(Ariant_docked.getId(), 1);
|
||||
Orbis_docked.broadcastShip(true);
|
||||
Ariant_docked.broadcastShip(true);
|
||||
|
||||
|
||||
@@ -58,4 +58,4 @@ function playerDisconnected(eim, player) {
|
||||
|
||||
function cancelSchedule() {}
|
||||
|
||||
function dispose(eim) {}
|
||||
function dispose(eim) {}
|
||||
|
||||
@@ -5,13 +5,12 @@ var rideTo = new Array(103000310, 103000100);
|
||||
var trainRide = new Array(103000301, 103000302);
|
||||
var myRide;
|
||||
var returnMap;
|
||||
var exitMap;
|
||||
var map;
|
||||
var docked;
|
||||
var timeOnRide = 10; //Seconds
|
||||
var onRide;
|
||||
|
||||
function init() {
|
||||
}
|
||||
function init() {}
|
||||
|
||||
function setup() {
|
||||
var eim = em.newInstance("KerningTrain_" + em.getProperty("player"));
|
||||
@@ -26,26 +25,38 @@ function playerEntry(eim, player) {
|
||||
} else {
|
||||
myRide = 1;
|
||||
}
|
||||
docked = eim.getEm().getChannelServer().getMapFactory().getMap(rideTo[myRide]);
|
||||
returnMap = eim.getMapFactory().getMap(returnTo[myRide]);
|
||||
onRide = eim.getMapFactory().getMap(trainRide[myRide]);
|
||||
player.changeMap(onRide, onRide.getPortal(0));
|
||||
player.getClient().getSession().write(MaplePacketCreator.getClock(timeOnRide));
|
||||
eim.schedule("timeOut", timeOnRide * 1000);
|
||||
|
||||
exitMap = eim.getEm().getChannelServer().getMapFactory().getMap(rideTo[myRide]);
|
||||
returnMap = eim.getMapFactory().getMap(returnTo[myRide]);
|
||||
onRide = eim.getMapFactory().getMap(trainRide[myRide]);
|
||||
player.changeMap(onRide, onRide.getPortal(0));
|
||||
player.getClient().getSession().write(MaplePacketCreator.getClock(timeOnRide));
|
||||
eim.schedule("timeOut", timeOnRide * 1000);
|
||||
}
|
||||
|
||||
function timeOut() {
|
||||
onRide.warpEveryone(docked.getId());
|
||||
function timeOut(eim) {
|
||||
end(eim);
|
||||
}
|
||||
|
||||
function playerUnregistered(eim, player) {}
|
||||
|
||||
function playerExit(eim, player, success) {
|
||||
eim.unregisterPlayer(player);
|
||||
player.changeMap(success ? exitMap.getId() : returnMap.getId(), 0);
|
||||
}
|
||||
|
||||
function end(eim) {
|
||||
var party = eim.getPlayers();
|
||||
for (var i = 0; i < party.size(); i++) {
|
||||
playerExit(eim, party.get(i), true);
|
||||
}
|
||||
eim.dispose();
|
||||
}
|
||||
|
||||
function playerDisconnected(eim, player) {
|
||||
return 0;
|
||||
playerExit(eim, player, false);
|
||||
}
|
||||
|
||||
function cancelSchedule() {}
|
||||
|
||||
function dispose(eim) {
|
||||
eim.cancelSchedule();
|
||||
}
|
||||
function dispose(eim) {}
|
||||
|
||||
@@ -86,6 +86,7 @@ function setup(channel) {
|
||||
eim.getInstanceMap(270050300).resetPQ(level);
|
||||
|
||||
var mob = MapleLifeFactory.getMonster(8820000);
|
||||
mob.disableDrops();
|
||||
eim.getInstanceMap(270050100).spawnMonsterOnGroundBelow(mob, new java.awt.Point(0, -42));
|
||||
|
||||
eim.startEventTimer(eventTime * 60000);
|
||||
|
||||
@@ -18,6 +18,9 @@
|
||||
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/>.
|
||||
*/
|
||||
|
||||
importPackage(Packages.tools);
|
||||
|
||||
var exitMap;
|
||||
var startMap;
|
||||
var otherMap;
|
||||
|
||||
@@ -38,8 +38,8 @@ function takeoff() {
|
||||
}
|
||||
|
||||
function arrived() {
|
||||
Subway_to_KC.warpEveryone(KC_docked.getId());
|
||||
Subway_to_NLC.warpEveryone(NLC_docked.getId());
|
||||
Subway_to_KC.warpEveryone(KC_docked.getId(), 0);
|
||||
Subway_to_NLC.warpEveryone(NLC_docked.getId(), 0);
|
||||
scheduleNew();
|
||||
}
|
||||
|
||||
|
||||
@@ -55,8 +55,8 @@ function takeoff() {
|
||||
}
|
||||
|
||||
function arrived() {
|
||||
Train_to_Orbis.warpEveryone(Orbis_Station.getId());
|
||||
Train_to_Ludibrium.warpEveryone(Ludibrium_Station.getId());
|
||||
Train_to_Orbis.warpEveryone(Orbis_Station.getId(), 0);
|
||||
Train_to_Ludibrium.warpEveryone(Ludibrium_Station.getId(), 0);
|
||||
Orbis_docked.broadcastShip(true);
|
||||
Ludibrium_docked.broadcastShip(true);
|
||||
scheduleNew();
|
||||
|
||||
@@ -18,6 +18,9 @@
|
||||
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/>.
|
||||
*/
|
||||
|
||||
importPackage(Packages.tools);
|
||||
|
||||
var exitMap;
|
||||
var startMap;
|
||||
var otherMap;
|
||||
|
||||
@@ -62,7 +62,7 @@ function goingDownNow() {
|
||||
function isUpNow() {
|
||||
em.setProperty("goingDown", "false"); // clear
|
||||
em.getChannelServer().getMapFactory().getMap(222020200).resetReactors();
|
||||
em.getChannelServer().getMapFactory().getMap(222020111).warpEveryone(222020200);
|
||||
em.getChannelServer().getMapFactory().getMap(222020111).warpEveryone(222020200, 0);
|
||||
|
||||
goDown();
|
||||
}
|
||||
@@ -70,7 +70,7 @@ function isUpNow() {
|
||||
function isDownNow() {
|
||||
em.setProperty("goingUp", "false"); // clear
|
||||
em.getChannelServer().getMapFactory().getMap(222020100).resetReactors();
|
||||
em.getChannelServer().getMapFactory().getMap(222020211).warpEveryone(222020100);
|
||||
em.getChannelServer().getMapFactory().getMap(222020211).warpEveryone(222020100, 4);
|
||||
|
||||
goUp();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user