This commit is contained in:
159
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/WildBeastReserve.java
vendored
Normal file
159
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/WildBeastReserve.java
vendored
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* 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.WildBeastReserve;
|
||||
|
||||
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 WildBeastReserve extends FlagWar
|
||||
{
|
||||
static
|
||||
{
|
||||
ROYAL_FLAG = 35606;
|
||||
FLAG_RED = 35607; // White flag
|
||||
FLAG_YELLOW = 35608; // Red flag
|
||||
FLAG_GREEN = 35609; // Blue flag
|
||||
FLAG_BLUE = 35610; // Green flag
|
||||
FLAG_PURPLE = 35611; // Black flag
|
||||
|
||||
ALLY_1 = 35618;
|
||||
ALLY_2 = 35619;
|
||||
ALLY_3 = 35620;
|
||||
ALLY_4 = 35621;
|
||||
ALLY_5 = 35622;
|
||||
|
||||
TELEPORT_1 = 35612;
|
||||
|
||||
MESSENGER = 35627;
|
||||
|
||||
FLAG_COORDS[0] = new Location(56963, -92211, -1303, 60611);
|
||||
FLAG_COORDS[1] = new Location(58090, -91641, -1303, 47274);
|
||||
FLAG_COORDS[2] = new Location(58908, -92556, -1303, 34450);
|
||||
FLAG_COORDS[3] = new Location(58336, -93600, -1303, 21100);
|
||||
FLAG_COORDS[4] = new Location(57152, -93360, -1303, 8400);
|
||||
FLAG_COORDS[5] = new Location(59116, -93251, -1302, 31000);
|
||||
FLAG_COORDS[6] = new Location(56432, -92864, -1303, 64000);
|
||||
|
||||
OUTTER_DOORS_TO_OPEN[0] = 21150003;
|
||||
OUTTER_DOORS_TO_OPEN[1] = 21150004;
|
||||
|
||||
INNER_DOORS_TO_OPEN[0] = 21150001;
|
||||
INNER_DOORS_TO_OPEN[1] = 21150002;
|
||||
|
||||
Collection<L2ResidenceHallTeleportZone> zoneList = ZoneManager.getInstance().getAllZones(L2ResidenceHallTeleportZone.class);
|
||||
|
||||
for (L2ResidenceHallTeleportZone teleZone : zoneList)
|
||||
{
|
||||
if (teleZone.getResidenceId() != BEAST_FARM)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
int id = teleZone.getResidenceZoneId();
|
||||
|
||||
if ((id < 0) || (id >= 6))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
TELE_ZONES[id] = teleZone;
|
||||
}
|
||||
|
||||
QUEST_REWARD = 0;
|
||||
CENTER = new Location(57762, -92696, -1359, 0);
|
||||
}
|
||||
|
||||
private WildBeastReserve()
|
||||
{
|
||||
super(WildBeastReserve.class.getSimpleName(), BEAST_FARM);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFlagHtml(int flag)
|
||||
{
|
||||
String result = null;
|
||||
|
||||
switch (flag)
|
||||
{
|
||||
case 35607:
|
||||
result = "messenger_flag1.htm";
|
||||
break;
|
||||
case 35608:
|
||||
result = "messenger_flag2.htm";
|
||||
break;
|
||||
case 35609:
|
||||
result = "messenger_flag3.htm";
|
||||
break;
|
||||
case 35610:
|
||||
result = "messenger_flag4.htm";
|
||||
break;
|
||||
case 35611:
|
||||
result = "messenger_flag5.htm";
|
||||
break;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAllyHtml(int ally)
|
||||
{
|
||||
String result = null;
|
||||
|
||||
switch (ally)
|
||||
{
|
||||
case 35618:
|
||||
result = "messenger_ally1result.htm";
|
||||
break;
|
||||
case 35619:
|
||||
result = "messenger_ally2result.htm";
|
||||
break;
|
||||
case 35620:
|
||||
result = "messenger_ally3result.htm";
|
||||
break;
|
||||
case 35621:
|
||||
result = "messenger_ally4result.htm";
|
||||
break;
|
||||
case 35622:
|
||||
result = "messenger_ally5result.htm";
|
||||
break;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPayRegistration()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new WildBeastReserve();
|
||||
}
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
As you probably guessed, Cougars are known for their bite! They're also much stronger than other beasts... They're worth taming, but if they get hungry, watch out! They fight tirelessly, with no thought to their own safety, or even survival! They require a very special type of handler...<br>
|
||||
<a action="bypass -h Quest WildBeastReserve messenger_allychoose.htm">"I want to choose another NPC."</a><br>
|
||||
<a action="bypass -h Quest WildBeastReserve selet_npc 35618">"I want to form an alliance."</a>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
Cougars are literally fighting machines, who only know how to rip, twist, destroy and kill! If you form an alliance with them, you'll have a mighty war machine at your disposal! They're far stronger than any other beast! But beware... They're so crazy that they stop at nothing! They'll go after the next enemy even when they're gravely injured! They're quite a challenge to handle...
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Buffaloes may seem slow, but they can run faster than the fastest bull! They're huge and resilient beasts...<br>
|
||||
<a action="bypass -h Quest WildBeastReserve messenger_allychoose.htm">"I want to choose another NPC."</a><br>
|
||||
<a action="bypass -h Quest WildBeastReserve select_npc 35619">"I want to form an alliance."</a>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
Buffaloes may appear to possess no special abilities, but they are great at running away! I assume you've witnessed these huge beasts stamping on the ground to make their enemies freeze on the spot? I've never seen that trick work on a Buffalo!
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Kookaburras are quite rare. They possess unusually long legs and brilliantly-colored feathers... They peck the enemy with their beaks and use a mysterious and extremely powerful magic. They don't respond well to beatings. The only reason I was able to capture them is their susceptibility to magic.<br>
|
||||
<a action="bypass -h Quest WildBeastReserve messenger_allychoose.htm">"I want to choose another NPC."</a><br>
|
||||
<a action="bypass -h Quest WildBeastReserve 35620">"I want to form an alliance."</a>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
Kookaburras... How to describe them...? They're truly magical beasts! They burn their enemy with supernatural powers! What's it called?... Aura Burn, maybe? Occasionally, they'll peck at their enemy with their beaks! They're strong enough to withstand sword and stick attacks. One drawback, though... they're surprisingly susceptible to magic...
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Baby Buffalos are among the most fearsome beasts. It prefers fighting to food, and lives to break an enemy's head in battle. When it finds itself in danger, it retreats and heals itself with magic... But I must admit, it's not a very attractive beast.<br>
|
||||
<a action="bypass -h Quest WildBeastReserve messenger_allychoose.htm">"I want to choose another NPC."</a><br>
|
||||
<a action="bypass -h Quest WildBeastReserve select_npc 35621">"I want to form an alliance."</a>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
As for Baby Buffalos... They're truly the king of beasts, though certainly not the most attractive! They actually prefer fighting to food! They're capable of retreating from battle when injured to heal themselves...
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Baby Cougars may look cute, but they have sharp claws and are deadly fast! They're almost impossible to hit, and they have the unique ability to ensnare the enemy's legs on the rare occasion that they find themselves at a disadvantage in battle.<br>
|
||||
<a action="bypass -h Quest WildBeastReserve messenger_allychoose.htm">"I want to choose another NPC."</a><br>
|
||||
<a action="bypass -h Quest WildBeastReserve select_npc 35622">"I want to form an alliance."</a>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
Ah, the Baby Cougars... They may look cute, but they're as fast as lightning with their sharp claws! They're hard to hit, and have a unique ability to restrain the enemy's movements when they find themselves at a disadvantage in battle.
|
||||
</body></html>
|
@@ -0,0 +1,8 @@
|
||||
<html><body>
|
||||
During the coming war, your Clan must ally with one of the following five most vicious types of wild beasts:<br>
|
||||
<a action="bypass -h Quest WildBeastReserve messenger_ally1choose.htm">Frenzied Cougar</a><br>
|
||||
<a action="bypass -h Quest WildBeastReserve messenger_ally2choose.htm">Frenzied Buffalo</a><br>
|
||||
<a action="bypass -h Quest WildBeastReserve messenger_ally3choose.htm">Frenzied Kookaburra</a><br>
|
||||
<a action="bypass -h Quest WildBeastReserve messenger_ally4choose.htm">Frenzied Baby Buffalo</a><br>
|
||||
<a action="bypass -h Quest WildBeastReserve messenger_ally5choose.htm">Frenzied Baby Cougar</a>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
All five clans have already registered for this Clan Hall Battle. You're too late! Next time, get here earlier!
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>
|
||||
You don't remember what you did in the previous battle? Surely you don't intend to break the alliance... Or do you?<br>
|
||||
Confirm it yourself on the battlefield!
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
Have you forgotten so soon? You're already registered! If you have the time, you should read a book called "How to Tame Beasts".
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
Humm... What did you say your clan name was? Well... Hey! You're not even registered for this Clan Hall Battle! You must follow the proper procedure! Get your act together!
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
Your clan is no longer accepting new members. All 18 clan members have been registered! You must be a common soldier.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
Registration was successful! Make sure you're not late for the Clan Hall Battle!
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
There's no need for you to go through the preliminaries designed for common soldiers, master! Enjoy the fights, sir!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/messenger_flag1.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/messenger_flag1.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
We'll rendezvous in front of our yellow team banner before the battle! Don't forget!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/messenger_flag2.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/messenger_flag2.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
We'll rendezvous in front of our red team banner before the battle! Don't forget!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/messenger_flag3.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/messenger_flag3.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
We'll rendezvous in front of our blue team banner before the battle! Don't forget!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/messenger_flag4.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/messenger_flag4.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
We'll rendezvous in front of our green team banner before the battle! Don't forget!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/messenger_flag5.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/messenger_flag5.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
We'll rendezvous in front of our purple team banner before the battle! Don't forget!
|
||||
</body></html>
|
8
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/messenger_initial.htm
vendored
Normal file
8
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/messenger_initial.htm
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>
|
||||
Are you ready? Remember, these are wild animals! Don't let them bite you! It won't be easy!<br>
|
||||
<a action="bypass -h Quest WildBeastReserve register_clan">Clan Register (Leader)</a><br>
|
||||
<a action="bypass -h Quest WildBeastReserve messenger_allychoose.htm">Choose Clan NPC (Leader)</a><br>
|
||||
<a action="bypass -h Quest WildBeastReserve view_clan_npc">See Clan NPC (Member)</a><br>
|
||||
<a action="bypass -h Quest WildBeastReserver register_member">Clan Member Register (Member)</a><br><br>
|
||||
<a action="bypass -h npc_%objectId%_Quest 655_AGrandPlanforTamingWildBeasts">Quest</a>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
Your Clan Leader hasn't decided which beast to tame. He must be taking his time...
|
||||
</body></html>
|
@@ -0,0 +1,7 @@
|
||||
<html><body>Messenger:<br>
|
||||
What brings you to this place? I can't be responsible for your safety here!<br>
|
||||
Unless, that is, you're a member of the <font color=00ffff><?my_pledge_name?></font> Clan in charge of the farm.<br>
|
||||
<a action="bypass -h npc_%objectId%_Quest 655_AGrandPlanforTamingWildBeasts">Qualification Test for Clan Hall Battle Registration</a><br>
|
||||
<a action="bypass -h Quest WildBeastReserve register_clan">Register for Clan Hall Battle</a><br>
|
||||
<a action="bypass -h Quest WildBeastReserve view_attacker_list">Clans Participating in the Preliminaries</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/messenger_noquest.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/messenger_noquest.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
Before you can register for the Clan Hall Battle, you must learn to tame beasts. Come back when you're ready.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
Only Clan Leaders may register their clans. Scram!
|
||||
</body></html>
|
@@ -0,0 +1,9 @@
|
||||
<html><body>Messenger:<br>
|
||||
The following Clans have applied for entry to the preliminary contest. This would be a good time to study their strategies.<br><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>%clanMem1%</font>)
|
||||
<br>3. <font color=00ffff>%clan3%</font> (Number of Participants : <font color=00ffff>%clanMem1%</font>)
|
||||
<br>4. <font color=00ffff>%clan4%</font> (Number of Participants : <font color=00ffff>%clanMem1%</font>)
|
||||
<br>5. <font color=00ffff>%clan5%</font> (Number of Participants : <font color=00ffff>%clanMem1%</font>)
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
The deadline for registration has passed! Get here earlier next time!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/siege_date.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/siege_date.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Messenger:<br>
|
||||
Registration begins an hour before the Clan Hall War.<br>
|
||||
As far as I know, the next Clan Hall War is around %nextSiege%. Check back then.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/teleporter.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/teleporter.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
You will be teleporter to the battlefield in 30 seconds.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/teleporter_notyet.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/conquerablehalls/flagwar/WildBeastReserve/teleporter_notyet.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
You cannot get teleported to the battlefield yet!
|
||||
</body></html>
|
Reference in New Issue
Block a user