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,4 @@
<html><body>What would you like to do?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Alliance 9001-02.htm">Create an Alliance</Button><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Alliance 9001-03.htm">Dissolve Alliance</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>
Create Alliance:<br>
Enter Alliance Name:<br>
<edit var="name" width=80><br>
<button value="Enter" action="bypass -h npc_%objectId%_create_ally $name" width=40 height=15 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button value="Cancel" action="bypass -h Quest Alliance 9001-01.htm" width=40 height=15 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>
At your command the alliance will be dissolved.<br>
<button value="Request Dissolution" action="bypass -h npc_%objectId%_dissolve_ally" width=100 height=15 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button value="Cancel" action="bypass -h Quest Alliance 9001-01.htm" width=40 height=15 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
You must be in Clan.
</body></html>

View File

@@ -0,0 +1,75 @@
/*
* 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.Alliance;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.Quest;
/**
* @author UnAfraid
*/
public final class Alliance extends Quest
{
// @formatter:off
private static final int[] NPCS =
{
30026,30031,30037,30066,30070,30109,30115,30120,30154,30174,
30175,30176,30187,30191,30195,30288,30289,30290,30297,30358,
30373,30462,30474,30498,30499,30500,30503,30504,30505,30508,
30511,30512,30513,30520,30525,30565,30594,30595,30676,30677,
30681,30685,30687,30689,30694,30699,30704,30845,30847,30849,
30854,30857,30862,30865,30894,30897,30900,30905,30910,30913,
31269,31272,31276,31279,31285,31288,31314,31317,31321,31324,
31326,31328,31331,31334,31336,31755,31958,31961,31965,31968,
31974,31977,31996,32092,32093,32094,32095,32096,32097,32098,
32145,32146,32147,32150,32153,32154,32157,32158,32160,32171,
32193,32196,32199,32202,32205,32206,32209,32210,32213,32214,
32217,32218,32221,32222,32225,32226,32229,32230,32233,32234
};
// @formatter:on
private Alliance()
{
super(-1, Alliance.class.getSimpleName(), "village_master");
addStartNpc(NPCS);
addTalkId(NPCS);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
if (!"9001-01.htm".equals(event) && (player.getClan() == null))
{
return "9001-04.htm";
}
return event;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance talker)
{
return "9001-01.htm";
}
public static void main(String[] args)
{
new Alliance();
}
}

View File

@@ -0,0 +1,11 @@
<html><body>What would you like to do?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-02.htm">"I want to create a new clan."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-03.htm">"Can I raise my clan level?"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-04.htm">"I want to disband my clan."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-05.htm">"I'd like to restore my clan."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_learn_clan_skills">"Can you teach me some clan skills?"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-06.htm">"I want to transfer clan leader authority."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-12.htm">"I'd like to manage my Academy."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-13.htm">"I want to manage my Royal Guard."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-14.htm">"I want to manage my Order of Knights."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Enter clan name:<br>
<edit var="name" width=120><br>
<button value="Enter" action="bypass -h npc_%objectId%_create_clan $name" width=80 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_ct1.button_df"><br>
<button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=80 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_ct1.button_df">
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body><br><br>
You are not the leader of this clan. You may not raise the level of it.
</body></html>

View File

