From d1e55ecc7aeedf4a0dd2633038beb80c499e1b12 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sun, 25 Jul 2021 00:46:32 +0000 Subject: [PATCH] Spirit Forest 105 level. Thanks to nasseka. --- .../dist/game/data/html/default/34542.htm | 1 + .../game/data/instances/SpiritForest105.xml | 61 ++++++++ .../instances/SpiritForest/SpiritForest.java | 17 ++- .../dist/game/data/stats/npcs/24600-24699.xml | 144 ++++++++++++++++++ .../game/data/stats/skills/34000-34099.xml | 4 + 5 files changed, 221 insertions(+), 6 deletions(-) create mode 100644 L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/instances/SpiritForest105.xml diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/html/default/34542.htm b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/html/default/34542.htm index ef4c2514e9..af918731ff 100644 --- a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/html/default/34542.htm +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/html/default/34542.htm @@ -8,4 +8,5 @@ Welcome! My name is Benusta. I help adventurers to travel to instance zones. I c + \ No newline at end of file diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/instances/SpiritForest105.xml b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/instances/SpiritForest105.xml new file mode 100644 index 0000000000..e2c9622031 --- /dev/null +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/instances/SpiritForest105.xml @@ -0,0 +1,61 @@ + + + + \ No newline at end of file diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/instances/SpiritForest/SpiritForest.java b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/instances/SpiritForest/SpiritForest.java index 2752e96a47..f5d1398982 100644 --- a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/instances/SpiritForest/SpiritForest.java +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/instances/SpiritForest/SpiritForest.java @@ -34,19 +34,24 @@ import instances.AbstractInstance; */ public class SpiritForest extends AbstractInstance { - private static final int TEMPLATE = 310; // Spirit Forest + private static final int[] TEMPLATE_IDS = + { + 310, + 314 + }; public SpiritForest() { - super(TEMPLATE); - addInstanceLeaveId(TEMPLATE); + super(TEMPLATE_IDS); + addInstanceLeaveId(TEMPLATE_IDS); } @Override public String onAdvEvent(String event, Npc npc, PlayerInstance player) { - if (event.equals("enterInstance")) + if (event.contains("enterInstance")) { + final int templateId = event.contains("105") ? TEMPLATE_IDS[1] : TEMPLATE_IDS[0]; if (player.isInParty()) { final Party party = player.getParty(); @@ -74,12 +79,12 @@ public class SpiritForest extends AbstractInstance for (PlayerInstance member : members) { - enterInstance(member, npc, TEMPLATE); + enterInstance(member, npc, templateId); } } else if (player.isGM()) { - enterInstance(player, npc, TEMPLATE); + enterInstance(player, npc, templateId); } else { diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/npcs/24600-24699.xml b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/npcs/24600-24699.xml index c10a1f4a00..9dd0d882d9 100644 --- a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/npcs/24600-24699.xml +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/npcs/24600-24699.xml @@ -2049,4 +2049,148 @@ + + ELEMENTAL + FEMALE + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ELEMENTAL + FEMALE + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ELEMENTAL + FEMALE + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ELEMENTAL + FEMALE + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/skills/34000-34099.xml b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/skills/34000-34099.xml index 3cc72e09b3..baf5cd28c4 100644 --- a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/skills/34000-34099.xml +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/skills/34000-34099.xml @@ -114,4 +114,8 @@ icon.skill0000 A1 + + icon.skill0000 + P +