Separated the Classic Datapack to it's own folder.

This commit is contained in:
MobiusDev
2015-05-02 03:45:56 +00:00
parent 08e28fe058
commit 484bff80bb
11501 changed files with 2200482 additions and 627 deletions

View File

@@ -54,7 +54,7 @@ public class TarBeetleSpawn implements IXmlReader
@Override
public void load()
{
parseDatapackFile("data/spawnZones/tar_beetle.xml");
parseDatapackFile("spawnZones/tar_beetle.xml");
if (!zones.isEmpty())
{
spawnTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(() -> zones.forEach(SpawnZone::refreshSpawn), 1000, 60000);

View File

@@ -100,7 +100,7 @@ public final class ManorManager extends AbstractNpcAI
}
return "manager.htm";
}
return getHtm(player.getHtmlPrefix(), "data/html/npcdefault.htm");
return getHtm(player.getHtmlPrefix(), "html/npcdefault.htm");
}
// @formatter:off

View File

@@ -112,7 +112,7 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader
@Override
public void load()
{
parseDatapackFile("config/MentorCoins.xml");
parseDatapackFile("../config/MentorCoins.xml");
LOGGER.log(Level.INFO, getClass().getSimpleName() + ": Loaded: " + MENTEE_COINS.size() + " mentee coins");
}

View File

@@ -20,7 +20,6 @@ package ai.npc.Nomi;
import ai.npc.AbstractNpcAI;
import com.l2jserver.Config;
import com.l2jserver.gameserver.model.Location;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
@@ -77,11 +76,6 @@ public final class Nomi extends AbstractNpcAI
addTalkId(NOMI);
addFirstTalkId(NOMI);
if (Config.SERVER_CLASSIC_SUPPORT)
{
return;
}
for (Location loc : SPAWN_LOCATIONS)
{
addSpawn(NOMI, loc, false, 0);

View File

@@ -46,7 +46,7 @@ public class NpcBuffersData implements IXmlReader
@Override
public void load()
{
parseDatapackFile("data/scripts/ai/npc/NpcBuffers/NpcBuffersData.xml");
parseDatapackFile("scripts/ai/npc/NpcBuffers/NpcBuffersData.xml");
LOGGER.log(Level.INFO, getClass().getSimpleName() + ": Loaded: " + _npcBuffers.size() + " buffers data.");
}

View File

@@ -816,7 +816,7 @@ public final class Raina extends AbstractNpcAI
private NpcHtmlMessage getNpcHtmlMessage(L2PcInstance player, L2Npc npc, String fileName)
{
final NpcHtmlMessage html = new NpcHtmlMessage(npc.getObjectId());
html.setHtml(HtmCache.getInstance().getHtm(player.getHtmlPrefix(), "data/scripts/ai/npc/Raina/" + fileName));
html.setHtml(HtmCache.getInstance().getHtm(player.getHtmlPrefix(), "scripts/ai/npc/Raina/" + fileName));
return html;
}