For those who wants GMS type (For example, When u DC in Zakum altar, you will be automatically send to El Nath). try this
In MapleCharacter.java, find
Code:
if (channelserver) {
MapleMapFactory mapFactory = ChannelServer.getInstance(client.getChannel()).getMapFactory();
ret.map = mapFactory.getMap(ret.mapid);
if (ret.map == null) { //char is on a map that doesn't exist warp it to henesys
ret.map = mapFactory.getMap(100000000);
Replace it with
Code:
if (channelserver) {
MapleMapFactory mapFactory = ChannelServer.getInstance(client.getChannel()).getMapFactory();
ret.map = mapFactory.getMap(ret.mapid);
if (ret.map == null) { //char is on a map that doesn't exist warp it to henesys
ret.map = mapFactory.getMap(100000000);
} else if (ret.map.getId() >= 103000800 && ret.map.getId() <= 103000805) { // KPQ
ret.map = mapFactory.getMap(103000890);
} else if (ret.map.getId() >= 922010000 && ret.map.getId() <= 922011000) { // LPQ
ret.map = mapFactory.getMap(922010000);
} else if (ret.map.getId() >= 809050000 && ret.map.getId() <= 809050015) { // LMPQ
ret.map = mapFactory.getMap(809050017);
} else if (ret.map.getId() >= 920010000 && ret.map.getId() <= 920011100) { // OPQ
ret.map = mapFactory.getMap(920011200);
} else if (ret.map.getId() == 280030000) { // Zakum's Altar
ret.map = mapFactory.getMap(211000000);
} else if (ret.map.getId() == 220080001) { // Origin of the Clock Tower
ret.map = mapFactory.getMap(220080000);
} else if (ret.map.getId() >= 801040001 && ret.map.getId() <= 801040100) { // Showa dungeon
ret.map = mapFactory.getMap(801040000);
} else if (ret.map.getId() >= 211041500 && ret.map.getId() <= 211042300) { // Elnath dungeon
ret.map = mapFactory.getMap(211041400);
}
Compile and you're done
Credits:akakori