Log rearrangement + new map scripts

Changed log folders to apply yyyy-MM-dd mask. Created some scripts to
fix race conditions involving delayed arrivals to travel events in-game.
This commit is contained in:
ronancpl
2017-04-03 00:48:10 -03:00
parent 5f01d3b7fd
commit b2da79ff13
19 changed files with 188 additions and 7 deletions

View File

@@ -1071,6 +1071,20 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject {
keymap.remove(Integer.valueOf(key));
}
}
protected MapleMap getWarpMap(int map) {
MapleMap target;
if (getEventInstance() == null) {
target = client.getChannelServer().getMapFactory().getMap(map);
} else {
target = getEventInstance().getMapInstance(map);
}
return target;
}
public void warp(int map) {
changeMap(getWarpMap(map), getWarpMap(map).getPortal(0));
}
public void changeMap(int map) {
changeMap(map, 0);