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,153 @@
/*
* 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 conquerablehalls.flagwar.BanditStronghold;
import java.util.Collection;
import com.l2jserver.gameserver.instancemanager.ZoneManager;
import com.l2jserver.gameserver.model.Location;
import com.l2jserver.gameserver.model.zone.type.L2ResidenceHallTeleportZone;
import conquerablehalls.flagwar.FlagWar;
/**
* @author BiggBoss
*/
public final class BanditStronghold extends FlagWar
{
static
{
ROYAL_FLAG = 35422;
FLAG_RED = 35423;
FLAG_YELLOW = 35424;
FLAG_GREEN = 35425;
FLAG_BLUE = 35426;
FLAG_PURPLE = 35427;
ALLY_1 = 35428;
ALLY_2 = 35429;
ALLY_3 = 35430;
ALLY_4 = 35431;
ALLY_5 = 35432;
TELEPORT_1 = 35560;
MESSENGER = 35437;
OUTTER_DOORS_TO_OPEN[0] = 22170001;
OUTTER_DOORS_TO_OPEN[1] = 22170002;
INNER_DOORS_TO_OPEN[0] = 22170003;
INNER_DOORS_TO_OPEN[1] = 22170004;
FLAG_COORDS[0] = new Location(83699, -17468, -1774, 19048);
FLAG_COORDS[1] = new Location(82053, -17060, -1784, 5432);
FLAG_COORDS[2] = new Location(82142, -15528, -1799, 58792);
FLAG_COORDS[3] = new Location(83544, -15266, -1770, 44976);
FLAG_COORDS[4] = new Location(84609, -16041, -1769, 35816);
FLAG_COORDS[5] = new Location(81981, -15708, -1858, 60392);
FLAG_COORDS[6] = new Location(84375, -17060, -1860, 27712);
Collection<L2ResidenceHallTeleportZone> zoneList = ZoneManager.getInstance().getAllZones(L2ResidenceHallTeleportZone.class);
for (L2ResidenceHallTeleportZone teleZone : zoneList)
{
if (teleZone.getResidenceId() != BANDIT_STRONGHOLD)
{
continue;
}
int id = teleZone.getResidenceZoneId();
if ((id < 0) || (id >= 6))
{
continue;
}
TELE_ZONES[id] = teleZone;
}
QUEST_REWARD = 5009;
CENTER = new Location(82882, -16280, -1894, 0);
}
private BanditStronghold()
{
super(BanditStronghold.class.getSimpleName(), BANDIT_STRONGHOLD);
}
@Override
public String getFlagHtml(int flag)
{
String result = null;
switch (flag)
{
case 35423:
result = "messenger_flag1.htm";
break;
case 35424:
result = "messenger_flag2.htm";
break;
case 35425:
result = "messenger_flag3.htm";
break;
case 35426:
result = "messenger_flag4.htm";
break;
case 35427:
result = "messenger_flag5.htm";
break;
}
return result;
}
@Override
public String getAllyHtml(int ally)
{
String result = null;
switch (ally)
{
case 35428:
result = "messenger_ally1result.htm";
break;
case 35429:
result = "messenger_ally2result.htm";
break;
case 35430:
result = "messenger_ally3result.htm";
break;
case 35431:
result = "messenger_ally4result.htm";
break;
case 35432:
result = "messenger_ally5result.htm";
break;
}
return result;
}
public static void main(String[] args)
{
new BanditStronghold();
}
}

View File

@@ -0,0 +1,5 @@
<html><body>
Ol mahum berserkers live for the most appalling aspects of war. An alliance with them would be quite useful to you. They are superior examples of their kind, but their enthusiasm for battle often prevents their proper healing after injury. They are a challenge to handle but are worth the effort.<br>
<a action="bypass -h Quest BanditStrongHold messenger_allychoose.htm">Select another NPC.</a><br>
<a action="bypass -h Quest BanditStrongHold select_clan_npc 35428">Form an alliance.</a>
</body></html>

View File

@@ -0,0 +1,2 @@
<html><body>
Ol mahum berserkers live for the most appalling aspects of war. An alliance with them would be quite useful to you. They are superior examples of their kind, but their enthusiasm for battle often prevents their proper healing after injury. They are a challenge to handle but are worth the effort.

