Sync with L2JServer Jan 12th 2015.
This commit is contained in:
6
trunk/dist/game/data/scripts/ai/npc/AlchemistManager/33977-1.html
vendored
Normal file
6
trunk/dist/game/data/scripts/ai/npc/AlchemistManager/33977-1.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Veruti:<br>
|
||||
Alchemy can only be learned by Ertheia from the Spirit Realm.<br>
|
||||
It requires arduous training if one is to produce rare items, so you need to have at least undergone 1st Liberation in order to understand the basics of it!<br>
|
||||
Alchemy is divided into <font color="LEVEL">Combination</font> and <font color="LEVEL">Transmutation</font>. The Alchemy Cube is used in Combination while Transmutation allows you to transmute a variety of rare items. There's one more category, but I'll tell you about it later when the time is right. Hehe!<br>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest AlchemistManager 33977.html">Back</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/ai/npc/AlchemistManager/33977-2.html
vendored
Normal file
5
trunk/dist/game/data/scripts/ai/npc/AlchemistManager/33977-2.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Veruti:<br>
|
||||
Only Ertheia may learn Alchemy. Sorry.<br>
|
||||
(Your main character must be Ertheia to learn Alchemy.)<br>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest AlchemistManager 33977.html">Back</Button>
|
||||
</body></html>
|
10
trunk/dist/game/data/scripts/ai/npc/AlchemistManager/33977.html
vendored
Normal file
10
trunk/dist/game/data/scripts/ai/npc/AlchemistManager/33977.html
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<html><body>Veruti:<br>
|
||||
There are so many strange things about the Material Realm. Apparently we need Adena just to get some clothes!<br>
|
||||
So I've asked Zephyra to help me create items of value so that the Ertheia can make some Adena. The research was very hard, but it was worth it!<br>
|
||||
How about it? Shall we embark on researching the mysterious together? Just remember, only Ertheia Lv. 40 or above who have completed 1st Liberation can learn this skill.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest AlchemistManager open_tutorial">"Tell me more about Alchemy."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest AlchemistManager learn_skill">"I want to acquire an Alchemy skill."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h package_deposit" msg="1040">"I want to share an item from my account."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h package_withdraw">"I want to retrieve an item."</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/ai/npc/AlchemistManager/33978-1.html
vendored
Normal file
6
trunk/dist/game/data/scripts/ai/npc/AlchemistManager/33978-1.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Zephyra:<br>
|
||||
Only the Ertheia from the Spirit Realm may learn alchemy.<br>
|
||||
Because Alchemy creates rare materials, it requires rigorous training. You must complete your 1st Liberation at least to learn the basics of alchemy. Remember that!<br>
|
||||
Alchemy consists of <font color="LEVEL">Combination</font>, using an Alchemy Cube, and <font color="LEVEL">Transmutation</font> for all kinds of rare items. There is one more thing you will require, but you will find out when you are ready.<br>
|
||||
<button align=LEFT icon="RETURN" action="bypass -h Quest AlchemistManager 33978.html">Back</button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/ai/npc/AlchemistManager/33978-2.html
vendored
Normal file
5
trunk/dist/game/data/scripts/ai/npc/AlchemistManager/33978-2.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Zephyra:<br>
|
||||
Not just anyone can learn Alchemy. Only the Ertheia can learn thanks to our special connections with the Wind Spirits.<br>
|
||||
(Only Ertheia may learn Alchemy as their main class.)<br>
|
||||
<button align=LEFT icon="RETURN" action="bypass -h Quest AlchemistManager 33978.html">Back</button>
|
||||
</body></html>
|
10
trunk/dist/game/data/scripts/ai/npc/AlchemistManager/33978.html
vendored
Normal file
10
trunk/dist/game/data/scripts/ai/npc/AlchemistManager/33978.html
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<html><body>Zephyra:<br>
|
||||
There's so much we don't know about in the Material Realm. They require us to pay with Adena for everything.<br>
|
||||
So I started my research with Veruti. I also got help from the spirits. Research was hard, but then we discovered a new skill that can save Adena by creating valuable goods.<br>
|
||||
So, do you want to join my research? By the way, only Lv. 40 or above Ertheia who have completed their 1st Liberation may learn Alchemy.<br>
|
||||
<button align=LEFT icon="Normal" action="bypass -h Quest AlchemistManager open_tutorial">"Tell me about Alchemy."</button>
|
||||
<button align=LEFT icon="NORMAL" action="bypass -h Quest AlchemistManager learn_skill">"I want to learn Alchemy."</button>
|
||||
<button align=LEFT icon="NORMAL" action="bypass -h package_deposit" msg="1040">"I want to share my items."</button>
|
||||
<button align=LEFT icon="NORMAL" action="bypass -h package_withdraw">"I want to retrieve my shared items."</button>
|
||||
<button align=LEFT icon="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</button>
|
||||
</body></html>
|
105
trunk/dist/game/data/scripts/ai/npc/AlchemistManager/AlchemistManager.java
vendored
Normal file
105
trunk/dist/game/data/scripts/ai/npc/AlchemistManager/AlchemistManager.java
vendored
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2015 L2J DataPack
|
||||
*
|
||||
* This file is part of L2J DataPack.
|
||||
*
|
||||
* L2J DataPack 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.
|
||||
*
|
||||
* L2J DataPack 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.npc.AlchemistManager;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import ai.npc.AbstractNpcAI;
|
||||
|
||||
import com.l2jserver.gameserver.datatables.SkillTreesData;
|
||||
import com.l2jserver.gameserver.enums.Race;
|
||||
import com.l2jserver.gameserver.model.L2SkillLearn;
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.base.AcquireSkillType;
|
||||
import com.l2jserver.gameserver.network.SystemMessageId;
|
||||
import com.l2jserver.gameserver.network.serverpackets.ExAcquirableSkillListByClass;
|
||||
import com.l2jserver.gameserver.network.serverpackets.TutorialShowHtml;
|
||||
|
||||
/**
|
||||
* Alchemist Manager AI.
|
||||
* @author Sdw
|
||||
*/
|
||||
public final class AlchemistManager extends AbstractNpcAI
|
||||
{
|
||||
// NPCs
|
||||
private static final int ALCHEMISTS[] =
|
||||
{
|
||||
33978, // Zephyra
|
||||
33977, // Veruti
|
||||
};
|
||||
// Misc
|
||||
private static final String TUTORIAL_LINK = "..\\L2text\\QT_026_alchemy_01.htm";
|
||||
|
||||
private AlchemistManager()
|
||||
{
|
||||
super(AlchemistManager.class.getSimpleName(), "ai/npc");
|
||||
addStartNpc(ALCHEMISTS);
|
||||
addTalkId(ALCHEMISTS);
|
||||
addFirstTalkId(ALCHEMISTS);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "33978.html":
|
||||
case "33977.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "open_tutorial":
|
||||
{
|
||||
player.sendPacket(new TutorialShowHtml(npc.getObjectId(), TUTORIAL_LINK, TutorialShowHtml.LARGE_WINDOW));
|
||||
htmltext = npc.getId() + "-1.html";
|
||||
break;
|
||||
}
|
||||
case "learn_skill":
|
||||
{
|
||||
if (player.getRace() == Race.ERTHEIA)
|
||||
{
|
||||
final List<L2SkillLearn> alchemySkills = SkillTreesData.getInstance().getAvailableAlchemySkills(player);
|
||||
|
||||
if (alchemySkills.isEmpty())
|
||||
{
|
||||
player.sendPacket(SystemMessageId.THERE_ARE_NO_OTHER_SKILLS_TO_LEARN);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendPacket(new ExAcquirableSkillListByClass(alchemySkills, AcquireSkillType.ALCHEMY));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = npc.getId() + "-2.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new AlchemistManager();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user