@@ -0,0 +1,22 @@
<html><body>
The clan level can be raised. Raising clan level requires the following:<br>
Level 1 - SP : 20,000 Adena : 650,000<br>
Level 2 - SP: 100,000 / Adena: 2,500,000<br>
Level 3 - SP: 350,000 / Item: Blood Mark<br>
Level 4 - SP: 1,000,000 / Item: Alliance Manifesto<br>
Level 5 - SP: 2,500,000 / Item: Seal of Aspiration<br>
Level 6 - Clan Fame: 5,000 / Clan Member: More than 30<br>
Level 7 - Clan Fame: 10,000 / Clan Member: More than 50<br>
Level 8 - Clan Fame: 20,000 / Clan Member: More than 80<br>
Level 9 - Clan Fame: 40,000 / Clan Member: More than 120 / Item: 150 Blood Oaths<br>
Level 10 - Clan Fame: 40,000 / Clan Member: More than 140 / Item: 5 Blood Alliance<br>
Level 11 - Clan Fame: 75,000 / Clan Member: More than 170 / Must be Territory Owner<br>
You can obtain a Blood Mark by killing a Bloody Queen. They are located in Watcher's Tomb or around the Forbidden Gateway.<br>
To obtain an Alliance Manifesto, meet sir Christopher Rodemai of Giran Castle Town.<br>
To obtain a Seal of Aspiration, see Sir Gustav Athebaldt in the Town of Oren.<br>
To obtain Blood Oath, acquire a fortress and prove that the territories are being protected.<br>
To obtain the Determination of Blood, possess a castle and prove that the territories are being protected and citizens are being taken care of.<br>
<a action="bypass -h Quest Clan 9000-16.htm">How to obtain Clan Fame</a><br>
<button value="Level Up" action="bypass -h npc_%objectId%_increase_clan_level" width=80 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
<button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=80 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body><br><br>
You are not the leader of this clan. You may not dissolve it.
</body></html>

View File

@@ -0,0 +1,10 @@
<html><body>
If you apply for dissolution, the clan will be dissolved.<br>
You may cancel your application for clan dissolution within one week of applying by using Clan Restoration Request. If you cancel the application, you must wait at least 7 days before making another clan dissolution request.<br>
If you apply for clan dissolution, the clan lord will lose experience equal to the lost in one death. Following the completion of the clan dissolution, you cannot form another clan for 10 days.<br>
Please note that any items remaining in the clan warehouse at the time of clan dissolution will immediately disappear.<br>
<table width="270"><tr>
<td><button value="Dissolution" action="bypass -h npc_%objectId%_dissolve_clan" width=100 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
<td align="right"><button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=100 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
</tr></table>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body><br><br>
You are not the leader of this clan. You may not recover it.
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>
If you request a restoration, your clan dissolution request will be canceled.<br>
<table width="270"><tr>
<td><button value="Restoration" action="bypass -h npc_%objectId%_recover_clan" width=100 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
<td align="right"><button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=100 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
</tr></table>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body> Select a clan member to receive the mantle of clan leader.<br>
Requests for authority transfer are usually processed every Wednesday morning. However, because the transfer process may complete sooner, consider your decision carefully before submitting a request.<br>
Once a request is processed, you cannot cancel the transfer. However, you can cancel at any time before processing.<br>
Since this process transfers all rights of the clan leader to another member, consider this action carefully before submitting a request.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-07.htm">"Help me request the transfer of clan leader authority."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-06a.htm">"I want to cancel my request for clan leader authority transfer."</Button>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Clan 9000-01.htm">Back</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>
Cancel the application for Clan Leader transfer. Once the Clan Leader transfer is complete, it cannot be canceled.<br>
<a action="bypass -h npc_%objectId%_cancel_clan_leader_change">Cancel application for Clan Leader transfer</a><br>
<a action="bypass -h npc_%objectId%_Quest Clan 9000-01.htm">Return</a>
</html></body>

View File

@@ -0,0 +1,3 @@
<html><body>
Your previous transfer request has been canceled.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
Your previous transfer request has been submitted.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
You are not a Clan Leader.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
The application for Clan leader transfer has been submitted.
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>
Insert the name of the Clan member to commit:<br>
<edit var="name" width=120><br>
<button value="Submit" action="bypass -h npc_%objectId%_change_clan_leader $name" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
</body></html>

View File

