Addition of Irene and Celestiel dialogs.

Contributed by gigilo1968.
This commit is contained in:
MobiusDevelopment
2019-12-09 12:33:27 +00:00
parent 0282ed7a92
commit 839b29a341
54 changed files with 1818 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
<html><body>Guardian Irene:<br>
Greetings. I am Irene, leader of the Mother Tree Guardians.<br>
We the Mother Tree Guardians are engaged in a variety of activities to revive the dying Mother Tree.<br>
There is still so much we need to talk about. I hope that we can talk some more when the opportunity is right.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>34234</npc> <!-- Celestiel -->
</npcs>
<item>
<ingredient id="47257" count="10"/> <!-- Life Crystal -->
<ingredient id="57" count="500000"/> <!-- Adena -->
<production id="47271" count="1"/> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
</list>

View File

@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="UTF-8"?>
<list isChanceMultisell="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>34234</npc> <!-- Celestiel -->
</npcs>
<item>
<ingredient id="47271" count="1" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47272" count="1" chance="80" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47257" count="5" chance="20" /> <!-- Life Crystal -->
</item>
<item>
<ingredient id="47271" count="1" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47272" count="1" chance="80" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47271" count="1" chance="20" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47273" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47271" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47273" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47272" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
</item>
<item>
<ingredient id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47274" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47271" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47274" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47273" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
</item>
<item>
<ingredient id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47275" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47271" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47275" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47274" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
</item>
<item>
<ingredient id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47271" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47275" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
</item>
<item>
<ingredient id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47277" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47271" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47277" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
</item>
<item>
<ingredient id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47278" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47271" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47278" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47277" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
</item>
<item>
<ingredient id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47279" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47271" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47279" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47278" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
</item>
<item>
<ingredient id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47280" count="1" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47280" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47271" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47280" count="1" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47280" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47279" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
</item>
</list>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
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.<br>
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.<br>
When you return, the Teleport Device that we Mother Tree Guardians have installed may be used. However, remember that to use the <font color="LEVEL">Mother Tree Guardians Teleport Device</font>, your <font color="LEVEL">Faction level with the Mother Tree Guardians must be 4 or higher</font>.<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Celestiel south">Teleport to the Southern Enchanted Valley</Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Celestiel north">Teleport to the Northern Enchanted Valley</Button>
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Celestiel:<br>
The Mother Tree Guardians Talisman has been made with only the best of technologies that we the Mother Tree Guardians have.<br>
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.<br>
If you already have one, we can improve its performance. Are you interested?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-3.html">"How is the talisman made?"</Button>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-4.html">"Tell me about the effects."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2176">"I want to make a Mother Tree Guardians Talisman."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2177">"I want to upgrade."</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
To make the Mother Tree Guardians Talisman, you'll need materials. The core is the <font color="LEVEL">Life Crystal</font>. It can be gained from the supply boxes given to you as a reward for carrying out our missions.<br>
You will also need <font color="LEVEL">Giant's Energy</font>. 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.<br>
The Mother Tree Guardians Talisman is also a token of appreciation of sorts that we issue to those who help us.<br>
While their performance can be improved, this will sometimes requires additional materials. Please be sure to check.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Celestiel 34234-2.html">Back</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Celestiel:<br>
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.<br>
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.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Celestiel 34234-2.html">Back</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
Who goes there? Ah, you're an adventurer.<br>
I don't have anything in particular to tell you. What brings you here?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-1.html">"Tell me about teleporting to the Enchanted Valley."</Button>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-2.html">"Tell me about the Mother Tree Guardians Talisman."</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -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 <http://www.gnu.org/licenses/>.
*/
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();
}
}

View File

@@ -0,0 +1,6 @@
<html><body>Guardian Irene:<br>
Greetings. I am Irene, leader of the Mother Tree Guardians.<br>
We the Mother Tree Guardians are engaged in a variety of activities to revive the dying Mother Tree.<br>
There is still so much we need to talk about. I hope that we can talk some more when the opportunity is right.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>34234</npc> <!-- Celestiel -->
</npcs>
<item>
<ingredient id="47257" count="10"/> <!-- Life Crystal -->
<ingredient id="57" count="500000"/> <!-- Adena -->
<production id="47271" count="1"/> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
</list>

View File

