Tired of resetting reactors because they got bugged? With this, you never need to reset reactors ever again ! :)
MapleCharacter
changeMapInternal
MapleMapCode:if (inBoss() && getMap().getPlayerCount() <= 1) { if (getMap().getMonsterCount() > 1) getMap().killAllMonsters(false); getMap().resetReactors(); getMap().getReturnMap().resetReactors(); for (MaplePortal p : getMap().getReturnMap().getPortals()) { if (p.CLOSED) { p.setPortalStatus(p.OPEN); } }
MapleClientCode:public int getPlayerCount() { List<MapleMapObject> players = getMapObjectsInRange(new Point(0, 0), Double.POSITIVE_INFINITY, Arrays.asList(MapleMapObjectType.PLAYER)); return players.size(); } public int getMonsterCount() { List<MapleMapObject> monsters = getMapObjectsInRange(new Point(0, 0), Double.POSITIVE_INFINITY, Arrays.asList(MapleMapObjectType.MONSTER)); return monsters.size(); }
disconnect
Code:if (player.inBoss() && player.getMap().getPlayerCount() <= 1) { if (player.getMap().getMonsterCount() > 1) player.getMap().killAllMonsters(false); player.getMap().resetReactors(); player.getMap().getReturnMap().resetReactors(); for (MaplePortal p : player.getMap().getReturnMap().getPortals()) { if (p.CLOSED) { p.setPortalStatus(p.OPEN); } } }P/s : All credits goes to me as nothing that was released here was leeched :)Code:public boolean inBoss() { int a = this.map.getId(); return a == 240060200 || a == 220080001 || a == 801040100 || a == 280030000 || a == 801040100; }
Pressing the heart button would be nice :D



Reply With Quote


