Fixed leaders being able to create expeditions even though the already passed the day limit. Fixed overflow case in calculated max value of skills. Implemented item expiration from DB after the due date. Refactored item flags using byte-length instead of short. Added FieldLimit checks for disappearing item drops and no EXP deduction in limited areas. Added "Quest Item Restore" functionality. Implemented item flag auto-instantiation when generating items. Added gate state update in Papulatus lobby area. Fixed a recent issue regarding bounding box calculation of AoE player skills. Implemented minidungeon close, to occur as soon as the party leader leaves the area. Refactored HenesysPQ attributed out of the MapleMap object, now they should be available from the respective event script. Fixed friendly mobs not dropping item periodically, a recent issue after tweaking the loot system. Fixed Papulatus expedition closing after the exped leader leaves or a minimum of player required to start is no longer there. Fixed several expeditions closing after performing party operations, such as "change party leader". Reviewed expected max damage calculation for summons, which would not work properly in several occasions. Normalized timezone from packets sent to client, now using the same timezone defined from the server flags. Fixed certain scenarios in CPQ that would happen within the stage between the "challenge accepted" and ingress in the battlefield. Revised credits script. Added GM checks in the autoban method.
56 lines
1.9 KiB
JavaScript
56 lines
1.9 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/>.
|
|
*/
|
|
|
|
/**
|
|
@Author Ronan
|
|
|
|
2060005 - Kenta
|
|
Enter 3rd job mount event
|
|
**/
|
|
|
|
function start() {
|
|
if(cm.isQuestCompleted(6002)) {
|
|
cm.sendOk("Thanks for saving the pork.");
|
|
}
|
|
else if(cm.isQuestStarted(6002)) {
|
|
if (cm.haveItem(4031507, 5) && cm.haveItem(4031508,5)) {
|
|
cm.sendOk("Thanks for saving the pork.");
|
|
} else {
|
|
var em = cm.getEventManager("3rdJob_mount");
|
|
if (em == null)
|
|
cm.sendOk("Sorry, but 3rd job advancement (mount) is closed.");
|
|
else {
|
|
if (em.startInstance(cm.getPlayer())) {
|
|
cm.removeAll(4031507);
|
|
cm.removeAll(4031508);
|
|
} else {
|
|
cm.sendOk("There is currently someone in this map, come back later.");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
cm.sendOk("Only few adventurers, from a selected public, are eligible to protect the Watch Hog.");
|
|
}
|
|
|
|
cm.dispose();
|
|
} |