This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
<html><body>Grand Master Valfar:<br>
I can only help Kamael <font color="LEVEL">Troopers and Warders</font>. Sorry - you need to find your master.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Grand Master Valfar:<br>
Always train hard. Work until you can no longer breathe, then you've done well.<br>
(This is only available for characters who have completed the 1st Class Transfer via the Beginning of Destiny quest.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Grand Master Rivian:<br>
I educate <font color="LEVEL">Elven Knights, Elven Scouts, Elven Wizards, and Oracles</font>. All Elf, naturally, which sadly, you are not. Find your relevant master.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Grand Master Rivian:<br>
Is there anything more that need? <br>
(This is a function only available to characters who have completed the 1st Class Transfer through the Beginning of Destiny quest.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>High Prefect Toonks:<br>
I'm responsible for the <font color="LEVEL">Orc Raider, Orc Monk, and Orc Shaman</font> of the Flame Clan Orcs. I have no business with you, traveler. Go and find your own master.<br>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>High Prefect Took:<br>
What brought you to me? <br>
(Only available for characters who have completed the 1st class transfer via the Start of Fate quest.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>High Priest Franco:<br>
I educate human <font color="LEVEL">Warriors, Knights, Rogues, Wizards, and Clerics</font>. Find the master teaches your kind!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>High Priest Franco:<br>
Yes?<br>
(This feature can only be used by characters who have completed the 1st class transfer via the Start of Fate quest.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Head Blacksmith Moka:<br>
I'm responsible for <font color="LEVEL">Scavengers and Aritisans</font> for the Dwarf race. I have no reason whatsoever to help you! Go find your own master! Humph!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Head Blacksmith Moka:<br>
I am a very busy person! If you don't have business here, scoot!<br>
(This feature can only be used by characters who have completed the 1st class transfer via the Start of Fate quest.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Grand Magister Devon:<br>
I'm the one responsible for educating Dark Elf <font color="LEVEL">Palus Knights, Assassins, Dark Wizards, and Shillien Oracles</font>. Go and find the master that fits your race.<br>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Grand Magister Devon:<br>
Is there something that you need to talk about?<br>
(This is a function only available for characters who have completed the 1st Class Transfer through the Beginning of Destiny quest.)
</body></html>

View File

@@ -0,0 +1,77 @@
/*
* Copyright (C) 2004-2014 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 village_master.ProofOfCourage;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import ai.npc.AbstractNpcAI;
import com.l2jserver.gameserver.datatables.MultisellData;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.base.ClassId;
/**
* Proof Of Courage implementation.
* @author St3eT
*/
public final class ProofOfCourage extends AbstractNpcAI
{
// Misc
private static final Map<Integer, List<ClassId>> CLASSLIST = new HashMap<>();
static
{
CLASSLIST.put(32146, Arrays.asList(ClassId.TROOPER, ClassId.WARDER));
CLASSLIST.put(32147, Arrays.asList(ClassId.ELVEN_KNIGHT, ClassId.ELVEN_SCOUT, ClassId.ELVEN_WIZARD, ClassId.ORACLE));
CLASSLIST.put(32150, Arrays.asList(ClassId.ORC_RAIDER, ClassId.ORC_MONK));
CLASSLIST.put(32153, Arrays.asList(ClassId.WARRIOR, ClassId.KNIGHT, ClassId.ROGUE, ClassId.WIZARD, ClassId.CLERIC));
CLASSLIST.put(32157, Arrays.asList(ClassId.SCAVENGER, ClassId.ARTISAN));
CLASSLIST.put(32160, Arrays.asList(ClassId.PALUS_KNIGHT, ClassId.ASSASSIN, ClassId.DARK_WIZARD, ClassId.SHILLIEN_ORACLE));
}
private ProofOfCourage()
{
super(ProofOfCourage.class.getSimpleName(), "village_master");
addStartNpc(CLASSLIST.keySet());
addTalkId(CLASSLIST.keySet());
}
@Override
public String onTalk(L2Npc npc, L2PcInstance talker)
{
if (talker.getClassId().level() == 0)
{
return npc.getId() + "-noclass.html";
}
else if (!CLASSLIST.get(npc.getId()).contains(talker.getClassId()))
{
return npc.getId() + "-no.html";
}
MultisellData.getInstance().separateAndSend(717, talker, npc, false);
return super.onTalk(npc, talker);
}
public static void main(String[] args)
{
new ProofOfCourage();
}
}