diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/html/default/34233.html b/L2J_Mobius_3.0_Helios/dist/game/data/html/default/34233.html new file mode 100644 index 0000000000..b9d4ddcee3 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/html/default/34233.html @@ -0,0 +1,6 @@ +Guardian Irene:
+Greetings. I am Irene, leader of the Mother Tree Guardians.
+We the Mother Tree Guardians are engaged in a variety of activities to revive the dying Mother Tree.
+There is still so much we need to talk about. I hope that we can talk some more when the opportunity is right.
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/multisell/2176.xml b/L2J_Mobius_3.0_Helios/dist/game/data/multisell/2176.xml new file mode 100644 index 0000000000..eec774b8c0 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/multisell/2176.xml @@ -0,0 +1,11 @@ + + + + 34234 + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/multisell/2177.xml b/L2J_Mobius_3.0_Helios/dist/game/data/multisell/2177.xml new file mode 100644 index 0000000000..e2d809c4b6 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/multisell/2177.xml @@ -0,0 +1,159 @@ + + + + 34234 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html new file mode 100644 index 0000000000..3b3d68e315 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html @@ -0,0 +1,7 @@ +Celestiel:
+I see you want to teleport to some place else in the Enchanted Valley. Wherever you end up in the Enchanted Valley, you should be safe.
+I can guarantee that, based on what I've seen until now. So you'd like to head into the depths of the Enchanted Valley? Alright, understood. I will send you there. Please note that the places I can send you may be rather more dangerous than the others. Please exercise particular caution.
+When you return, the Teleport Device that we Mother Tree Guardians have installed may be used. However, remember that to use the Mother Tree Guardians Teleport Device, your Faction level with the Mother Tree Guardians must be 4 or higher.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html new file mode 100644 index 0000000000..774bb53355 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html @@ -0,0 +1,9 @@ +Celestiel:
+The Mother Tree Guardians Talisman has been made with only the best of technologies that we the Mother Tree Guardians have.
+It was made to provide any help possible when engaging in the work of reviving the Mother Tree. If you want one made for you, please bring us the necessary ingredients.
+If you already have one, we can improve its performance. Are you interested?
+ + + + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html new file mode 100644 index 0000000000..3c12294930 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html @@ -0,0 +1,7 @@ +Celestiel:
+To make the Mother Tree Guardians Talisman, you'll need materials. The core is the Life Crystal. It can be gained from the supply boxes given to you as a reward for carrying out our missions.
+You will also need Giant's Energy. This you must find on your own. In addition, it will cost you a nominal fee. If you have all the ingredients for the Mother Tree Guardians Talisman, we will make one for you.
+The Mother Tree Guardians Talisman is also a token of appreciation of sorts that we issue to those who help us.
+While their performance can be improved, this will sometimes requires additional materials. Please be sure to check.
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html new file mode 100644 index 0000000000..67af9a1721 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html @@ -0,0 +1,5 @@ +Celestiel:
+The Mother Tree Guardians Talisman was developed by us in order to help the process of reviving the Mother Tree. It was made using our very best biological knowledge.
+If you are wearing the Mother Tree Guardians Talisman, you will have the upper hand when you are engaged in battle against an plant-type enemy.
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html new file mode 100644 index 0000000000..498ea00509 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html @@ -0,0 +1,7 @@ +Celestiel:
+Who goes there? Ah, you're an adventurer.
+I don't have anything in particular to tell you. What brings you here?
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java new file mode 100644 index 0000000000..a14417723f --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java @@ -0,0 +1,92 @@ +/* + * 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.EnchantedValley.Celestiel; + +import org.l2jmobius.gameserver.model.Location; +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.network.serverpackets.PlaySound; + +import ai.AbstractNpcAI; + +/** + * Celestiel AI + * @author Gigi + * @date 2017-06-13 - [20:09:34] + */ +public class Celestiel extends AbstractNpcAI +{ + // NPC + private static final int CELESTIEL = 34234; + // Teleports + private static final Location SOUTH_LOCATION = new Location(110815, 59655, -3720); + private static final Location NORTH_LOCATION = new Location(124040, 43970, -3720); + + private static final String[] CELESTIEL_VOICE = + { + "Npcdialog1.selestiel_faction_1", + "Npcdialog1.selestiel_faction_2" + }; + + private Celestiel() + { + addTalkId(CELESTIEL); + addFirstTalkId(CELESTIEL); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + switch (event) + { + case "34234-1.html": + case "34234-2.html": + case "34234-3.html": + case "34234-4.html": + { + htmltext = event; + break; + } + case "south": + { + player.teleToLocation(SOUTH_LOCATION); + break; + } + case "north": + { + player.teleToLocation(NORTH_LOCATION); + break; + } + } + return htmltext; + } + + @Override + public String onFirstTalk(Npc npc, PlayerInstance player) + { + + player.sendPacket(new PlaySound(3, CELESTIEL_VOICE[getRandom(2)], 0, 0, 0, 0, 0)); + return "34234.html"; + } + + public static void main(String[] args) + { + new Celestiel(); + } + +} diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/html/default/34233.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/html/default/34233.html new file mode 100644 index 0000000000..b9d4ddcee3 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/html/default/34233.html @@ -0,0 +1,6 @@ +Guardian Irene:
+Greetings. I am Irene, leader of the Mother Tree Guardians.
+We the Mother Tree Guardians are engaged in a variety of activities to revive the dying Mother Tree.
+There is still so much we need to talk about. I hope that we can talk some more when the opportunity is right.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/multisell/2176.xml b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/multisell/2176.xml new file mode 100644 index 0000000000..eec774b8c0 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/multisell/2176.xml @@ -0,0 +1,11 @@ + + + + 34234 + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/multisell/2177.xml b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/multisell/2177.xml new file mode 100644 index 0000000000..e2d809c4b6 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/multisell/2177.xml @@ -0,0 +1,159 @@ + + + + 34234 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html new file mode 100644 index 0000000000..3b3d68e315 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html @@ -0,0 +1,7 @@ +Celestiel:
+I see you want to teleport to some place else in the Enchanted Valley. Wherever you end up in the Enchanted Valley, you should be safe.
+I can guarantee that, based on what I've seen until now. So you'd like to head into the depths of the Enchanted Valley? Alright, understood. I will send you there. Please note that the places I can send you may be rather more dangerous than the others. Please exercise particular caution.
+When you return, the Teleport Device that we Mother Tree Guardians have installed may be used. However, remember that to use the Mother Tree Guardians Teleport Device, your Faction level with the Mother Tree Guardians must be 4 or higher.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html new file mode 100644 index 0000000000..774bb53355 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html @@ -0,0 +1,9 @@ +Celestiel:
+The Mother Tree Guardians Talisman has been made with only the best of technologies that we the Mother Tree Guardians have.
+It was made to provide any help possible when engaging in the work of reviving the Mother Tree. If you want one made for you, please bring us the necessary ingredients.
+If you already have one, we can improve its performance. Are you interested?
+ + + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html new file mode 100644 index 0000000000..3c12294930 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html @@ -0,0 +1,7 @@ +Celestiel:
+To make the Mother Tree Guardians Talisman, you'll need materials. The core is the Life Crystal. It can be gained from the supply boxes given to you as a reward for carrying out our missions.
+You will also need Giant's Energy. This you must find on your own. In addition, it will cost you a nominal fee. If you have all the ingredients for the Mother Tree Guardians Talisman, we will make one for you.
+The Mother Tree Guardians Talisman is also a token of appreciation of sorts that we issue to those who help us.
+While their performance can be improved, this will sometimes requires additional materials. Please be sure to check.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html new file mode 100644 index 0000000000..67af9a1721 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html @@ -0,0 +1,5 @@ +Celestiel:
+The Mother Tree Guardians Talisman was developed by us in order to help the process of reviving the Mother Tree. It was made using our very best biological knowledge.
+If you are wearing the Mother Tree Guardians Talisman, you will have the upper hand when you are engaged in battle against an plant-type enemy.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html new file mode 100644 index 0000000000..498ea00509 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html @@ -0,0 +1,7 @@ +Celestiel:
+Who goes there? Ah, you're an adventurer.
+I don't have anything in particular to tell you. What brings you here?
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java new file mode 100644 index 0000000000..a14417723f --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java @@ -0,0 +1,92 @@ +/* + * 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.EnchantedValley.Celestiel; + +import org.l2jmobius.gameserver.model.Location; +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.network.serverpackets.PlaySound; + +import ai.AbstractNpcAI; + +/** + * Celestiel AI + * @author Gigi + * @date 2017-06-13 - [20:09:34] + */ +public class Celestiel extends AbstractNpcAI +{ + // NPC + private static final int CELESTIEL = 34234; + // Teleports + private static final Location SOUTH_LOCATION = new Location(110815, 59655, -3720); + private static final Location NORTH_LOCATION = new Location(124040, 43970, -3720); + + private static final String[] CELESTIEL_VOICE = + { + "Npcdialog1.selestiel_faction_1", + "Npcdialog1.selestiel_faction_2" + }; + + private Celestiel() + { + addTalkId(CELESTIEL); + addFirstTalkId(CELESTIEL); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + switch (event) + { + case "34234-1.html": + case "34234-2.html": + case "34234-3.html": + case "34234-4.html": + { + htmltext = event; + break; + } + case "south": + { + player.teleToLocation(SOUTH_LOCATION); + break; + } + case "north": + { + player.teleToLocation(NORTH_LOCATION); + break; + } + } + return htmltext; + } + + @Override + public String onFirstTalk(Npc npc, PlayerInstance player) + { + + player.sendPacket(new PlaySound(3, CELESTIEL_VOICE[getRandom(2)], 0, 0, 0, 0, 0)); + return "34234.html"; + } + + public static void main(String[] args) + { + new Celestiel(); + } + +} diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/html/default/34233.html b/L2J_Mobius_5.0_Salvation/dist/game/data/html/default/34233.html new file mode 100644 index 0000000000..b9d4ddcee3 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/html/default/34233.html @@ -0,0 +1,6 @@ +Guardian Irene:
+Greetings. I am Irene, leader of the Mother Tree Guardians.
+We the Mother Tree Guardians are engaged in a variety of activities to revive the dying Mother Tree.
+There is still so much we need to talk about. I hope that we can talk some more when the opportunity is right.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/multisell/2176.xml b/L2J_Mobius_5.0_Salvation/dist/game/data/multisell/2176.xml new file mode 100644 index 0000000000..eec774b8c0 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/multisell/2176.xml @@ -0,0 +1,11 @@ + + + + 34234 + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/multisell/2177.xml b/L2J_Mobius_5.0_Salvation/dist/game/data/multisell/2177.xml new file mode 100644 index 0000000000..e2d809c4b6 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/multisell/2177.xml @@ -0,0 +1,159 @@ + + + + 34234 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html new file mode 100644 index 0000000000..3b3d68e315 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html @@ -0,0 +1,7 @@ +Celestiel:
+I see you want to teleport to some place else in the Enchanted Valley. Wherever you end up in the Enchanted Valley, you should be safe.
+I can guarantee that, based on what I've seen until now. So you'd like to head into the depths of the Enchanted Valley? Alright, understood. I will send you there. Please note that the places I can send you may be rather more dangerous than the others. Please exercise particular caution.
+When you return, the Teleport Device that we Mother Tree Guardians have installed may be used. However, remember that to use the Mother Tree Guardians Teleport Device, your Faction level with the Mother Tree Guardians must be 4 or higher.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html new file mode 100644 index 0000000000..774bb53355 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html @@ -0,0 +1,9 @@ +Celestiel:
+The Mother Tree Guardians Talisman has been made with only the best of technologies that we the Mother Tree Guardians have.
+It was made to provide any help possible when engaging in the work of reviving the Mother Tree. If you want one made for you, please bring us the necessary ingredients.
+If you already have one, we can improve its performance. Are you interested?
+ + + + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html new file mode 100644 index 0000000000..3c12294930 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html @@ -0,0 +1,7 @@ +Celestiel:
+To make the Mother Tree Guardians Talisman, you'll need materials. The core is the Life Crystal. It can be gained from the supply boxes given to you as a reward for carrying out our missions.
+You will also need Giant's Energy. This you must find on your own. In addition, it will cost you a nominal fee. If you have all the ingredients for the Mother Tree Guardians Talisman, we will make one for you.
+The Mother Tree Guardians Talisman is also a token of appreciation of sorts that we issue to those who help us.
+While their performance can be improved, this will sometimes requires additional materials. Please be sure to check.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html new file mode 100644 index 0000000000..67af9a1721 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html @@ -0,0 +1,5 @@ +Celestiel:
+The Mother Tree Guardians Talisman was developed by us in order to help the process of reviving the Mother Tree. It was made using our very best biological knowledge.
+If you are wearing the Mother Tree Guardians Talisman, you will have the upper hand when you are engaged in battle against an plant-type enemy.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html new file mode 100644 index 0000000000..498ea00509 --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html @@ -0,0 +1,7 @@ +Celestiel:
+Who goes there? Ah, you're an adventurer.
+I don't have anything in particular to tell you. What brings you here?
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java new file mode 100644 index 0000000000..a14417723f --- /dev/null +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java @@ -0,0 +1,92 @@ +/* + * 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.EnchantedValley.Celestiel; + +import org.l2jmobius.gameserver.model.Location; +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.network.serverpackets.PlaySound; + +import ai.AbstractNpcAI; + +/** + * Celestiel AI + * @author Gigi + * @date 2017-06-13 - [20:09:34] + */ +public class Celestiel extends AbstractNpcAI +{ + // NPC + private static final int CELESTIEL = 34234; + // Teleports + private static final Location SOUTH_LOCATION = new Location(110815, 59655, -3720); + private static final Location NORTH_LOCATION = new Location(124040, 43970, -3720); + + private static final String[] CELESTIEL_VOICE = + { + "Npcdialog1.selestiel_faction_1", + "Npcdialog1.selestiel_faction_2" + }; + + private Celestiel() + { + addTalkId(CELESTIEL); + addFirstTalkId(CELESTIEL); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + switch (event) + { + case "34234-1.html": + case "34234-2.html": + case "34234-3.html": + case "34234-4.html": + { + htmltext = event; + break; + } + case "south": + { + player.teleToLocation(SOUTH_LOCATION); + break; + } + case "north": + { + player.teleToLocation(NORTH_LOCATION); + break; + } + } + return htmltext; + } + + @Override + public String onFirstTalk(Npc npc, PlayerInstance player) + { + + player.sendPacket(new PlaySound(3, CELESTIEL_VOICE[getRandom(2)], 0, 0, 0, 0, 0)); + return "34234.html"; + } + + public static void main(String[] args) + { + new Celestiel(); + } + +} diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/html/default/34233.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/html/default/34233.html new file mode 100644 index 0000000000..b9d4ddcee3 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/html/default/34233.html @@ -0,0 +1,6 @@ +Guardian Irene:
+Greetings. I am Irene, leader of the Mother Tree Guardians.
+We the Mother Tree Guardians are engaged in a variety of activities to revive the dying Mother Tree.
+There is still so much we need to talk about. I hope that we can talk some more when the opportunity is right.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/multisell/2176.xml b/L2J_Mobius_5.5_EtinasFate/dist/game/data/multisell/2176.xml new file mode 100644 index 0000000000..eec774b8c0 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/multisell/2176.xml @@ -0,0 +1,11 @@ + + + + 34234 + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/multisell/2177.xml b/L2J_Mobius_5.5_EtinasFate/dist/game/data/multisell/2177.xml new file mode 100644 index 0000000000..e2d809c4b6 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/multisell/2177.xml @@ -0,0 +1,159 @@ + + + + 34234 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html new file mode 100644 index 0000000000..3b3d68e315 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html @@ -0,0 +1,7 @@ +Celestiel:
+I see you want to teleport to some place else in the Enchanted Valley. Wherever you end up in the Enchanted Valley, you should be safe.
+I can guarantee that, based on what I've seen until now. So you'd like to head into the depths of the Enchanted Valley? Alright, understood. I will send you there. Please note that the places I can send you may be rather more dangerous than the others. Please exercise particular caution.
+When you return, the Teleport Device that we Mother Tree Guardians have installed may be used. However, remember that to use the Mother Tree Guardians Teleport Device, your Faction level with the Mother Tree Guardians must be 4 or higher.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html new file mode 100644 index 0000000000..774bb53355 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html @@ -0,0 +1,9 @@ +Celestiel:
+The Mother Tree Guardians Talisman has been made with only the best of technologies that we the Mother Tree Guardians have.
+It was made to provide any help possible when engaging in the work of reviving the Mother Tree. If you want one made for you, please bring us the necessary ingredients.
+If you already have one, we can improve its performance. Are you interested?
+ + + + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html new file mode 100644 index 0000000000..3c12294930 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html @@ -0,0 +1,7 @@ +Celestiel:
+To make the Mother Tree Guardians Talisman, you'll need materials. The core is the Life Crystal. It can be gained from the supply boxes given to you as a reward for carrying out our missions.
+You will also need Giant's Energy. This you must find on your own. In addition, it will cost you a nominal fee. If you have all the ingredients for the Mother Tree Guardians Talisman, we will make one for you.
+The Mother Tree Guardians Talisman is also a token of appreciation of sorts that we issue to those who help us.
+While their performance can be improved, this will sometimes requires additional materials. Please be sure to check.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html new file mode 100644 index 0000000000..67af9a1721 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html @@ -0,0 +1,5 @@ +Celestiel:
+The Mother Tree Guardians Talisman was developed by us in order to help the process of reviving the Mother Tree. It was made using our very best biological knowledge.
+If you are wearing the Mother Tree Guardians Talisman, you will have the upper hand when you are engaged in battle against an plant-type enemy.
+ + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html new file mode 100644 index 0000000000..498ea00509 --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html @@ -0,0 +1,7 @@ +Celestiel:
+Who goes there? Ah, you're an adventurer.
+I don't have anything in particular to tell you. What brings you here?
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java new file mode 100644 index 0000000000..a14417723f --- /dev/null +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java @@ -0,0 +1,92 @@ +/* + * 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.EnchantedValley.Celestiel; + +import org.l2jmobius.gameserver.model.Location; +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.network.serverpackets.PlaySound; + +import ai.AbstractNpcAI; + +/** + * Celestiel AI + * @author Gigi + * @date 2017-06-13 - [20:09:34] + */ +public class Celestiel extends AbstractNpcAI +{ + // NPC + private static final int CELESTIEL = 34234; + // Teleports + private static final Location SOUTH_LOCATION = new Location(110815, 59655, -3720); + private static final Location NORTH_LOCATION = new Location(124040, 43970, -3720); + + private static final String[] CELESTIEL_VOICE = + { + "Npcdialog1.selestiel_faction_1", + "Npcdialog1.selestiel_faction_2" + }; + + private Celestiel() + { + addTalkId(CELESTIEL); + addFirstTalkId(CELESTIEL); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + switch (event) + { + case "34234-1.html": + case "34234-2.html": + case "34234-3.html": + case "34234-4.html": + { + htmltext = event; + break; + } + case "south": + { + player.teleToLocation(SOUTH_LOCATION); + break; + } + case "north": + { + player.teleToLocation(NORTH_LOCATION); + break; + } + } + return htmltext; + } + + @Override + public String onFirstTalk(Npc npc, PlayerInstance player) + { + + player.sendPacket(new PlaySound(3, CELESTIEL_VOICE[getRandom(2)], 0, 0, 0, 0, 0)); + return "34234.html"; + } + + public static void main(String[] args) + { + new Celestiel(); + } + +} diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/html/default/34233.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/html/default/34233.html new file mode 100644 index 0000000000..b9d4ddcee3 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/html/default/34233.html @@ -0,0 +1,6 @@ +Guardian Irene:
+Greetings. I am Irene, leader of the Mother Tree Guardians.
+We the Mother Tree Guardians are engaged in a variety of activities to revive the dying Mother Tree.
+There is still so much we need to talk about. I hope that we can talk some more when the opportunity is right.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/multisell/2176.xml b/L2J_Mobius_6.0_Fafurion/dist/game/data/multisell/2176.xml new file mode 100644 index 0000000000..eec774b8c0 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/multisell/2176.xml @@ -0,0 +1,11 @@ + + + + 34234 + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/multisell/2177.xml b/L2J_Mobius_6.0_Fafurion/dist/game/data/multisell/2177.xml new file mode 100644 index 0000000000..e2d809c4b6 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/multisell/2177.xml @@ -0,0 +1,159 @@ + + + + 34234 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html new file mode 100644 index 0000000000..3b3d68e315 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html @@ -0,0 +1,7 @@ +Celestiel:
+I see you want to teleport to some place else in the Enchanted Valley. Wherever you end up in the Enchanted Valley, you should be safe.
+I can guarantee that, based on what I've seen until now. So you'd like to head into the depths of the Enchanted Valley? Alright, understood. I will send you there. Please note that the places I can send you may be rather more dangerous than the others. Please exercise particular caution.
+When you return, the Teleport Device that we Mother Tree Guardians have installed may be used. However, remember that to use the Mother Tree Guardians Teleport Device, your Faction level with the Mother Tree Guardians must be 4 or higher.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html new file mode 100644 index 0000000000..774bb53355 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html @@ -0,0 +1,9 @@ +Celestiel:
+The Mother Tree Guardians Talisman has been made with only the best of technologies that we the Mother Tree Guardians have.
+It was made to provide any help possible when engaging in the work of reviving the Mother Tree. If you want one made for you, please bring us the necessary ingredients.
+If you already have one, we can improve its performance. Are you interested?
+ + + + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html new file mode 100644 index 0000000000..3c12294930 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html @@ -0,0 +1,7 @@ +Celestiel:
+To make the Mother Tree Guardians Talisman, you'll need materials. The core is the Life Crystal. It can be gained from the supply boxes given to you as a reward for carrying out our missions.
+You will also need Giant's Energy. This you must find on your own. In addition, it will cost you a nominal fee. If you have all the ingredients for the Mother Tree Guardians Talisman, we will make one for you.
+The Mother Tree Guardians Talisman is also a token of appreciation of sorts that we issue to those who help us.
+While their performance can be improved, this will sometimes requires additional materials. Please be sure to check.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html new file mode 100644 index 0000000000..67af9a1721 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html @@ -0,0 +1,5 @@ +Celestiel:
+The Mother Tree Guardians Talisman was developed by us in order to help the process of reviving the Mother Tree. It was made using our very best biological knowledge.
+If you are wearing the Mother Tree Guardians Talisman, you will have the upper hand when you are engaged in battle against an plant-type enemy.
+ + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html new file mode 100644 index 0000000000..498ea00509 --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html @@ -0,0 +1,7 @@ +Celestiel:
+Who goes there? Ah, you're an adventurer.
+I don't have anything in particular to tell you. What brings you here?
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java new file mode 100644 index 0000000000..a14417723f --- /dev/null +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java @@ -0,0 +1,92 @@ +/* + * 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.EnchantedValley.Celestiel; + +import org.l2jmobius.gameserver.model.Location; +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.network.serverpackets.PlaySound; + +import ai.AbstractNpcAI; + +/** + * Celestiel AI + * @author Gigi + * @date 2017-06-13 - [20:09:34] + */ +public class Celestiel extends AbstractNpcAI +{ + // NPC + private static final int CELESTIEL = 34234; + // Teleports + private static final Location SOUTH_LOCATION = new Location(110815, 59655, -3720); + private static final Location NORTH_LOCATION = new Location(124040, 43970, -3720); + + private static final String[] CELESTIEL_VOICE = + { + "Npcdialog1.selestiel_faction_1", + "Npcdialog1.selestiel_faction_2" + }; + + private Celestiel() + { + addTalkId(CELESTIEL); + addFirstTalkId(CELESTIEL); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + switch (event) + { + case "34234-1.html": + case "34234-2.html": + case "34234-3.html": + case "34234-4.html": + { + htmltext = event; + break; + } + case "south": + { + player.teleToLocation(SOUTH_LOCATION); + break; + } + case "north": + { + player.teleToLocation(NORTH_LOCATION); + break; + } + } + return htmltext; + } + + @Override + public String onFirstTalk(Npc npc, PlayerInstance player) + { + + player.sendPacket(new PlaySound(3, CELESTIEL_VOICE[getRandom(2)], 0, 0, 0, 0, 0)); + return "34234.html"; + } + + public static void main(String[] args) + { + new Celestiel(); + } + +} diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/html/default/34233.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/html/default/34233.html new file mode 100644 index 0000000000..b9d4ddcee3 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/html/default/34233.html @@ -0,0 +1,6 @@ +Guardian Irene:
+Greetings. I am Irene, leader of the Mother Tree Guardians.
+We the Mother Tree Guardians are engaged in a variety of activities to revive the dying Mother Tree.
+There is still so much we need to talk about. I hope that we can talk some more when the opportunity is right.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/multisell/2176.xml b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/multisell/2176.xml new file mode 100644 index 0000000000..eec774b8c0 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/multisell/2176.xml @@ -0,0 +1,11 @@ + + + + 34234 + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/multisell/2177.xml b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/multisell/2177.xml new file mode 100644 index 0000000000..e2d809c4b6 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/multisell/2177.xml @@ -0,0 +1,159 @@ + + + + 34234 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html new file mode 100644 index 0000000000..3b3d68e315 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-1.html @@ -0,0 +1,7 @@ +Celestiel:
+I see you want to teleport to some place else in the Enchanted Valley. Wherever you end up in the Enchanted Valley, you should be safe.
+I can guarantee that, based on what I've seen until now. So you'd like to head into the depths of the Enchanted Valley? Alright, understood. I will send you there. Please note that the places I can send you may be rather more dangerous than the others. Please exercise particular caution.
+When you return, the Teleport Device that we Mother Tree Guardians have installed may be used. However, remember that to use the Mother Tree Guardians Teleport Device, your Faction level with the Mother Tree Guardians must be 4 or higher.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html new file mode 100644 index 0000000000..774bb53355 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-2.html @@ -0,0 +1,9 @@ +Celestiel:
+The Mother Tree Guardians Talisman has been made with only the best of technologies that we the Mother Tree Guardians have.
+It was made to provide any help possible when engaging in the work of reviving the Mother Tree. If you want one made for you, please bring us the necessary ingredients.
+If you already have one, we can improve its performance. Are you interested?
+ + + + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html new file mode 100644 index 0000000000..3c12294930 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-3.html @@ -0,0 +1,7 @@ +Celestiel:
+To make the Mother Tree Guardians Talisman, you'll need materials. The core is the Life Crystal. It can be gained from the supply boxes given to you as a reward for carrying out our missions.
+You will also need Giant's Energy. This you must find on your own. In addition, it will cost you a nominal fee. If you have all the ingredients for the Mother Tree Guardians Talisman, we will make one for you.
+The Mother Tree Guardians Talisman is also a token of appreciation of sorts that we issue to those who help us.
+While their performance can be improved, this will sometimes requires additional materials. Please be sure to check.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html new file mode 100644 index 0000000000..67af9a1721 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234-4.html @@ -0,0 +1,5 @@ +Celestiel:
+The Mother Tree Guardians Talisman was developed by us in order to help the process of reviving the Mother Tree. It was made using our very best biological knowledge.
+If you are wearing the Mother Tree Guardians Talisman, you will have the upper hand when you are engaged in battle against an plant-type enemy.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html new file mode 100644 index 0000000000..498ea00509 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/34234.html @@ -0,0 +1,7 @@ +Celestiel:
+Who goes there? Ah, you're an adventurer.
+I don't have anything in particular to tell you. What brings you here?
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java new file mode 100644 index 0000000000..a14417723f --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/EnchantedValley/Celestiel/Celestiel.java @@ -0,0 +1,92 @@ +/* + * 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.EnchantedValley.Celestiel; + +import org.l2jmobius.gameserver.model.Location; +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.network.serverpackets.PlaySound; + +import ai.AbstractNpcAI; + +/** + * Celestiel AI + * @author Gigi + * @date 2017-06-13 - [20:09:34] + */ +public class Celestiel extends AbstractNpcAI +{ + // NPC + private static final int CELESTIEL = 34234; + // Teleports + private static final Location SOUTH_LOCATION = new Location(110815, 59655, -3720); + private static final Location NORTH_LOCATION = new Location(124040, 43970, -3720); + + private static final String[] CELESTIEL_VOICE = + { + "Npcdialog1.selestiel_faction_1", + "Npcdialog1.selestiel_faction_2" + }; + + private Celestiel() + { + addTalkId(CELESTIEL); + addFirstTalkId(CELESTIEL); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + switch (event) + { + case "34234-1.html": + case "34234-2.html": + case "34234-3.html": + case "34234-4.html": + { + htmltext = event; + break; + } + case "south": + { + player.teleToLocation(SOUTH_LOCATION); + break; + } + case "north": + { + player.teleToLocation(NORTH_LOCATION); + break; + } + } + return htmltext; + } + + @Override + public String onFirstTalk(Npc npc, PlayerInstance player) + { + + player.sendPacket(new PlaySound(3, CELESTIEL_VOICE[getRandom(2)], 0, 0, 0, 0, 0)); + return "34234.html"; + } + + public static void main(String[] args) + { + new Celestiel(); + } + +}