@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="UTF-8"?>
<list isChanceMultisell="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>34234</npc> <!-- Celestiel -->
</npcs>
<item>
<ingredient id="47271" count="1" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47272" count="1" chance="80" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47257" count="5" chance="20" /> <!-- Life Crystal -->
</item>
<item>
<ingredient id="47271" count="1" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47272" count="1" chance="80" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47271" count="1" chance="20" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47273" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47271" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47273" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47272" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
</item>
<item>
<ingredient id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47274" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47271" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47274" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47273" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
</item>
<item>
<ingredient id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47275" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47271" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47275" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47274" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
</item>
<item>
<ingredient id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47271" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47275" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
</item>
<item>
<ingredient id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47277" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47271" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47277" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
</item>
<item>
<ingredient id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47278" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47271" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47278" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47277" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
</item>
<item>
<ingredient id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47279" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47271" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47279" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47278" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
</item>
<item>
<ingredient id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47280" count="1" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47280" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47271" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47280" count="1" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47280" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47279" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
</item>
</list>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
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.<br>
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.<br>
When you return, the Teleport Device that we Mother Tree Guardians have installed may be used. However, remember that to use the <font color="LEVEL">Mother Tree Guardians Teleport Device</font>, your <font color="LEVEL">Faction level with the Mother Tree Guardians must be 4 or higher</font>.<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Celestiel south">Teleport to the Southern Enchanted Valley</Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Celestiel north">Teleport to the Northern Enchanted Valley</Button>
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Celestiel:<br>
The Mother Tree Guardians Talisman has been made with only the best of technologies that we the Mother Tree Guardians have.<br>
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.<br>
If you already have one, we can improve its performance. Are you interested?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-3.html">"How is the talisman made?"</Button>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-4.html">"Tell me about the effects."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2176">"I want to make a Mother Tree Guardians Talisman."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2177">"I want to upgrade."</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
To make the Mother Tree Guardians Talisman, you'll need materials. The core is the <font color="LEVEL">Life Crystal</font>. It can be gained from the supply boxes given to you as a reward for carrying out our missions.<br>
You will also need <font color="LEVEL">Giant's Energy</font>. 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.<br>
The Mother Tree Guardians Talisman is also a token of appreciation of sorts that we issue to those who help us.<br>
While their performance can be improved, this will sometimes requires additional materials. Please be sure to check.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Celestiel 34234-2.html">Back</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Celestiel:<br>
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.<br>
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.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Celestiel 34234-2.html">Back</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
Who goes there? Ah, you're an adventurer.<br>
I don't have anything in particular to tell you. What brings you here?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-1.html">"Tell me about teleporting to the Enchanted Valley."</Button>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-2.html">"Tell me about the Mother Tree Guardians Talisman."</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -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 <http://www.gnu.org/licenses/>.
*/
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();
}
}

View File

@@ -0,0 +1,6 @@
<html><body>Guardian Irene:<br>
Greetings. I am Irene, leader of the Mother Tree Guardians.<br>
We the Mother Tree Guardians are engaged in a variety of activities to revive the dying Mother Tree.<br>
There is still so much we need to talk about. I hope that we can talk some more when the opportunity is right.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>34234</npc> <!-- Celestiel -->
</npcs>
<item>
<ingredient id="47257" count="10"/> <!-- Life Crystal -->
<ingredient id="57" count="500000"/> <!-- Adena -->
<production id="47271" count="1"/> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
</list>

View File