@@ -0,0 +1,11 @@
<html><body> Clans Lv. 5 or above can found an Academy.<br>
You can enroll in an Academy if your main and subclasses are all below Lv. 85 and have not Awakened. If an Academy member Awakens, they automatically graduate.<br>
Up to 20 members may enroll at an Academy. The amount of Reputation a clan receives when a member graduates varies depending on the member's level upon entry.<br>
When a clan founds an Academy, its clan leader gains buffs for the benefit of the members.<br>
Academy members can use their Academy Circlets to efficiently power-up their character.<br>
The leader can appoint a clan member to sponsor an Academy member, which gives the sponsor buffs to use on the sponsored member. They're a bit weaker than the clan leader's buffs, however.<br>
In addition, sponsors can help their partners carry out Academy quests, and check their login status.<br>
Academy members can do Academy quests with their sponsors at Lv. 70. Upon success, the clan, sponsor, and Academy member are all rewarded.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-12a.htm">"I'd like to found an Academy."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-12b.htm">"I'd like to change my Academy's name."</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Create Academy:<br>
Enter Academy Name:<br>
<edit var="name" width=120><br>
<button value="Enter" action="bypass -h npc_%objectId%_create_academy $name" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Rename the existing Academy:<br>
Enter new name for Academy:<br>
<edit var="name" width=120><br>
<button value="Enter" action="bypass -h npc_%objectId%_rename_pledge -1 $name" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Clans Lv. 6 or above may create Royal Guards with 5,000 Clan Reputation points.<br>
You can create up to 2 Royal Guards. Each can have up to 20 clan members. A clan that reaches Lv. 11 may increase the number of its Royal Guard members with 7,500 Clan Reputation points.<br>
Upon creation of a Royal Guard, 1 Royal Guard Captain must be appointed from among the clan members. The social class of the newly-appointed Royal Guard Captain will go up.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-13a.htm">"I want to create a Royal Guard."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-01.htm">"I want to reinforce my Royal Guard. [NOT DONE]"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-13b.htm">"I want to rename my Royal Guard."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-15.htm">"I want to change Royal Guard Captains."</Button>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Clan 9000-01.htm">Back</Button>
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>
Create Royal Guard Unit:<br>
Enter Unit Name:<br>
<edit var="name" width=120><br>
Enter Unit Leader Name:<br>
<edit var="lname" width=120><br>
<button value="Enter" action="bypass -h npc_%objectId%_create_royal $name $lname" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
</body></html>

View File

@@ -0,0 +1,3 @@
<body><html><a action="bypass -h Quest Clan 9000-13c.htm">Rename the First Royal Guard.</a><br>
<a action="bypass -h Quest Clan 9000-13d.htm">Rename the Second Royal Guard.</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Rename First Royal Guard:<br>
Enter new name for First Royal Guard:<br>
<edit var="name" width=120><br>
<button value="Enter" action="bypass -h npc_%objectId%_rename_pledge 100 $name" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Rename Second Royal Guard:<br>
Enter new name for Second Royal Guard:<br>
<edit var="name" width=120><br>
<button value="Enter" action="bypass -h npc_%objectId%_rename_pledge 200 $name" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
</body></html>

View File

