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,5 @@
<html><body>Leopold:<br>
Currently, the Black Lion mercenaries are working for the lord of Gludio. They are in charge of getting rid of the <font color="LEVEL">remnants of Ol Mahum</font>, who are still staying and causing problems in this land. They have been fighting against the remnants for several months.<br>
However, Ol Mahums are not savages like werewolves, but highly trained soldiers. They are very difficult to deal with, since they are well organized like regular armies.<br>A few days ago, our Black Lion troop was shamefully defeated in close battle with Ol Mahums on the outskirts of Gludin. Many brothers lost their lives in combat. We are short of troops until the second platoon returns from the Wastelands in the south. I am very worried ... We may have to recruit some good fighters who will fight with us ...<br>
(Quest for characters level 21 and above.)
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Leopold:<br>
Currently, the Black Lion mercenaries are working for the lord of Gludio. They are in charge of getting rid of the <font color="LEVEL">remnants of Ol Mahum</font>, who are still staying and causing problems in this land. They have been fighting against the remnants for several months.<br>
However, Ol Mahums are not savages like werewolves, but highly trained soldiers. They are very difficult to deal with, since they are well organized like regular armies.<br>
A few days ago, our Black Lion troop was shamefully defeated in a close battle with Ol Mahums on the outskirts of Gludin. Many brothers lost their lives in combat. We are short of troops until our brothers of the second platoon, who have been dispatched to the Wastelands in the south, return. So we have decided to recruit skilled fighters to temporarily fill our troop.<br>
From the scars on your armor and the way you hold your weapon, you seem like you have had a lot of experience on the field. What do you think? Won't you fight for the Black Lions? It is an opportunity to play a role in punishing the cruel Ol Mahum who have ruined this land.<br>
<a action="bypass -h Quest Q00326_VanquishRemnants 30435-03.htm">Say you will fight</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Leopold:<br>
The Black Lion undoubtedly rewards its members according to skill and performance. You will be paid according to the number of enemies you kill. One condition, though, you must take the <font color="LEVEL">badge of ranking</font> as a token of proof.<br>
Ol Mahum use badges in the shape of a cross, taking after the foreign troops of Gracia. Patrols and guards have red, suppliers, officers, and shooters have blue, and the generals and captains have Black Cross Badges. Naturally, you will receive a higher award depending on the rank of the Ol Mahum you killed.<br>
If you display great skills on the battlefield, you can become an official member of the Black Lions. For this, you must gather <font color="LEVEL">100 badges of the Ol Mahum</font> to prove your skills.<br>
Currently, Ol Mahum are camping in the <font color="LEVEL">abandoned camp</font>. If you don't know how to get there, ask Guard Linus. Wonderful! Now get ready to depart, my comrade. Forward to victory!
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Leopold:<br>
Comrade, how is the situation on the battlefield? As you have no badge of the Ol Mahum in your hand, I see your performance has not been good. If you think fighting against the Ol Mahum is too difficult for you, you can always quit. It is better for both of us if you acknowledge your limits instead of aiming too high.<br>
If you are thinking of continuing to fight Ol Mahums, I will give you some advice. As I already told you, the Ol Mahum may seem like savage beasts, but they have an organization that has been trained as well as any country's official army. Ol Mahums will help companions in danger, so you may have to face several Ol Mahums at once.<br>
Unless you form a troop like them, you have no choice but to approach them carefully and use guerilla tactics to deal with them one at a time. Knights may say it is a dishonorable way to fight, but it's quite an effective method.<br>
<a action="bypass -h Quest Q00326_VanquishRemnants 30435-07.html">Say you will quit</a><br>
<a action="bypass -h Quest Q00326_VanquishRemnants 30435-08.html">Say you will continue</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Leopold:<br>
Welcome, comrade of the sword! Seeing you safely return from the scene of battle gives me great joy. The badges of the enemy in your hand show that the goddess of victory has smiled upon you.<br>
I received a letter that the brothers of the second platoon, who were dispatched to the south part of Gludio, will return later than planned. I will need more of your services for the time being.<br>
<a action="bypass -h Quest Q00326_VanquishRemnants 30435-07.html">Say you will quit</a><br>
<a action="bypass -h Quest Q00326_VanquishRemnants 30435-08.html">Say you will continue</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Leopold:<br>
Welcome, my comrade of the sword! I congratulate you on your safe return. How was your performance on the battlefield?<br>
How truly amazing! You have really brought me 100 badges! Magnificent! As I promised, I acknowledge you a member of the Black Lions. Because of our current situation, we cannot give you a proper joining ceremony, but instead, I give you this mark. The mark shows that you are a member of the proud Black Lions.<br>
I received a letter that the brothers of the second platoon, who were dispatched to the south part of Gludio, will return later than planned. You must go back to the battlefield and fight, comrade of the sword!<br>
<a action="bypass -h Quest Q00326_VanquishRemnants 30435-07.html">Say you will quit</a><br>
<a action="bypass -h Quest Q00326_VanquishRemnants 30435-08.html">Say you will continue</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Leopold:<br>
I am sorry, but if this is truly your will, I cannot stop you. However, the ties made as brothers of the sword are not easily broken ... We will meet again someday. May the goddess of victory be with you in all the battlefields that you walk upon!!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Leopold:<br>
Please continue your services, comrade of the sword. May the goddess of victory guide your sword and staff!
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Leopold:<br>
Welcome, my comrade of the sword! I congratulate you on your safe return. How was your performance on the battlefield?<br>
How truly amazing! You brought back another hundred badges! Magnificent! Ha ha! You have already proven your skills and have been acknowledged as a member of the Black Lions, and yet you still amaze me!<br>
I received a letter that the brothers of the second platoon, who were dispatched to the south part of Gludio, will return later than planned. Our brothers here must hold on until they return. Go on back to the battlefield and fight, brother of the sword!<br>
<a action="bypass -h Quest Q00326_VanquishRemnants 30435-07.html">Say you will quit</a><br>
<a action="bypass -h Quest Q00326_VanquishRemnants 30435-08.html">Say you will continue</a>
</body></html>

