This commit is contained in:
3
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30155-no.html
vendored
Normal file
3
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30155-no.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><head><body>Grand Master Ellenia:<br>
|
||||
I am chared to educate the <font color="LEVEL">Temple Knights, Swordsinger, Plainswalker, and Silver Ranger</font> wo are of Elfish descent, and who have completed the second class transfer. I can not help you. Go find your master.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30155-noclass.html
vendored
Normal file
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30155-noclass.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><head><body>Grand Master Elenia:<br>
|
||||
Is there something you want to tell me? <br>
|
||||
(This function is only for characters who have completed the 2nd Class Transfer through the Proof of Destiny quest.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30158-no.html
vendored
Normal file
3
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30158-no.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><head><body>Grand Magister Esrandell:<br>
|
||||
I educate <font color="LEVEL">Spell Singers, Elemental Summoners, and Elders</font> who have completed the second class transfer, and who are of the elfish race. Go now, find your own master.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30158-noclass.html
vendored
Normal file
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30158-noclass.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><head><body>Grand Magister Esrandel:<br>
|
||||
Keep up your training! <br>
|
||||
(This is only available to characters who have completed the 2nd Class Transfer through the Proof of Destiny quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30288-no.html
vendored
Normal file
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30288-no.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<head><body>Grand Master Rains:<br>
|
||||
I train human <font color="LEVEL">Gladiators, Warlords, Paladins, Dark Avengers, Treasure Hunters, and Hawkeyes</font> who have completed the second class transfer.<br1>
|
||||
You should see your master.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30288-noclass.html
vendored
Normal file
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30288-noclass.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><head><body>Grand Master Rains:<br>
|
||||
Never neglect your training. <br>
|
||||
(This is a function only available for characters who have completed the 2nd Class Transfer through the Proof of Destiny quest.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30289-no.html
vendored
Normal file
3
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30289-no.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><head><body>Bishop Raymond:<br>
|
||||
Sorry, I am not the master you're looking for. I only teach human <font color="LEVEL">Sorcerers, Necromancers, Warlocks, Bishops, and Prophets</font> who've completed a second class transfer.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30289-noclass.html
vendored
Normal file
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30289-noclass.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><head><body>High Priest Raymond:<br>
|
||||
I'm sorry, I think you have the wrong person. <br>
|
||||
(This is only available to characters who have completed their 2nd Class Transfer through the Proof of Destiny quest.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30297-no.html
vendored
Normal file
3
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30297-no.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><head><body>Grand Master Tobias:<br>
|
||||
I train Dark Elves who have completed the second class transfer. In other words, I educate <font color="LEVEL">Shillien Knights, Blade Dancers, Abyss Walkers, Phantom Rangers, Spellhowlers, Phantom Summoners, and Shillien Elders</font>. Please go to see your master.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30297-noclass.html
vendored
Normal file
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30297-noclass.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><head><body>Grand Master Tobias:<br>
|
||||
Do you have more to tell me? <br>
|
||||
(This is a function only available for characters who have completed the 2nd Class Transfer through the Proof of Destiny quest.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30504-no.html
vendored
Normal file
3
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30504-no.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><head><body>Head Blacksmith Mendio:<br>
|
||||
I'm a dwarf who has had the honor to complete the second class change. In other words, I educate only <font color="LEVEL">Bounty Hunters and Warsmiths</font>. I am sorry. You must find your own master.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30504-noclass.html
vendored
Normal file
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30504-noclass.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><head><body>Head Blacksmith Mendio:<br>
|
||||
Do you have something to say? <br>
|
||||
(This feature can only be fulfilled by a character who has completed 2nd class transfer via Certification of Fate.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30505-no.html
vendored
Normal file
3
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30505-no.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><head><body>High Prefect Drikus:<br>
|
||||
I train Orcs who have completed the second class transfer. I educate only <font color="LEVEL">Destroyers, Tyrants, Overlords, and Warcryers</font>. Please find your own master.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30505-noclass.html
vendored
Normal file
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/30505-noclass.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><head><body>High Prefect Drikus:<br>
|
||||
Yes? What is it? <br>
|
||||
(This quest can only be fulfilled by characters who have completed the 2nd class transfer via Certification of Fate.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/village_master/ProofOfJustice/32196-no.html
vendored
Normal file
3
trunk/dist/game/data/scripts/village_master/ProofOfJustice/32196-no.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><head><body>Grand Master Gershwin:<br>
|
||||
I train only those Kamael who have completed their second class transfer. In other words, I educate <font color="LEVEL">Beserkers, Soul Breakers, and Arbalesters</font>. You should seek out a master who can help you.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/32196-noclass.html
vendored
Normal file
4
trunk/dist/game/data/scripts/village_master/ProofOfJustice/32196-noclass.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><head><body>Grand Master Gershwin:<br>
|
||||
Please do not neglect your training. <br>
|
||||
(This function is only available to characters who have completed the 2nd Class Transfer through the Proof of Destiny quest.)
|
||||
</body></html>
|
79
trunk/dist/game/data/scripts/village_master/ProofOfJustice/ProofOfJustice.java
vendored
Normal file
79
trunk/dist/game/data/scripts/village_master/ProofOfJustice/ProofOfJustice.java
vendored
Normal file
@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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.ProofOfJustice;
|
||||
|
||||
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 Justice implementation.
|
||||
* @author St3eT
|
||||
*/
|
||||
public final class ProofOfJustice extends AbstractNpcAI
|
||||
{
|
||||
// Misc
|
||||
private static final Map<Integer, List<ClassId>> CLASSLIST = new HashMap<>();
|
||||
static
|
||||
{
|
||||
CLASSLIST.put(30505, Arrays.asList(ClassId.DESTROYER, ClassId.TYRANT, ClassId.OVERLORD, ClassId.WARCRYER));
|
||||
CLASSLIST.put(30504, Arrays.asList(ClassId.BOUNTY_HUNTER, ClassId.WARSMITH));
|
||||
CLASSLIST.put(30288, Arrays.asList(ClassId.GLADIATOR, ClassId.WARLORD, ClassId.PALADIN, ClassId.DARK_AVENGER, ClassId.TREASURE_HUNTER, ClassId.HAWKEYE));
|
||||
CLASSLIST.put(30297, Arrays.asList(ClassId.SHILLIEN_KNIGHT, ClassId.BLADEDANCER, ClassId.ABYSS_WALKER, ClassId.PHANTOM_RANGER, ClassId.SPELLHOWLER, ClassId.PHANTOM_SUMMONER, ClassId.SHILLIEN_ELDER));
|
||||
CLASSLIST.put(30158, Arrays.asList(ClassId.SPELLSINGER, ClassId.ELEMENTAL_SUMMONER, ClassId.ELDER));
|
||||
CLASSLIST.put(30155, Arrays.asList(ClassId.TEMPLE_KNIGHT, ClassId.SWORDSINGER, ClassId.PLAINS_WALKER, ClassId.SILVER_RANGER));
|
||||
CLASSLIST.put(30289, Arrays.asList(ClassId.SORCERER, ClassId.NECROMANCER, ClassId.WARLOCK, ClassId.BISHOP, ClassId.PROPHET));
|
||||
CLASSLIST.put(32196, Arrays.asList(ClassId.BERSERKER, ClassId.MALE_SOULBREAKER, ClassId.FEMALE_SOULBREAKER, ClassId.ARBALESTER));
|
||||
}
|
||||
|
||||
private ProofOfJustice()
|
||||
{
|
||||
super(ProofOfJustice.class.getSimpleName(), "village_master");
|
||||
addStartNpc(CLASSLIST.keySet());
|
||||
addTalkId(CLASSLIST.keySet());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance talker)
|
||||
{
|
||||
if (talker.getClassId().level() < 2)
|
||||
{
|
||||
return npc.getId() + "-noclass.html";
|
||||
}
|
||||
else if (!CLASSLIST.get(npc.getId()).contains(talker.getClassId()))
|
||||
{
|
||||
return npc.getId() + "-no.html";
|
||||
}
|
||||
MultisellData.getInstance().separateAndSend(718, talker, npc, false);
|
||||
return super.onTalk(npc, talker);
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new ProofOfJustice();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user