- Joined
- Mar 17, 2009
- Messages
- 1,917
- Reaction score
- 539
MapleCharacter ChangeMap from:
To:
Credits to Kev for fixing it. (He told me to release it)
The problem was doing this:
Red Square = Where it goes to.
Green Square = Where it should go to.
Purple Square = Closer up of correct portal
PHP:
public void changeMap(final MapleMap to, final MaplePortal pto) {
if (to.getId() == 100000200 || to.getId() == 211000100 || to.getId() == 220000300) {
changeMapInternal(to, pto.getPosition(), MaplePacketCreator.getWarpToMap(to, pto.getId() - 2, this));
} else {
changeMapInternal(to, pto.getPosition(), MaplePacketCreator.getWarpToMap(to, pto.getId(), this));
}
}
To:
PHP:
public void changeMap(final MapleMap to, final MaplePortal pto) {
changeMapInternal(to, pto.getPosition(), MaplePacketCreator.getWarpToMap(to, pto.getId(), this));
}
Credits to Kev for fixing it. (He told me to release it)
The problem was doing this:
Red Square = Where it goes to.
Green Square = Where it should go to.
Purple Square = Closer up of correct portal