View File

@@ -0,0 +1,5 @@
<html><body>
The ol mahum patrol may not appear to be anything special, but he is a slippery foe. I have never seen one captured by a knight!<br>
<a action="bypass -h Quest BanditStrongHold messenger_allychoose.htm">Select another NPC.</a><br>
<a action="bypass -h Quest BanditStrongHold select_clan_npc 35429">Form an alliance.</a>
</body></html>

View File

@@ -0,0 +1,2 @@
<html><body>
The ol mahum patrol may not appear to be anything special, but he is a slippery foe. I have never seen one captured by a knight!

View File

@@ -0,0 +1,5 @@
<html><body>
The ol mahum prefects possess a powerful magic. They have been known to burn their enemies alive! Ah, yes, the infamous Aura Burn! They are also masters of their staffs, and are strong enough to withstand attack by swords or clubs. Their only weakness is a susceptibility to magic spells...<br>
<a action="bypass -h Quest BanditStrongHold messenger_allychoose.htm">Select another NPC.</a><br>
<a action="bypass -h Quest BanditStrongHold select_clan_npc 35430">Form an alliance.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
The ol mahum prefects possess a powerful magic. They have been known to burn their enemies alive! Ah, yes, the infamous Aura Burn! They are also masters of their staffs, and are strong enough to withstand attack by swords or clubs. Their only weakness is a susceptibility to magic spells...
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
Let me tell you what my opinion is regarding the Oel Mahum Clerics... Ah, even Oel Mahums have a god they worship. It is not the same god called Ein... something that you guys believe in. But, having a god for themselves won't change their natural temperament, will it? They would rather kill than eat. Whenever they get into a fight, they fret themselves to death while trying to blow their enemies' heads off. If an oel mahum feels threatened he will not hesitate to run away and heal himself.... They are the kind of people who always leave a bad taste in your mouth.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>
Ol mahum thieves are amusing little fellows. Shorter than the average ol mahum, they are exceptionally lithe. If they think they have the advantage, they will attack a target. But if they feel threatened they will evade direct conflict with the enemy while using a unique method to bind his legs.<br>
<a action="bypass -h Quest BanditStrongHold messenger_allychoose.htm">Select another NPC.</a><br>
<a action="bypass -h Quest BanditStrongHold select_clan_npc 35432">Form an alliance.</a>
</body></html>

View File

@@ -0,0 +1,2 @@
<html><body>
Ol mahum thieves are amusing little fellows. Shorter than the average ol mahum, they are exceptionally lithe. If they think they have the advantage, they will attack a target. But if they feel threatened they will evade direct conflict with the enemy while using a unique strategy to bind his legs.

View File

@@ -0,0 +1,8 @@
<html><body>
This siege requires that you ally with an ol mahum warrior for battle. All five of these have good reputations. Now choose!<br>
<a action="bypass -h Quest BanditStrongHold messenger_ally1choose.htm">ol mahum berserker</a><br>
<a action="bypass -h Quest BanditStrongHold messenger_ally2choose.htm">ol mahum patrol </a><br>
<a action="bypass -h Quest BanditStrongHold messenger_ally3choose.htm">ol mahum prefect</a><br>
<a action="bypass -h Quest BanditStrongHold messenger_ally4choose.htm">ol mahum cleric</a><br>
<a action="bypass -h Quest BanditStrongHold messenger_ally5choose.htm">ol mahum thief</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
You are too late! Five clans have already registered. Better luck next time!
</body></html>

View File

@@ -0,0 +1,2 @@
<html><body>
Haven't you learned anything? Surely you don't think you can just walk away from our agreement! See you on the battlefield!

View File

@@ -0,0 +1,3 @@
<html><body>
Ah, yes! Here is your registration! You are all set. Don't be late!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
What was the name of your clan again? What is this? You are not even registered for this siege! Do you think that you are above the rules? Or perhaps you are just an idiot!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
Oops, sorry, but your clan is already fully manned. 18 have already been registered! You are a privateer, aren't you?
</body></html>

View File

@@ -0,0 +1,2 @@
<html><body>
Oh, sir, a master such as yourself need not prove himself! Leave such matters to the youngsters! Enjoy the show!

