Addition of Irene and Celestiel dialogs.
Contributed by gigilo1968.
This commit is contained in:
@@ -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>
|
@@ -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>
|
@@ -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>
|
@@ -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>
|
@@ -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>
|
@@ -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();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user