@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="UTF-8"?>
<list isChanceMultisell="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>34234</npc> <!-- Celestiel -->
</npcs>
<item>
<ingredient id="47271" count="1" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47272" count="1" chance="80" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47257" count="5" chance="20" /> <!-- Life Crystal -->
</item>
<item>
<ingredient id="47271" count="1" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47272" count="1" chance="80" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47271" count="1" chance="20" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47273" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47271" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47273" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47272" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
</item>
<item>
<ingredient id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47274" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47271" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47274" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47273" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
</item>
<item>
<ingredient id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47275" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47271" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47275" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47274" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
</item>
<item>
<ingredient id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47271" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47275" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
</item>
<item>
<ingredient id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47277" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47271" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47277" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
</item>
<item>
<ingredient id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47278" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47271" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47278" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47277" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
</item>
<item>
<ingredient id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47279" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47271" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47279" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47278" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
</item>
<item>
<ingredient id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47280" count="1" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47280" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47271" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47280" count="1" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47280" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47279" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
</item>
</list>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
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.<br>
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.<br>
When you return, the Teleport Device that we Mother Tree Guardians have installed may be used. However, remember that to use the <font color="LEVEL">Mother Tree Guardians Teleport Device</font>, your <font color="LEVEL">Faction level with the Mother Tree Guardians must be 4 or higher</font>.<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Celestiel south">Teleport to the Southern Enchanted Valley</Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Celestiel north">Teleport to the Northern Enchanted Valley</Button>
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Celestiel:<br>
The Mother Tree Guardians Talisman has been made with only the best of technologies that we the Mother Tree Guardians have.<br>
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.<br>
If you already have one, we can improve its performance. Are you interested?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-3.html">"How is the talisman made?"</Button>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-4.html">"Tell me about the effects."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2176">"I want to make a Mother Tree Guardians Talisman."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2177">"I want to upgrade."</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
To make the Mother Tree Guardians Talisman, you'll need materials. The core is the <font color="LEVEL">Life Crystal</font>. It can be gained from the supply boxes given to you as a reward for carrying out our missions.<br>
You will also need <font color="LEVEL">Giant's Energy</font>. 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.<br>
The Mother Tree Guardians Talisman is also a token of appreciation of sorts that we issue to those who help us.<br>
While their performance can be improved, this will sometimes requires additional materials. Please be sure to check.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Celestiel 34234-2.html">Back</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Celestiel:<br>
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.<br>
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.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Celestiel 34234-2.html">Back</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
Who goes there? Ah, you're an adventurer.<br>
I don't have anything in particular to tell you. What brings you here?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-1.html">"Tell me about teleporting to the Enchanted Valley."</Button>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-2.html">"Tell me about the Mother Tree Guardians Talisman."</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -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 <http://www.gnu.org/licenses/>.
*/
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();
}
}

View File

@@ -0,0 +1,6 @@
<html><body>Guardian Irene:<br>
Greetings. I am Irene, leader of the Mother Tree Guardians.<br>
We the Mother Tree Guardians are engaged in a variety of activities to revive the dying Mother Tree.<br>
There is still so much we need to talk about. I hope that we can talk some more when the opportunity is right.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>34234</npc> <!-- Celestiel -->
</npcs>
<item>
<ingredient id="47257" count="10"/> <!-- Life Crystal -->
<ingredient id="57" count="500000"/> <!-- Adena -->
<production id="47271" count="1"/> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
</list>

View File

@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="UTF-8"?>
<list isChanceMultisell="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>34234</npc> <!-- Celestiel -->
</npcs>
<item>
<ingredient id="47271" count="1" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47272" count="1" chance="80" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47257" count="5" chance="20" /> <!-- Life Crystal -->
</item>
<item>
<ingredient id="47271" count="1" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47272" count="1" chance="80" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47271" count="1" chance="20" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47273" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47271" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47273" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47272" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
</item>
<item>
<ingredient id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47274" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47271" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47274" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47273" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
</item>
<item>
<ingredient id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47275" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47271" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47275" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47274" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
</item>
<item>
<ingredient id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47271" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47275" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
</item>
<item>
<ingredient id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47277" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47271" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47277" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
</item>
<item>
<ingredient id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47278" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47271" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47278" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47277" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
</item>
<item>
<ingredient id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47279" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47271" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47279" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47278" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
</item>
<item>
<ingredient id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47280" count="1" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47280" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47271" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47280" count="1" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47280" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47279" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
</item>
</list>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
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.<br>
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.<br>
When you return, the Teleport Device that we Mother Tree Guardians have installed may be used. However, remember that to use the <font color="LEVEL">Mother Tree Guardians Teleport Device</font>, your <font color="LEVEL">Faction level with the Mother Tree Guardians must be 4 or higher</font>.<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Celestiel south">Teleport to the Southern Enchanted Valley</Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Celestiel north">Teleport to the Northern Enchanted Valley</Button>
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Celestiel:<br>
The Mother Tree Guardians Talisman has been made with only the best of technologies that we the Mother Tree Guardians have.<br>
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.<br>
If you already have one, we can improve its performance. Are you interested?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-3.html">"How is the talisman made?"</Button>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-4.html">"Tell me about the effects."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2176">"I want to make a Mother Tree Guardians Talisman."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2177">"I want to upgrade."</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
To make the Mother Tree Guardians Talisman, you'll need materials. The core is the <font color="LEVEL">Life Crystal</font>. It can be gained from the supply boxes given to you as a reward for carrying out our missions.<br>
You will also need <font color="LEVEL">Giant's Energy</font>. 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.<br>
The Mother Tree Guardians Talisman is also a token of appreciation of sorts that we issue to those who help us.<br>
While their performance can be improved, this will sometimes requires additional materials. Please be sure to check.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Celestiel 34234-2.html">Back</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Celestiel:<br>
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.<br>
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.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Celestiel 34234-2.html">Back</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
Who goes there? Ah, you're an adventurer.<br>
I don't have anything in particular to tell you. What brings you here?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-1.html">"Tell me about teleporting to the Enchanted Valley."</Button>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-2.html">"Tell me about the Mother Tree Guardians Talisman."</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -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 <http://www.gnu.org/licenses/>.
*/
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();
}
}

