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>Captain Mathias:<br>
Have you noticed the Red Moon as of Late? A bad omen to be sure. When that moon rises it tends to cause creatures to become more aggressive. I don't know maybe it has something to do with the color of blood.<br>
The king tries to hide it but I know he is troubled by the rise in monster related attacks. Unfortunately our forces are scarce as is and I cannot afford to send any of my troops out to handle the problem.<br>
<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-04.htm">That is a problem. I might be the solution.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Captain Mathias:<br>
Good job today.<br>
You were a great help. I know you're busy, but please help me again next time. The Elmore Kingdom will always welcome help from brave adventurers such as yourself.<br>
(This quest can only be undertaken once a day. This quest gets initialized everyday at 6:30 am.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Captain Mathias:<br>
I cannot trust your skill level. In order to receive this important mission, you need more experience.<br>
This is a life-risking task. (Only characters above level 80 can undertake this quest.)
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Captain Mathias:<br>
You? Well, I suppose... those scars aren't for show, now are they? It looks like you can handle yourself in a fight.<br>
We have had reports of monsters near <font color="LEVEL">Rune and Goddard</font> that have been the cause of these recent attacks.<br>
I'm not going to lie, it will be dangerous, but I will be able to reward you for your efforts... that is if you are still interested.<br>
<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-05.html">Hmmm, likely to be killed... sure why not.</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Captain Mathias:<br>
Alright, there are three high priority targets.<br>
In Goddard, the Varka Silenos and Ketra Orcs Leaders have been rallying their troops. We need someone to go in there and eliminate the cause of their hostility.<br>
In the swamps near Rune, there is the Cannibalistic Stakato Chief... apparently it's got a taste for it's own kind. Creates a chemically induced state that causes it to go on a rampage. We need it taken out.<br>
Lastly, there is Anais in the Monastery of Silence. Our Intel is sketchy on the exact nature of this threat only that they need to be eliminated.<br>
<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-10.html">Well then, what I'm I waiting for.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Captain Mathias:<br>
So, you want to take a shot at the Varka Silenos and the Ketra Orcs?<br>
You are going to want to kill their leaders. The ones to hunt are <font color="LEVEL">Shadith, Moss, Horus, Hekaton, Tayr, and Braki.</font> You don't need to kill them all... killing 1 should send the message. Oh, and once you are done... bring back their <font color="LEVEL">Shattered Bones.</font> as proof you have completed the assignment.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Captain Mathias:<br>
The Stakatos have become more aggressive lately. This is probably due to their Leader who has a taste of their own kind. Consuming the flesh of the Stakato seems to produce a chemical that causes intense aggression. It sends them in a fury to attack all those around. We don't have a scientific name for him, we just call it the <font color="LEVEL">Cannibalistic Stakato Chief.</font> Once you have taken care of this creature be sure to remove and bring me back the <font color="LEVEL">Cannibalistic Stakato Chief's Claw</font> as proof you have finished the assignment.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Captain Mathias:<br>
The Monastery of Silence, Eh? The creature you seek is <font color="LEVEL">Anais</font>. A very powerful creature, so be careful. Just a tip... the Monks there don't like weapons. Your best off not brandishing your weapon until you find what you are looking for. Rumor has it Anais can be found near the Holy Grail. IF you know where that is, you know where to find Anais. Bring me <font color="LEVEL">Anais's Scroll</font> once you have taken care of that little problem.
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Captain Mathias:<br>
Wait a second. I like to keep tabs on who is doing what for me. I want to know what your plan of attack is. Which target do you plan on addressing?<br>
<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-06.html">The Ketra Orcs and the Varka Silenos</a><br>
<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-07.html">The Cannibalistic Stakato Chief</a><br>
<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-08.html">Anais</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Captain Mathias:<br>
Thanks for agreeing to help.<br>
I would like to know where you are planning to go. Which of the monsters I mentioned will you go to suppress?<br>
<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-06.html">The Ketra Orcs and the Varka Silenos</a><br>
<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-07.html">The Cannibalistic Stakato Chief</a><br>
<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-08.html">Anais</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Captain Mathias:<br>
The Ketra Orcs and the Varka Silenos are sworn enemies. Capturing just <font color="LEVEL">one of the leader monsters</font> will be considered meeting the suppression goal.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Captain Mathias:<br>
The Stakato Nest, where the Cannibalistic Stakato Chief lives, is a very dangerous place. Please be careful.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Captain Mathias:<br>
If you wish to defeat Anais in the Monastery of Silence, you will first need to walk a dangerous path. Be careful.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Captain Mathias:<br>
Well done. Speak to me again if you have any interest in further assignments. As promised here is your compensation.
</body></html>

View File

@@ -0,0 +1,246 @@
/*
* 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.Q00902_ReclaimOurEra;
import java.util.HashMap;
import java.util.Map;
import com.l2jserver.gameserver.enums.QuestType;
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;
import com.l2jserver.gameserver.util.Util;
/**
* Reclaim Our Era (902)
* @author netvirus
*/
public final class Q00902_ReclaimOurEra extends Quest
{
// Npc
private static final int MATHIAS = 31340;
// Misc
private static final int MIN_LVL = 80;
// Items
private static final int SHATTERED_BONES = 21997;
private static final int CANNIBALISTIC_STAKATO_LDR_CLAW = 21998;
private static final int ANAIS_SCROLL = 21999;
private static final int PROOF_OF_CHALLENGE = 21750;
// Monsters
private static final Map<Integer, Integer> MONSTER_DROPS = new HashMap<>();
static
{
MONSTER_DROPS.put(25309, SHATTERED_BONES); // Varka's Hero Shadith
MONSTER_DROPS.put(25312, SHATTERED_BONES); // Varka's Commander Mos
MONSTER_DROPS.put(25315, SHATTERED_BONES); // Varka's Chief Horus
MONSTER_DROPS.put(25299, SHATTERED_BONES); // Ketra's Hero Hekaton
MONSTER_DROPS.put(25302, SHATTERED_BONES); // Ketra's Commander Tayr
MONSTER_DROPS.put(25305, SHATTERED_BONES); // Ketra's Chief Brakki
MONSTER_DROPS.put(25667, CANNIBALISTIC_STAKATO_LDR_CLAW); // Cannibalistic Stakato Chief
MONSTER_DROPS.put(25668, CANNIBALISTIC_STAKATO_LDR_CLAW); // Cannibalistic Stakato Chief
MONSTER_DROPS.put(25669, CANNIBALISTIC_STAKATO_LDR_CLAW); // Cannibalistic Stakato Chief
MONSTER_DROPS.put(25670, CANNIBALISTIC_STAKATO_LDR_CLAW); // Cannibalistic Stakato Chief
MONSTER_DROPS.put(25701, ANAIS_SCROLL); // Anais - Master of Splendor
}
public Q00902_ReclaimOurEra()
{
super(902, Q00902_ReclaimOurEra.class.getSimpleName(), "Reclaim Our Era");
addStartNpc(MATHIAS);
addTalkId(MATHIAS);
addKillId(MONSTER_DROPS.keySet());
registerQuestItems(SHATTERED_BONES, CANNIBALISTIC_STAKATO_LDR_CLAW, ANAIS_SCROLL);
}
private void giveItem(L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if ((st != null) && (st.isStarted()) && (!st.isCond(5)) && Util.checkIfInRange(1500, npc, player, false))
{
st.giveItems(MONSTER_DROPS.get(npc.getId()), 1);
st.setCond(5, true);
}
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
String htmltext = null;
if (st == null)
{
return htmltext;
}
switch (event)
{
case "31340-04.htm":
{
if (st.isCreated())
{
htmltext = event;
}
break;
}
case "31340-05.html":
{
if (st.isCreated())
{
st.startQuest();
htmltext = event;
}
break;
}
case "31340-06.html":
{
if (st.isCond(1))
{
st.setCond(2, true);
htmltext = event;
}
break;
}
case "31340-07.html":
{
if (st.isCond(1))
{
st.setCond(3, true);
htmltext = event;
}
break;
}
case "31340-08.html":
{
if (st.isCond(1))
{
st.setCond(4, true);
htmltext = event;
}
break;
}
case "31340-10.html":
{
if (st.isCond(1))
{
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
if (killer.isInParty())
{
for (L2PcInstance member : killer.getParty().getMembers())
{
giveItem(npc, member);
}
}
else
{
giveItem(npc, killer);
}
return super.onKill(npc, killer, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (st == null)
{
return htmltext;
}
switch (st.getState())
{
case State.COMPLETED:
{
if (!st.isNowAvailable())
{
htmltext = "31340-02.htm";
break;
}
st.setState(State.CREATED);
}
case State.CREATED:
{
htmltext = (player.getLevel() >= MIN_LVL) ? "31340-01.htm" : "31340-03.htm";
break;
}
case State.STARTED:
{
switch (st.getCond())
{
case 1:
{
htmltext = "31340-09.html";
break;
}
case 2:
{
htmltext = "31340-11.html";
break;
}
case 3:
{
htmltext = "31340-12.html";
break;
}
case 4:
{
htmltext = "31340-13.html";
break;
}
case 5:
{
if (st.hasQuestItems(SHATTERED_BONES))
{
st.giveItems(PROOF_OF_CHALLENGE, 1);
st.giveAdena(134038, true);
}
else if (st.hasQuestItems(CANNIBALISTIC_STAKATO_LDR_CLAW))
{
st.giveItems(PROOF_OF_CHALLENGE, 3);
st.giveAdena(210119, true);
}
else if (st.hasQuestItems(ANAIS_SCROLL))
{
st.giveItems(PROOF_OF_CHALLENGE, 3);
st.giveAdena(348155, true);
}
st.exitQuest(QuestType.DAILY, true);
htmltext = "31340-14.html";
break;
}
}
break;
}
}
return htmltext;
}
}