diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_Classic_1.0/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_Classic_1.0/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_Classic_1.0/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_Classic_1.0/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_Classic_1.5_AgeOfSplendor/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_Classic_1.5_AgeOfSplendor/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_Classic_1.5_AgeOfSplendor/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_Classic_1.5_AgeOfSplendor/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_Classic_2.5_Zaken/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_Classic_2.5_Zaken/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_Classic_2.5_Zaken/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_Classic_2.5_Zaken/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_Classic_2.7_Antharas/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_Classic_2.7_Antharas/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_Classic_2.7_Antharas/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_Classic_2.7_Antharas/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_Classic_2.8_SevenSigns/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_Classic_2.8_SevenSigns/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_Classic_2.8_SevenSigns/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_Classic_2.8_SevenSigns/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_Classic_2.9_SecretOfEmpire/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_Classic_2.9_SecretOfEmpire/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_Classic_2.9_SecretOfEmpire/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_Classic_2.9_SecretOfEmpire/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_Essence_6.1_BattleChronicle/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_Essence_6.1_BattleChronicle/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_Essence_6.1_BattleChronicle/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_Essence_6.1_BattleChronicle/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null) diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java index ac06ff8325..18347f8933 100644 --- a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/handlers/actionshifthandlers/NpcActionShift.java @@ -117,7 +117,7 @@ public class NpcActionShift implements IActionShiftHandler if (template != null) { final String fileName = template.getSpawnTemplate().getFile().getAbsolutePath().substring(Config.DATAPACK_ROOT.getAbsolutePath().length() + 1).replace('\\', '/'); - html.replace("%spawnfile%", fileName); + html.replace("%spawnfile%", fileName.replace("data/spawns/", "")); html.replace("%spawnname%", String.valueOf(template.getSpawnTemplate().getName())); // used String.valueOf because it can be null html.replace("%spawngroup%", String.valueOf(template.getGroup().getName())); // used String.valueOf because it can be null if (template.getSpawnTemplate().getAI() != null)