View File

@@ -0,0 +1,6 @@
<html><body>Guardian Irene:<br>
Greetings. I am Irene, leader of the Mother Tree Guardians.<br>
We the Mother Tree Guardians are engaged in a variety of activities to revive the dying Mother Tree.<br>
There is still so much we need to talk about. I hope that we can talk some more when the opportunity is right.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>34234</npc> <!-- Celestiel -->
</npcs>
<item>
<ingredient id="47257" count="10"/> <!-- Life Crystal -->
<ingredient id="57" count="500000"/> <!-- Adena -->
<production id="47271" count="1"/> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
</list>

View File

@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="UTF-8"?>
<list isChanceMultisell="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>34234</npc> <!-- Celestiel -->
</npcs>
<item>
<ingredient id="47271" count="1" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47272" count="1" chance="80" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47257" count="5" chance="20" /> <!-- Life Crystal -->
</item>
<item>
<ingredient id="47271" count="1" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47272" count="1" chance="80" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47271" count="1" chance="20" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47273" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47271" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47273" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47272" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
</item>
<item>
<ingredient id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47274" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47271" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47274" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47273" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
</item>
<item>
<ingredient id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47275" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47271" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47275" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47274" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
</item>
<item>
<ingredient id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47271" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47275" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
</item>
<item>
<ingredient id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47277" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47271" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47277" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
</item>
<item>
<ingredient id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47278" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47271" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47278" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47277" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
</item>
<item>
<ingredient id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47279" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47271" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47279" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47278" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
</item>
<item>
<ingredient id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47280" count="1" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47280" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47271" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47280" count="1" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47280" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47279" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
</item>
</list>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
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.<br>
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.<br>
When you return, the Teleport Device that we Mother Tree Guardians have installed may be used. However, remember that to use the <font color="LEVEL">Mother Tree Guardians Teleport Device</font>, your <font color="LEVEL">Faction level with the Mother Tree Guardians must be 4 or higher</font>.<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Celestiel south">Teleport to the Southern Enchanted Valley</Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Celestiel north">Teleport to the Northern Enchanted Valley</Button>
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Celestiel:<br>
The Mother Tree Guardians Talisman has been made with only the best of technologies that we the Mother Tree Guardians have.<br>
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.<br>
If you already have one, we can improve its performance. Are you interested?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-3.html">"How is the talisman made?"</Button>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-4.html">"Tell me about the effects."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2176">"I want to make a Mother Tree Guardians Talisman."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2177">"I want to upgrade."</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
To make the Mother Tree Guardians Talisman, you'll need materials. The core is the <font color="LEVEL">Life Crystal</font>. It can be gained from the supply boxes given to you as a reward for carrying out our missions.<br>
You will also need <font color="LEVEL">Giant's Energy</font>. 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.<br>
The Mother Tree Guardians Talisman is also a token of appreciation of sorts that we issue to those who help us.<br>
While their performance can be improved, this will sometimes requires additional materials. Please be sure to check.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Celestiel 34234-2.html">Back</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Celestiel:<br>
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.<br>
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.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Celestiel 34234-2.html">Back</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
Who goes there? Ah, you're an adventurer.<br>
I don't have anything in particular to tell you. What brings you here?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-1.html">"Tell me about teleporting to the Enchanted Valley."</Button>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-2.html">"Tell me about the Mother Tree Guardians Talisman."</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -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 <http://www.gnu.org/licenses/>.
*/
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();
}
}

View File

