[Classic] Support for walking routes.

This commit is contained in:
MobiusDev
2015-05-01 12:57:36 +00:00
parent f6af3b0960
commit 5a57ef698b
2 changed files with 188 additions and 1 deletions

View File

@ -27,6 +27,7 @@ import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import com.l2jserver.Config;
import com.l2jserver.gameserver.ThreadPoolManager;
import com.l2jserver.gameserver.ai.CtrlIntention;
import com.l2jserver.gameserver.enums.ChatType;
@ -74,7 +75,7 @@ public final class WalkingManager implements IXmlReader
@Override
public final void load()
{
parseDatapackFile("data/Routes.xml");
parseDatapackFile(Config.SERVER_CLASSIC_SUPPORT ? "data/classic_routes.xml" : "data/Routes.xml");
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _routes.size() + " walking routes.");
}