Implemented missing scripts for Aerial Strike, Hypnotize and Time Leap skill questlines. Fixed an deadlock issue within player's inventory and status. Fixed skill spam detection disconnecting players when legitimatelly spamming Flash Jump or Heal. Fixed party members map location not being properly updated after changing maps. Rehauled MoveLife handler. Improved packet read of attack and skill elements, properly reflecting incoming actions to other player on the map. Reviewed an issue with equipments MaxHP/MaxMP getting unsynced with player's MaxHP/MaxMP, resulting in differences within server-client view of a player's pool. Fixed mobs not being spawned by dojo bosses after enough spawn actions were instanced. Implemented proper Mob.wz linked mob data support. Fixed /find not identifying a player's channel properly. Fixed Echo of Hero not affecting other player in the map. Fixed commands warp and goto not taking player off events/expeditions properly. Fixed storage expansion not being registered on DB when buying the cash item. Fixed party leadership being reassigned after changing channels. Implemented suggested level range limit between party members on the EXP share system. Players whose level range from the attacker exceeds the estipulated threshold will not receive any EXP from the action. Happy Thanksgiving Day everyone!!!
112 lines
4.1 KiB
JavaScript
112 lines
4.1 KiB
JavaScript
/*
|
|
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 as
|
|
published by the Free Software Foundation 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/>.
|
|
*/
|
|
|
|
/**
|
|
-- Odin JavaScript --------------------------------------------------------------------------------
|
|
Cabin between Orbis and Leafre
|
|
-- By ---------------------------------------------------------------------------------------------
|
|
Information
|
|
-- Version Info -----------------------------------------------------------------------------------
|
|
1.5 - Fix for infinity looping [Information]
|
|
1.4 - Ship/boat is now showed
|
|
- Removed temp message[Information]
|
|
- Credits to Snow, superraz777 for old source
|
|
- Credits to Titan, Kool for the ship/boat packet
|
|
1.3 - Removing some function since is not needed [Information]
|
|
- Remove register player menthod [Information]
|
|
1.2 - It should be 2 ships not 1 [Information]
|
|
1.1 - Add timer variable for easy edit [Information]
|
|
1.0 - First Version by Information
|
|
---------------------------------------------------------------------------------------------------
|
|
**/
|
|
|
|
importPackage(Packages.tools);
|
|
|
|
var Orbis_btf;
|
|
var Leafre_btf;
|
|
var Cabin_to_Orbis;
|
|
var Cabin_to_Leafre;
|
|
var Orbis_docked;
|
|
var Leafre_docked;
|
|
|
|
//Time Setting is in millisecond
|
|
var closeTime = 4 * 60 * 1000; //The time to close the gate
|
|
var beginTime = 5 * 60 * 1000; //The time to begin the ride
|
|
var rideTime = 5 * 60 * 1000; //The time that require move to destination
|
|
|
|
function init() {
|
|
closeTime = em.getTransportationTime(closeTime);
|
|
beginTime = em.getTransportationTime(beginTime);
|
|
rideTime = em.getTransportationTime(rideTime);
|
|
|
|
Orbis_btf = em.getChannelServer().getMapFactory().getMap(200000132);
|
|
Leafre_btf = em.getChannelServer().getMapFactory().getMap(240000111);
|
|
Cabin_to_Orbis = em.getChannelServer().getMapFactory().getMap(200090210);
|
|
Cabin_to_Leafre = em.getChannelServer().getMapFactory().getMap(200090200);
|
|
Orbis_docked = em.getChannelServer().getMapFactory().getMap(200000131);
|
|
Leafre_docked = em.getChannelServer().getMapFactory().getMap(240000110);
|
|
Orbis_Station = em.getChannelServer().getMapFactory().getMap(200000100);
|
|
Leafre_Station = em.getChannelServer().getMapFactory().getMap(240000100);
|
|
|
|
scheduleNew();
|
|
}
|
|
|
|
function scheduleNew() {
|
|
em.setProperty("docked", "true");
|
|
Orbis_docked.setDocked(true);
|
|
Leafre_docked.setDocked(true);
|
|
|
|
em.setProperty("entry", "true");
|
|
em.schedule("stopEntry", closeTime); //The time to close the gate
|
|
em.schedule("takeoff", beginTime); //The time to begin the ride
|
|
}
|
|
|
|
function stopEntry() {
|
|
em.setProperty("entry","false");
|
|
}
|
|
|
|
function takeoff() {
|
|
Orbis_btf.warpEveryone(Cabin_to_Leafre.getId());
|
|
Leafre_btf.warpEveryone(Cabin_to_Orbis.getId());
|
|
|
|
Orbis_docked.broadcastShip(false);
|
|
Leafre_docked.broadcastShip(false);
|
|
|
|
em.setProperty("docked","false");
|
|
Orbis_docked.setDocked(false);
|
|
Leafre_docked.setDocked(false);
|
|
|
|
em.schedule("arrived", rideTime); //The time that require move to destination
|
|
}
|
|
|
|
function arrived() {
|
|
Cabin_to_Orbis.warpEveryone(Orbis_Station.getId(), 0);
|
|
Cabin_to_Leafre.warpEveryone(Leafre_Station.getId(), 0);
|
|
|
|
Orbis_docked.broadcastShip(true);
|
|
Leafre_docked.broadcastShip(true);
|
|
|
|
scheduleNew();
|
|
}
|
|
|
|
function cancelSchedule() {}
|