@@ -0,0 +1,6 @@
<html><body>Guardian Irene:<br>
Greetings. I am Irene, leader of the Mother Tree Guardians.<br>
We the Mother Tree Guardians are engaged in a variety of activities to revive the dying Mother Tree.<br>
There is still so much we need to talk about. I hope that we can talk some more when the opportunity is right.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>34234</npc> <!-- Celestiel -->
</npcs>
<item>
<ingredient id="47257" count="10"/> <!-- Life Crystal -->
<ingredient id="57" count="500000"/> <!-- Adena -->
<production id="47271" count="1"/> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
</list>

View File

@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="UTF-8"?>
<list isChanceMultisell="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>34234</npc> <!-- Celestiel -->
</npcs>
<item>
<ingredient id="47271" count="1" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47272" count="1" chance="80" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47257" count="5" chance="20" /> <!-- Life Crystal -->
</item>
<item>
<ingredient id="47271" count="1" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47272" count="1" chance="80" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<production id="47271" count="1" chance="20" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47273" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47271" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47272" count="1" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47273" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<production id="47272" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 2 -->
</item>
<item>
<ingredient id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47274" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47271" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47273" count="1" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47274" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<production id="47273" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 3 -->
</item>
<item>
<ingredient id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47275" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47271" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47274" count="1" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="1" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47275" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<production id="47274" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 4 -->
</item>
<item>
<ingredient id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47271" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47275" count="1" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<production id="47275" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 5 -->
</item>
<item>
<ingredient id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47277" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47271" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47276" count="1" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
<ingredient id="47739" count="1" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="2" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47277" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<production id="47276" count="1" chance="50" /> <!-- Mother Tree Guardians Talisman Stage 6 -->
</item>
<item>
<ingredient id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47278" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47271" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47277" count="1" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47278" count="1" chance="40" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<production id="47277" count="1" chance="60" /> <!-- Mother Tree Guardians Talisman Stage 7 -->
</item>
<item>
<ingredient id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47279" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47271" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47278" count="1" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47279" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<production id="47278" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 8 -->
</item>
<item>
<ingredient id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47280" count="1" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47280" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47271" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 1 -->
</item>
<item>
<ingredient id="47279" count="1" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
<ingredient id="47739" count="2" /> <!-- Hunter's Amulet -->
<ingredient id="35563" count="3" /> <!-- Giant's Energy -->
<ingredient id="47257" count="10" /> <!-- Life Crystal -->
<production id="47280" count="1" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47280" count="1" chance="30" /> <!-- Mother Tree Guardians Talisman Stage 10 -->
<production id="47279" count="1" chance="70" /> <!-- Mother Tree Guardians Talisman Stage 9 -->
</item>
</list>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
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.<br>
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.<br>
When you return, the Teleport Device that we Mother Tree Guardians have installed may be used. However, remember that to use the <font color="LEVEL">Mother Tree Guardians Teleport Device</font>, your <font color="LEVEL">Faction level with the Mother Tree Guardians must be 4 or higher</font>.<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Celestiel south">Teleport to the Southern Enchanted Valley</Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Celestiel north">Teleport to the Northern Enchanted Valley</Button>
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Celestiel:<br>
The Mother Tree Guardians Talisman has been made with only the best of technologies that we the Mother Tree Guardians have.<br>
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.<br>
If you already have one, we can improve its performance. Are you interested?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-3.html">"How is the talisman made?"</Button>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-4.html">"Tell me about the effects."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2176">"I want to make a Mother Tree Guardians Talisman."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2177">"I want to upgrade."</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
To make the Mother Tree Guardians Talisman, you'll need materials. The core is the <font color="LEVEL">Life Crystal</font>. It can be gained from the supply boxes given to you as a reward for carrying out our missions.<br>
You will also need <font color="LEVEL">Giant's Energy</font>. 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.<br>
The Mother Tree Guardians Talisman is also a token of appreciation of sorts that we issue to those who help us.<br>
While their performance can be improved, this will sometimes requires additional materials. Please be sure to check.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Celestiel 34234-2.html">Back</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Celestiel:<br>
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.<br>
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.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Celestiel 34234-2.html">Back</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Celestiel:<br>
Who goes there? Ah, you're an adventurer.<br>
I don't have anything in particular to tell you. What brings you here?<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-1.html">"Tell me about teleporting to the Enchanted Valley."</Button>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Celestiel 34234-2.html">"Tell me about the Mother Tree Guardians Talisman."</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -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 <http://www.gnu.org/licenses/>.
*/
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();
}
}