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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user