You know when you disconnect from pianus in GMS you get warped to aqua?
This will do that.
This has every map that has a forcible return map.
In MapleMapfactory.java
Creds:
Matze/Serp
Me
NOTE:
If you would like to change the forced return map of a map, using xml files go to the file and search for "forcedReturn" and change the value to what map you want it to change to.
This will do that.
This has every map that has a forcible return map.
In MapleMapfactory.java
In MapleMap.javaChange:
To:Code:map = new MapleMap(mapid, channel, MapleDataTool.getInt("info/returnMap", mapData), monsterRate);
Code:map = new MapleMap(mapid, channel, MapleDataTool.getInt("info/returnMap", mapData), MapleDataTool.getInt("info/forcedReturn", mapData), monsterRate);
In MapleCharacter.javaAdd:
After:Code:private int forcedMapId;
Change:Code:private int returnMapId;
To:Code:public MapleMap(int mapid, int channel, int returnMapId, float monsterRate) {
Add:Code:public MapleMap(int mapid, int channel, int returnMapId, int forcedMapId, float monsterRate) {
After:Code:this.forcedMapId = forcedMapId;
Add:Code:this.returnMapId = returnMapId;
After:Code:public int getForcedMapId() { return forcedMapId; }
Code:public MapleMap getReturnMap() { return ChannelServer.getInstance(channel).getMapFactory().getMap(returnMapId); }
Have fun.Change:
To:Code:if (map == null) { ps.setInt(20, 0); } else { ps.setInt(20, map.getId()); }
Code:if (map == null) { ps.setInt(20, 0); } else { if(map.getForcedMapId() != 999999999) ps.setInt(20, map.getForcedMapId()); else ps.setInt(20, map.getId()); }
Creds:
Matze/Serp
Me
NOTE:
If you would like to change the forced return map of a map, using xml files go to the file and search for "forcedReturn" and change the value to what map you want it to change to.
Last edited: