iirc there were reloadmap commands that could reload the xml. Meaning if I added a NPC in the XML and do !reloadmap <map id> , the NPC will appear instead of needing to restart the server.
Seems like v83 reloadmap doesn't work that way & how can I change it ?
else if (sub[0].equals("reloadmap")) { MapleMap oldMap = c.getPlayer().getMap();
MapleMap newMap = c.getChannelServer().getMapFactory().getMap(player.getMapId());
for (MapleCharacter ch : oldMap.getCharacters()) {
ch.changeMap(newMap);
}
oldMap = null;
newMap.respawn();
}


Reply With Quote