@@ -0,0 +1,10 @@
<html><body>A clan Lv. 7 or above may establish an Order of Knights with 10,000 Clan Reputation points.<br>
You can create up to 4 Orders of Knights. Each can have up to 10 clan members.<br>
A clan that reaches Lv. 9 may increase the number of members in its Orders of Knights with 5,000 Clan Reputation points. Up to Lv. 10, they can do so for 2 Orders of Knights.<br>
Upon creation of an Order of Knights, 1 Captain must be appointed from among its members. The social class of the newly-appointed Captain will go up.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-14a.htm">"I want to create an Order of Knights."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-01.htm">"I want to reinforce my Order of Knights. [not done]"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-14b.htm">"I want to change the name of my Order of Knights."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Clan 9000-01.htm">"I want to change Knight Captains."</Button>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Clan 9000-01.htm">Back</Button>
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>
Create Order of Knights Unit:<br>
Enter Unit Name:<br>
<edit var="name" width=120><br>
Enter Unit Leader Name:<br>
<edit var="lname" width=120><br>
<button value="Enter" action="bypass -h npc_%objectId%_create_knight $name $lname" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>
<a action="bypass -h Quest Clan 9000-14c.htm">Rename First Order of Knights.</a><br>
<a action="bypass -h Quest Clan 9000-14d.htm">Rename Second Order of Knights.</a><br>
<a action="bypass -h Quest Clan 9000-14e.htm">Rename Third Order of Knights.</a><br>
<a action="bypass -h Quest Clan 9000-14f.htm">Rename Fourth Order of Knights.</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Rename first Order of Knights:<br>
Enter new name for first Order of Knights:<br>
<edit var="name" width=120><br>
<button value="Enter" action="bypass -h npc_%objectId%_rename_pledge 1001 $name" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Rename second Order of Knights:<br>
Enter new name for second Order of Knights:<br>
<edit var="name" width=120><br>
<button value="Enter" action="bypass -h npc_%objectId%_rename_pledge 1002 $name" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Rename third Order of Knights:<br>
Enter new name for third Order of Knights:<br>
<edit var="name" width=120><br>
<button value="Enter" action="bypass -h npc_%objectId%_rename_pledge 2001 $name" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Rename fourth Order of Knights:<br>
Enter new name for fourth Order of Knights:<br>
<edit var="name" width=120><br>
<button value="Enter" action="bypass -h npc_%objectId%_rename_pledge 2002 $name" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>
Assign new sub-unit leader:<br>
Enter unit name:<br>
<edit var="name" width=120><br>
Enter new unit leader name:<br>
<edit var="lname" width=120><br>
<button value="Enter" action="bypass -h npc_%objectId%_assign_subpl_leader $name $lname" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
<button value="Cancel" action="bypass -h Quest Clan 9000-01.htm" width=80 height=27 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
</body></html>

View File

@@ -0,0 +1,22 @@
<html><body>
<font color="FF9900">[Acquiring Clan Fame]</font><br>
1. A new clan member who completes the Second Class Transfer through an academy will add from <font color="00FFFF">190 points</font> to <font color="00FFFF">650 points</font> to the clan's fame, depending on their level when joining the academy.<br>
2. If a castle is captured following a siege, <font color="00FFFF">1500 points</font> are added. (<font color="00FFFF">1500 points</font> are added even if the defenders are NPCs.)<br>
3. If a clan maintains possession of a castle for 2 consecutive weeks, <font color="00FFFF">750 points</font> are added.<br>
4. When the clan acquires a battle-type hideout, <font color="00FFFF">500 points</font> are added; if the hide-out was captured from another clan, <font color="00FFFF">500 points</font> are taken from their score.<br>
5. If a clan member maintains possession of a battle-type hideout for 2 consecutive weeks, <font color="00FFFF">250 points</font>are added.<br>
6. If a clan member is also a member of the party that wins first place in the Festival of Darkness, <font color="00FFFF">200 points</font> are added.<br>
7. If a clan member is reborn as a hero, up to <font color="00FFFF">1000 points</font> are added (depending on the number of members).<br>
8. Fame can also be increased through special clan quests.<br>
9. If your clan defeats an enemy clan member during clan war (dual declared state) or a castle siege, <font color="00FFFF">1 points</font> per clan member is added from the enemy clan.<br>
*If the other clan is below level 5 or its fame is less than 0, your clan cannot acquire its fame.<br>
10. If a fortress is captured following a siege, <font color="00FFFF">200 points</font> are added.<br>
11. If your clan demolished the ballistas inside a fortress, <font color="00FFFF">30 points</font> are added.<br>
<font color="FF9900">[Losing Clan Fame]</font><br>
1. If you fail to defend a castle or fortress in a siege, up to <font color="00FFFF">3000 points</font> can be lost.<br>
2. If you lose a battle-type hideout to another clan, up to <font color="00FFFF">1000 points</font> can be lost.<br>
3. If an allied clan member is killed by an enemy clan member during a clan war (dual declared state) or a castle siege, <font color="00FFFF">1 point</font> is lost per clan member.<br>
4. Fame points can be used to purchase items to help raise the clan's level, or to acquire clan skills.<br>
*Fame is not lost if the clan is below level 5 or its fame is less than 0.<br><br>
<a action="bypass -h Quest Clan 9000-03.htm">Back</a>
</body></html>