View File

@@ -0,0 +1,3 @@
<html><body>
It is very important that you understand that our team fights under the red flag. We will rally there and start the battle! Don't forget!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
It is very important that you understand that our team fights under the yellow flag. We will rally there and start the battle! Don't forget!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
Our team fights under the green flag. We will rally there and start the battle! Don't forget!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
It is very important that you understand that our team fights under the blue flag. We will rally there and start the battle! Don't forget!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
It is very important that you understand that our team fights under the purple flag. We will rally there and start the battle! Don't forget!
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>
I'm just here to make sure the siege comes off without a hitch. I'll try to stay out of the way. Knock yourselves out!<br>
<a action="bypass -h Quest BanditStrongHold register_clan wQuest">Register a clan (must be a clan leader)</a><br>
<a action="bypass -h Quest BanditStrongHold agit_oel_mahum_messenger_6.htm">Select a Clan NPC (must be a clan leader)</a><br>
<a action="bypass -h Quest BanditStrongHold view_clan_npc">View a Clan NPC (any clan member)</a><br>
<a action="bypass -h Quest BanditStrongHold register_member">Register as a clan member. (Any clan member)</a><br><br>
<a action="bypass -h npc_%objectId%_Quest Q00504_CompetitionForTheBanditStronghold">Quest</a>
</body></html>

View File

@@ -0,0 +1,2 @@
<html><body>
Your clan leader has not yet chosen who he will ally himself with! Go and tell him that his decision is required!

View File

@@ -0,0 +1,3 @@
<html><body>
You must be a clan member to register one. Your business is elsewhere! Go to it!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>
So you want to register for free, eh? There is a way... You can take a test if you can't afford the fee...<br>
<a action="bypass -h npc_%objectId%_Quest Q00504_CompetitionfortheBanditStronghold">"I want to take the test."</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Messenger:<br>
What do you want from me? I don't like that strangers can walk around on this land as they like.<br>
Whew~, but the stronghold is under the rule of <font color="00FFFF">%clanName%</font>clans at present...<br>
<a action="bypass -h npc_%objectId%_Quest Q00504_CompetitionfortheBanditStronghold">Clan Hall War Registration Qualification Test</a><br>
<a action="bypass -h Quest BanditStronghold register_clan">Register for Clan Hall War</a><br>
<a action="bypass -h Quest BanditStronghold view_attacker_list">View Clans Participating in Tournaments</a>
</body></html>

View File

@@ -0,0 +1,2 @@
<html><body>
What's that, you want to register without qualifying? Well, maybe we can work something out... 200,000 adena might get this conversation started...<br>

View File

@@ -0,0 +1,4 @@
<html><body>
What a nerve! And not even a clan leader! When someone tries something like that in the ol mahum troops we eat him for dinner!<br>
(This option is only available to a clan leader.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
You clan leader is dithering on his selection of allies! Go and tell him to hurry up and decide!
</body></html>

View File

@@ -0,0 +1,10 @@
<html><body>Messenger:<br>
If you're having second thoughts, now's the time to back out.<br>
The following Clans are participating in preliminaries:<br>
=== Clans Registered for the Preliminary Contest ===<br>
1. <FONT color=00ffff>%clan1%</FONT> (Number of Participants : <FONT color=00ffff>%clanMem1%</FONT>)<br>
2. <FONT color=00ffff>%clan2%</FONT> (Number of Participants : <FONT color=00ffff>%clanMem2%</FONT>)<br>
3. <FONT color=00ffff>%clan3%</FONT> (Number of Participants : <FONT color=00ffff>%clanMem3%</FONT>)<br>
4. <FONT color=00ffff>%clan4%</FONT> (Number of Participants : <FONT color=00ffff>%clanMem4%</FONT>)<br>
5. <FONT color=00ffff>%clan5%</FONT> (Number of Participants : <FONT color=00ffff>%clanMem5%</FONT>)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
You are too late, registration is over. Maybe next time you should get here earlier!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Messenger:<br>
I thought I made it clear that registration does not begin until one hour before the next siege at %nextSiege%.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
You will be teleporter to the battlefield in 30 seconds.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
You cannot get teleported to the battlefield yet!
</body></html>