View File

@@ -0,0 +1,155 @@
/*
* 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 quests.Q00326_VanquishRemnants;
import java.util.HashMap;
import java.util.Map;
import com.l2jserver.gameserver.enums.QuestSound;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
/**
* Vanquish Remnants (326)
* @author xban1x
*/
public final class Q00326_VanquishRemnants extends Quest
{
// NPC
private static final int LEOPOLD = 30435;
// Items
private static final int RED_CROSS_BADGE = 1359;
private static final int BLUE_CROSS_BADGE = 1360;
private static final int BLACK_CROSS_BADGE = 1361;
private static final int BLACK_LION_MARK = 1369;
// Monsters
private static final Map<Integer, int[]> MONSTERS = new HashMap<>();
//@formatter:off
static
{
MONSTERS.put(20053, new int[] {61, RED_CROSS_BADGE}); // Ol Mahum Patrol
MONSTERS.put(20058, new int[] {61, RED_CROSS_BADGE}); // Ol Mahum Guard
MONSTERS.put(20061, new int[] {57, BLUE_CROSS_BADGE}); // Ol Mahum Remnants
MONSTERS.put(20063, new int[] {63, BLUE_CROSS_BADGE}); // Ol Mahum Shooter
MONSTERS.put(20066, new int[] {59, BLACK_CROSS_BADGE}); // Ol Mahum Captain
MONSTERS.put(20436, new int[] {55, BLUE_CROSS_BADGE}); // Ol Mahum Supplier
MONSTERS.put(20437, new int[] {59, RED_CROSS_BADGE}); // Ol Mahum Recruit
MONSTERS.put(20438, new int[] {60, BLACK_CROSS_BADGE}); // Ol Mahum General
MONSTERS.put(20439, new int[] {62, BLUE_CROSS_BADGE}); // Ol Mahum Officer
}
//@formatter:on
// Misc
private static final int MIN_LVL = 21;
public Q00326_VanquishRemnants()
{
super(326, Q00326_VanquishRemnants.class.getSimpleName(), "Vanquish Remnants");
addStartNpc(LEOPOLD);
addTalkId(LEOPOLD);
addKillId(MONSTERS.keySet());
registerQuestItems(RED_CROSS_BADGE, BLUE_CROSS_BADGE, BLACK_CROSS_BADGE);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
String htmltext = null;
if (st != null)
{
switch (event)
{
case "30435-03.htm":
{
st.startQuest();
htmltext = event;
break;
}
case "30435-07.html":
{
st.exitQuest(true, true);
htmltext = event;
break;
}
case "30435-08.html":
{
htmltext = event;
break;
}
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState st = getQuestState(killer, false);
if ((st != null) && st.isStarted() && (getRandom(100) < MONSTERS.get(npc.getId())[0]))
{
st.giveItems(MONSTERS.get(npc.getId())[1], 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
return super.onKill(npc, killer, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, true);
String htmltext = null;
if (st != null)
{
switch (st.getState())
{
case State.CREATED:
{
htmltext = (player.getLevel() >= MIN_LVL) ? "30435-02.htm" : "30435-01.htm";
break;
}
case State.STARTED:
{
final long red_badges = st.getQuestItemsCount(RED_CROSS_BADGE);
final long blue_badges = st.getQuestItemsCount(BLUE_CROSS_BADGE);
final long black_badges = st.getQuestItemsCount(BLACK_CROSS_BADGE);
final long sum = red_badges + blue_badges + black_badges;
if (sum > 0)
{
if ((sum >= 100) && !st.hasQuestItems(BLACK_LION_MARK))
{
st.giveItems(BLACK_LION_MARK, 1);
}
st.giveAdena(((red_badges * 46) + (blue_badges * 52) + (black_badges * 58) + ((sum >= 10) ? 4320 : 0)), true);
takeItems(player, -1, RED_CROSS_BADGE, BLUE_CROSS_BADGE, BLACK_CROSS_BADGE);
htmltext = (sum >= 100) ? (st.hasQuestItems(BLACK_LION_MARK)) ? "30435-09.html" : "30435-06.html" : "30435-05.html";
}
else
{
htmltext = "30435-04.html";
}
break;
}
}
}
return htmltext;
}
}