View File

@@ -0,0 +1,96 @@
/*
* 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.Clan;
import java.util.HashMap;
import java.util.Map;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.Quest;
/**
* @author UnAfraid
*/
public final class Clan extends Quest
{
// @formatter:off
private static final int[] NPCS =
{
30026,30031,30037,30066,30070,30109,30115,30120,30154,30174,
30175,30176,30187,30191,30195,30288,30289,30290,30297,30358,
30373,30462,30474,30498,30499,30500,30503,30504,30505,30508,
30511,30512,30513,30520,30525,30565,30594,30595,30676,30677,
30681,30685,30687,30689,30694,30699,30704,30845,30847,30849,
30854,30857,30862,30865,30894,30897,30900,30905,30910,30913,
31269,31272,31276,31279,31285,31288,31314,31317,31321,31324,
31326,31328,31331,31334,31336,31755,31958,31961,31965,31968,
31974,31977,31996,32092,32093,32094,32095,32096,32097,32098,
32145,32146,32147,32150,32153,32154,32157,32158,32160,32171,
32193,32196,32199,32202,32205,32206,32209,32210,32213,32214,
32217,32218,32221,32222,32225,32226,32229,32230,32233,32234
};
// @formatter:on
private static final Map<String, String> LEADER_REQUIRED = new HashMap<>();
static
{
LEADER_REQUIRED.put("9000-03.htm", "9000-03-no.htm");
LEADER_REQUIRED.put("9000-04.htm", "9000-04-no.htm");
LEADER_REQUIRED.put("9000-05.htm", "9000-05-no.htm");
LEADER_REQUIRED.put("9000-07.htm", "9000-07-no.htm");
LEADER_REQUIRED.put("9000-12a.htm", "9000-07-no.htm");
LEADER_REQUIRED.put("9000-12b.htm", "9000-07-no.htm");
LEADER_REQUIRED.put("9000-13a.htm", "9000-07-no.htm");
LEADER_REQUIRED.put("9000-13b.htm", "9000-07-no.htm");
LEADER_REQUIRED.put("9000-14a.htm", "9000-07-no.htm");
LEADER_REQUIRED.put("9000-14b.htm", "9000-07-no.htm");
LEADER_REQUIRED.put("9000-15.htm", "9000-07-no.htm");
}
private Clan()
{
super(-1, Clan.class.getSimpleName(), "village_master");
addStartNpc(NPCS);
addTalkId(NPCS);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
if (LEADER_REQUIRED.containsKey(event))
{
if (!player.isClanLeader())
{
return LEADER_REQUIRED.get(event);
}
}
return event;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance talker)
{
return "9000-01.htm";
}
public static void main(String[] args)
{
new Clan();
}
}

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();
}
}

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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();
}
}

View File

@@ -0,0 +1,11 @@
Scripts defined in the village_master folder control the AI for the dialogs of village masters.
In particular, changing occupations, creating/disolving a clan, and many more options given by
village masters often require additional checks. All such checks are implemented here.
For example, when a player attempts to change his occupation to SpellSinger, checks are needed
in order to ensure that the player is currently an Elven Wizard and has successfully found all
the necessary quest items for this class change. The dialogs offered are different when each of
the checks fails or succeeds.
The mechanics and syntax of all village_master scripts are the same as all quest scripts. For more
details, please see "scripts/quests/documentation.txt"