diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/GiantsCaveNpc.java b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/GiantsCaveNpc.java deleted file mode 100644 index f446476d69..0000000000 --- a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/GiantsCaveNpc.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package ai.areas.Aden.GiantsCaveNpc; - -import com.l2jmobius.gameserver.model.actor.L2Npc; -import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; -import com.l2jmobius.gameserver.network.serverpackets.PlaySound; - -import ai.AbstractNpcAI; - -/** - * Giants Cave Npcs AI - * @author Gigi - * @date 2017-03-04 - [17:33:25] - */ -public class GiantsCaveNpc extends AbstractNpcAI -{ - // NPC - private static final int SUMADRIBA = 34217; - private static final int KRENAHT = 34237; - private static final int STHOR = 34219; - private static final int GIANT_TELEPORT = 34223; - - private GiantsCaveNpc() - { - addTalkId(SUMADRIBA, KRENAHT, GIANT_TELEPORT, STHOR); - addFirstTalkId(SUMADRIBA, KRENAHT, GIANT_TELEPORT, STHOR); - } - - @Override - public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) - { - String htmltext = null; - switch (event) - { - case "34237.html": - case "34237-1.html": - case "34237-2.html": - case "34237-3.html": - case "34237-4.html": - case "34237-5.html": - case "34237-6.html": - { - htmltext = event; - break; - } - case "first_area": - { - htmltext = "34223-1.html"; - break; - } - case "second_area": - { - htmltext = "34223-1.html"; - break; - } - case "thrid_area": - { - htmltext = "34223-1.html"; - break; - } - case "stronghold": - { - htmltext = "34223-2.html"; - break; - } - case "relics_rooom": - { - htmltext = "34223-3.html"; - break; - } - } - return htmltext; - } - - @Override - public String onFirstTalk(L2Npc npc, L2PcInstance player) - { - switch (npc.getId()) - { - case SUMADRIBA: - { - player.sendPacket(new PlaySound(3, "Npcdialog1.schmadriba_faction_1", 0, 0, 0, 0, 0)); - break; - } - case KRENAHT: - { - if (getRandom(10) < 5) - { - player.sendPacket(new PlaySound(3, "Npcdialog1.krenat_faction_2", 0, 0, 0, 0, 0)); - } - else - { - player.sendPacket(new PlaySound(3, "Npcdialog1.krenat_faction_1", 0, 0, 0, 0, 0)); - } - break; - } - case STHOR: - { - if (getRandom(10) < 4) - { - player.sendPacket(new PlaySound(3, "Npcdialog1.stor_faction_2", 0, 0, 0, 0, 0)); - } - else - { - player.sendPacket(new PlaySound(3, "Npcdialog1.stor_faction_1", 0, 0, 0, 0, 0)); - } - break; - } - } - return npc.getId() + ".html"; - } - - public static void main(String[] args) - { - new GiantsCaveNpc(); - } -} diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34217.html b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34217.html similarity index 100% rename from L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34217.html rename to L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34217.html diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34219.html b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34219.html similarity index 100% rename from L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34219.html rename to L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34219.html diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34223-1.html b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34223-1.html similarity index 100% rename from L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34223-1.html rename to L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34223-1.html diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34223-2.html b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34223-2.html similarity index 100% rename from L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34223-2.html rename to L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34223-2.html diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34223-3.html b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34223-3.html similarity index 100% rename from L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34223-3.html rename to L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34223-3.html diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34223.html b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34223.html similarity index 71% rename from L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34223.html rename to L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34223.html index 53bd4ad49c..ba51e16cbb 100644 --- a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34223.html +++ b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34223.html @@ -3,9 +3,9 @@ This is a Teleport Device installed by the Giant Pursuers to teleport into the G To use it, you need some special qualifications. The necessary qualifications, and the available teleport destinations, are as follow.

Qualification - Giant Pursuers faction level 2 and above Location - Upper level of the Giant's Cave, Kamael's Stronghold,entrance to the Giants' Room of Relics


- - - - - + + + + + \ No newline at end of file diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-1.html b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-1.html similarity index 93% rename from L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-1.html rename to L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-1.html index 50084516fa..e3fb611c7c 100644 --- a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-1.html +++ b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-1.html @@ -2,5 +2,5 @@ I have heard from Kekropus that the Resistance Mark has been handed to those of you who have helped us here.
However, the Giants have found out about the mark, and we can no longer guarantee the safety of those who hold it.
Kekropus finds this situation regrettable. He has instructed us to take the Resistance Marks back from those who hold it, and offer a reward for their hard work. However, only those who hold Stage 2 or above Resistance Marks are eligible to receive rewards.
- + \ No newline at end of file diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-2.html b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-2.html similarity index 100% rename from L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-2.html rename to L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-2.html diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-3.html b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-3.html similarity index 100% rename from L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-3.html rename to L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-3.html diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-4.html b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-4.html similarity index 86% rename from L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-4.html rename to L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-4.html index 99e8357d33..573b1b6a5e 100644 --- a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-4.html +++ b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-4.html @@ -2,8 +2,8 @@ Are you curious about the Giant Pursuers Talisman? The Giant Pursuers Talisman is given to those who help the work of the Giant Pursuers. But it's not easy to make, and that means we can't just hand them out at will.
If you would collect the ingredients necessary to make the Giant Pursuers Talisman, I can use those ingredients to make the Talisman.
I can also help you to improve the performance of the Giant Pursuers Talisman.
- - + + \ No newline at end of file diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-5.html b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-5.html similarity index 94% rename from L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-5.html rename to L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-5.html index 844951c168..baf46beea2 100644 --- a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-5.html +++ b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-5.html @@ -4,5 +4,5 @@ If you want to make a Giant Pursuers Talisman, you'll need to collect the core m The core ingredients are the Giant Crystal and the Giant's Energy. The Giant Crystal is contained in the supply box that we have given you in exchange for your hep with our missions.
Also, the performance of the talismans can be improved, but that will require additional materials. Be sure to check beforehand.
If you want to make a talisman, prepare the materials necessary. Also be prepared to pay the cost.
- + \ No newline at end of file diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-6.html b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-6.html similarity index 94% rename from L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-6.html rename to L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-6.html index b233db5e6e..57af153ca3 100644 --- a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237-6.html +++ b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237-6.html @@ -2,5 +2,5 @@ What effects does the Giant Pursuers Talisman have, you ask? You're quite the pragmatist, I see. Well, it's nothing difficult to tell you, so I will.
We came to create the Giant TrPursuers Talisman while searching for a way to gain the advantage when taking on the Giants. If you wear the Giant Pursuers Talisman, we will be able to help you when you need to take on the Giants.
Of course, it doesn't apply to all Giants. It'll be less than useless against such powerful beings as Mimir, Ramona, or Helios, but with the other run-of-the-mill giants, it should be quite potent.
- + \ No newline at end of file diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237.html b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237.html similarity index 72% rename from L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237.html rename to L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237.html index 7f09dcb62d..ca53a76208 100644 --- a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/Aden/GiantsCaveNpc/34237.html +++ b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/34237.html @@ -1,8 +1,8 @@ Krenaht:
You must be quite interested in the Giants to bring yourself to such a place. I am Krenaht, manager of the Giant Pursuers under Kekropus' command.
When the Superion emerged, and Kekropus together with it, I have been placed in charge of matters relating to the Giant's Cave.
- - - + + + \ No newline at end of file diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/GiantsCave.java b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/GiantsCave.java index 579800a65c..7825be19ac 100644 --- a/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/GiantsCave.java +++ b/L2J_Mobius_Helios/dist/game/data/scripts/ai/areas/GiantsCave/GiantsCave.java @@ -1,112 +1,132 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package ai.areas.GiantsCave; - -import com.l2jmobius.gameserver.enums.ChatType; -import com.l2jmobius.gameserver.model.L2World; -import com.l2jmobius.gameserver.model.actor.L2Attackable; -import com.l2jmobius.gameserver.model.actor.L2Npc; -import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; -import com.l2jmobius.gameserver.network.NpcStringId; - -import ai.AbstractNpcAI; - -/** - * Giant's Cave AI. - * @author Gnacik, St3eT - */ -public final class GiantsCave extends AbstractNpcAI -{ - // NPC - private static final int[] SCOUTS = - { - 22668, // Gamlin (Scout) - 22669, // Leogul (Scout) - }; - - private GiantsCave() - { - addAttackId(SCOUTS); - addAggroRangeEnterId(SCOUTS); - } - - @Override - public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) - { - if (event.equals("ATTACK") && (player != null) && (npc != null) && !npc.isDead()) - { - if (npc.getId() == SCOUTS[0]) // Gamlin - { - npc.broadcastSay(ChatType.NPC_SHOUT, NpcStringId.INTRUDER_DETECTED); - } - else - { - npc.broadcastSay(ChatType.NPC_SHOUT, NpcStringId.OH_GIANTS_AN_INTRUDER_HAS_BEEN_DISCOVERED); - } - - L2World.getInstance().forEachVisibleObjectInRange(npc, L2Attackable.class, 450, characters -> - { - if ((getRandomBoolean())) - { - addAttackPlayerDesire(characters, player); - } - }); - } - else if (event.equals("CLEAR") && (npc != null) && !npc.isDead()) - { - npc.setScriptValue(0); - } - return super.onAdvEvent(event, npc, player); - } - - @Override - public String onAttack(L2Npc npc, L2PcInstance attacker, int damage, boolean isSummon) - { - if (npc.isScriptValue(0)) - { - npc.setScriptValue(1); - startQuestTimer("ATTACK", 6000, npc, attacker); - startQuestTimer("CLEAR", 120000, npc, null); - } - return super.onAttack(npc, attacker, damage, isSummon); - } - - @Override - public String onAggroRangeEnter(L2Npc npc, L2PcInstance player, boolean isSummon) - { - if (npc.isScriptValue(0)) - { - npc.setScriptValue(1); - if (getRandomBoolean()) - { - npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.YOU_GUYS_ARE_DETECTED); - } - else - { - npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.WHAT_KIND_OF_CREATURES_ARE_YOU); - } - startQuestTimer("ATTACK", 6000, npc, player); - startQuestTimer("CLEAR", 120000, npc, null); - } - return super.onAggroRangeEnter(npc, player, isSummon); - } - - public static void main(String[] args) - { - new GiantsCave(); - } -} +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package ai.areas.GiantsCave; + +import com.l2jmobius.gameserver.model.actor.L2Npc; +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; +import com.l2jmobius.gameserver.network.serverpackets.PlaySound; + +import ai.AbstractNpcAI; + +/** + * Giants Cave Npcs AI + * @author Gigi + * @date 2017-03-04 - [17:33:25] + */ +public class GiantsCave extends AbstractNpcAI +{ + // NPC + private static final int SUMADRIBA = 34217; + private static final int KRENAHT = 34237; + private static final int STHOR = 34219; + private static final int GIANT_TELEPORT = 34223; + + private GiantsCave() + { + addTalkId(SUMADRIBA, KRENAHT, GIANT_TELEPORT, STHOR); + addFirstTalkId(SUMADRIBA, KRENAHT, GIANT_TELEPORT, STHOR); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + String htmltext = null; + switch (event) + { + case "34237.html": + case "34237-1.html": + case "34237-2.html": + case "34237-3.html": + case "34237-4.html": + case "34237-5.html": + case "34237-6.html": + { + htmltext = event; + break; + } + case "first_area": + { + htmltext = "34223-1.html"; + break; + } + case "second_area": + { + htmltext = "34223-1.html"; + break; + } + case "thrid_area": + { + htmltext = "34223-1.html"; + break; + } + case "stronghold": + { + htmltext = "34223-2.html"; + break; + } + case "relics_rooom": + { + htmltext = "34223-3.html"; + break; + } + } + return htmltext; + } + + @Override + public String onFirstTalk(L2Npc npc, L2PcInstance player) + { + switch (npc.getId()) + { + case SUMADRIBA: + { + player.sendPacket(new PlaySound(3, "Npcdialog1.schmadriba_faction_1", 0, 0, 0, 0, 0)); + break; + } + case KRENAHT: + { + if (getRandom(10) < 5) + { + player.sendPacket(new PlaySound(3, "Npcdialog1.krenat_faction_2", 0, 0, 0, 0, 0)); + } + else + { + player.sendPacket(new PlaySound(3, "Npcdialog1.krenat_faction_1", 0, 0, 0, 0, 0)); + } + break; + } + case STHOR: + { + if (getRandom(10) < 4) + { + player.sendPacket(new PlaySound(3, "Npcdialog1.stor_faction_2", 0, 0, 0, 0, 0)); + } + else + { + player.sendPacket(new PlaySound(3, "Npcdialog1.stor_faction_1", 0, 0, 0, 0, 0)); + } + break; + } + } + return npc.getId() + ".html"; + } + + public static void main(String[] args) + { + new GiantsCave(); + } +}