Nihal quests + Reactor's mapitem detection + MapleQuestMesoFetcher

Improved quests and game progression in the Nihal Desert region.
Reactors that uses map items now automatically detects those already on the ground after changing states.
New tool: MapleQuestMesoFetcher. This tool parses the Quest.wz XML files, detecting and reporting quest ids from quests that does not properly checks for mesos to take from the player before completing the quest.
This commit is contained in:
ronancpl
2017-12-07 19:08:38 -02:00
parent 8dba6957df
commit f698c41f00
118 changed files with 5819 additions and 1160 deletions

View File

@@ -0,0 +1,10 @@
function start(ms) {
var map = ms.getClient().getChannelServer().getMapFactory().getMap(926000000);
map.resetPQ(1);
if(map.countMonster(9100013) == 0) {
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9100013), new java.awt.Point(82, 200));
}
return(true);
}

View File

@@ -0,0 +1,25 @@
/*
This file is part of the HeavenMS (MapleSolaxiaV2) MapleStory Server
Copyleft (L) 2017 RonanLana
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/>.
*/
function start(ms) {
var map = ms.getClient().getChannelServer().getMapFactory().getMap(926000010);
map.resetPQ(1);
return(true);
}

View File

@@ -0,0 +1,20 @@
function getInactiveReactors(map) {
var reactors = new Array();
var iter = map.getReactors().iterator();
while (iter.hasNext()) {
var mo = iter.next();
if (mo.getState() >= 7) {
reactors.push(mo);
}
}
return reactors;
}
function start(ms) {
var map = ms.getClient().getChannelServer().getMapFactory().getMap(926120300);
map.resetReactors(getInactiveReactors(map));
return(true);
}