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>Warehouse Chief Natools:<br>
What? Shadow Fox? High-level agent? I don't know what you're talking about. Leave me alone!<br>
(Only characters that have completed Shadow Fox - 2 Quest are permitted to undertake this quest.)
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Warehouse Chief Natools:<br>
Ah, you are the adventurer who wants to meet Shadow Fox!<br>
I know your reasons already, so there's no need to justify yourself to me.<br>
You want to know the status of our search for the angel, don't you?<br>
I heard news from Kluck, you know.<br>But you must be a high-level agent to meet Shadow Fox.<br>
Before I can fully trust you, I must ask that you carry out another mission for me.<br><br>
Are you ready?<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-03.htm">"I am ready."</a>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><body>Warehouse Chief Natools:<br>
Ah, you are the adventurer who wants to meet Shadow Fox!<br>
I know your reasons already, so there's no need to justify yourself to me.<br>
You want to know the status of our search for the angel, don't you?<br>
I heard news from Kluck, you know.<br>
But you must be a high-level agent to meet Shadow Fox.<br>
Before I can fully trust you, I must ask that you carry out another mission for me -- ah, but you don't seem to yet have the experience I need in an agent.<br>
Failure is not an option, so I must find someone else...<br>
(Only characters level 37 and above are permitted to undertake this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Warehouse Chief Natools:<br>
Very well. I will explain what you must do...<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-05.html">Listen carefully.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Warehouse Chief Natools:<br>
I will explain what you must now do...<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-05.html">Listen carefully.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Warehouse Chief Natools:<br>
Before your arrival, I worked with another high-level agent I trusted completely.<br>
Unfortunately, during his last mission he was attacked and slain by monsters...<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-06.html">Keep listening.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Warehouse Chief Natools:<br>
My request is not very complicated -- just dangerous.<br>
Go to <font color="LEVEL">Alligator Beach</font> and destroy the <font color="LEVEL">Crokian Warriors, Farhites and Alligators</font> you find there. Then collect <font color="LEVEL">30 Predecessor's Investigative Reports</font>.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Warehouse Chief Natools:<br>
Go to <font color="LEVEL">Alligator Beach</font> and destroy the <font color="LEVEL">Crokian Warriors, Farhites and Alligators</font> you find there. Then collect <font color="LEVEL">30 Predecessor's Investigative Reports</font>.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Warehouse Chief Natools:<br>
Ah, you've returned with my agent's reports. Well done!<br>
Please wait while I read these...<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-10.html">Wait.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Warehouse Chief Natools:<br>
Please wait while I read these reports written by your predecessor...<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-10.html">Wait</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Warehouse Chief Natools:<br>
What?! How could that possibly happen? Astonishing...<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-11.html">"What is it?"</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Warehouse Chief Natools:<br>
(Natools mutters to himself, obviously deep in thought.)<br>
Hmm... Perhaps...yes, this is the only way... Such an exceptional situation requires an exceptional response...<br><br>
Hey -- you there!<br><br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-12.html">"Yes?"</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Warehouse Chief Natools:<br>
I had originally planned to give you several more missions to prove yourself worthy of being a high-level agent.<br>
But the situation has changed, and I now need your assistance with a particularly sensitive and important mission.<br>
On the basis of my personal authority, I hereby confer on you the title of high-level agent.<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-13.html">"Can I meet Shadow Fox now?"</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Warehouse Chief Natools:<br>
Ha! Not particularly quick-witted, are you?<br>
Think about it -- if Shadow Fox is the only one empowered by the authorities to create high-level agents, and now I have just made you a high-level agent...<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-14.html">"That means you must be..."</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Warehouse Chief Natools:<br>
Yes... Not exactly what you expected, eh?<br>
Well, anonymity has its uses in this game, as you'll discover if you survive long enough.<br>
Now listen carefully...<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-15.html">Listen carefully.</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Warehouse Chief Natools:<br>
As you already know, I instructed your predecessor to discover the location of the angel.<br>
That was not, however, his sole mission.<br>
Both the Temple and the Rulers of Dawn requested the use of a trusted secret messenger.<br>
Your predecessor was also carrying out that task when he was killed...<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-16.html">Keep listening.</a>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Warehouse Chief Natools:<br>
While waiting for your predecessor, we received a request from the leadership of the Revolutionaries of Dusk concerning the Angel...<br>
The upshot is that now have two requests concerning the matter...<br>
If you examine the specifics of the request from the Temple, which you will find in your predecessor's report, and that of the Preachers of the Wilderness,<br>
it is clear that the two requests are mutually exclusive. We cannot satisfy both.<br>
We must choose which one to accept...<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-17.html">Keep listening.</a>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Warehouse Chief Natools:<br>
Our organization takes a neutral stance in any dispute over power or ideology, nor am I personally interested in those things.<br>
Normally we accept our missions based on the size of the payment.<br>
In this case, however, both sides have offered us the same amount...<br>
So I am giving this to you to decide.<br>
Choose well -- our organization will abide by your decision.<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-18.html">"Before I choose, can you give me more information about each request?"</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Warehouse Chief Natools:<br>
I am sorry, but I cannot. Whichever mission you choose, the details of the other must still be kept confidential.<br>
This rule is what has allowed us to deal amicably with both sides over the years, preserving our integrity and earning our clients' trust.<br>
But I understand that it might be difficult to choose without at least some additional information.<br>
I can tell you more about the situation of each of these groups...<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-19.html">"Please tell me about the Rulers of Dawn and the Temple."</a>
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Warehouse Chief Natools:<br>
The Temple and the Lords of Dawn believe that Einhasad created Humans, and they see themselves as righteous because they are her followers.<br>
They believe that the other gods and their followers are inferior and should unite under their command to battle the forces of Shilen...<br>
They value order and justice above all, and feel that diversity leads to dissention, which will undermine the war effort.<br>
In their eyes, only a strictly ordered society can ensure peace and the protection of the weak.<br>
They have a point -- the weak are certainly not protected in this chaotic world, nor is there unity in facing the coming darkness.<br>
Their ultimate goal is to re-establish a strong empire like the old days under Emperor Shunaiman...<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-20.html">"What do the Revolutionaries of Dusk believe?"</a>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><body>Warehouse Chief Natools:<br>
They argue that we should respect diversity....<br>
They believe that all power and all living things are equal on this earth, and that the Temple and the Lords should use their power to protect the powerless.<br>
Instead, they say, the Temple and the Lords simply exploit the people to protect their own interests and vested rights.<br>
They are hypocrites...<br>
The Revolutionaries of Dusk believe that true peace is not artificially imposed on society by a central authority, but rather achieved through a harmonious diversity of powers and races.<br>
They say that Einhasad did not, in fact, create Humans -- that was a myth fabricated by Shunaiman, and the Temple and Lords of Dawn know the truth but are afraid to reveal it...<br>
The Revolutionaries of Dusk are dedicated to finding some crucial piece of evidence that would permanently discredit their foes.<br>
<a action="bypass -h Quest Q00141_ShadowFoxPart3 30894-21.html">"I cannot say who is right and who is wrong..."</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Warehouse Chief Natools:<br>
Yes... Peace can be achieved through both centralized authority and the harmony of diversity...<br>
However, history shows that words like "order" and "peace" can be used to justify tyranny.<br>
On the other hand, words like "harmony" and "diversity" may only be ideals impossible to achieve in reality...<br>
<a action="bypass -h npc_%objectId%_Quest Q00998_FallenAngelSelect">"I will make my decision now."</a>
</body></html>

View File

@@ -0,0 +1,200 @@
/*
* 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.Q00141_ShadowFoxPart3;
import java.util.HashMap;
import java.util.Map;
import quests.Q00140_ShadowFoxPart2.Q00140_ShadowFoxPart2;
import quests.Q00998_FallenAngelSelect.Q00998_FallenAngelSelect;
import com.l2jserver.gameserver.enums.QuestSound;
import com.l2jserver.gameserver.instancemanager.QuestManager;
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;
/**
* Shadow Fox - 3 (141)
* @author Nono
*/
public class Q00141_ShadowFoxPart3 extends Quest
{
// NPCs
private static final int NATOOLS = 30894;
// Monsters
private static final Map<Integer, Integer> MOBS = new HashMap<>();
static
{
MOBS.put(20135, 53); // Alligator
MOBS.put(20791, 100); // Crokian Warrior
MOBS.put(20792, 92); // Farhite
}
// Items
private static final int PREDECESSORS_REPORT = 10350;
// Misc
private static final int MIN_LEVEL = 37;
private static final int MAX_REWARD_LEVEL = 42;
private static final int REPORT_COUNT = 30;
public Q00141_ShadowFoxPart3()
{
super(141, Q00141_ShadowFoxPart3.class.getSimpleName(), "Shadow Fox - 3");
addStartNpc(NATOOLS);
addTalkId(NATOOLS);
addKillId(MOBS.keySet());
registerQuestItems(PREDECESSORS_REPORT);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
String htmltext = event;
switch (event)
{
case "30894-05.html":
case "30894-10.html":
case "30894-11.html":
case "30894-12.html":
case "30894-13.html":
case "30894-14.html":
case "30894-16.html":
case "30894-17.html":
case "30894-19.html":
case "30894-20.html":
break;
case "30894-03.htm":
st.startQuest();
break;
case "30894-06.html":
st.setCond(2, true);
break;
case "30894-15.html":
st.set("talk", "2");
break;
case "30894-18.html":
st.setCond(4, true);
st.unset("talk");
break;
case "30894-21.html":
st.giveAdena(88888, true);
if (player.getLevel() <= MAX_REWARD_LEVEL)
{
st.addExpAndSp(278005, 17058);
}
st.exitQuest(false, true);
final Quest q = QuestManager.getInstance().getQuest(Q00998_FallenAngelSelect.class.getSimpleName());
if (q != null)
{
q.newQuestState(player).setState(State.STARTED);
}
break;
default:
htmltext = null;
break;
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final L2PcInstance member = getRandomPartyMember(player, 2);
if (member == null)
{
return super.onKill(npc, player, isSummon);
}
final QuestState st = getQuestState(member, false);
if ((getRandom(100) < MOBS.get(npc.getId())))
{
st.giveItems(PREDECESSORS_REPORT, 1);
if (st.getQuestItemsCount(PREDECESSORS_REPORT) >= REPORT_COUNT)
{
st.setCond(3, true);
}
else
{
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
return super.onKill(npc, player, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
if (st == null)
{
return htmltext;
}
switch (st.getState())
{
case State.CREATED:
final QuestState qs = player.getQuestState(Q00140_ShadowFoxPart2.class.getSimpleName());
htmltext = (player.getLevel() >= MIN_LEVEL) ? ((qs != null) && qs.isCompleted()) ? "30894-01.htm" : "30894-00.html" : "30894-02.htm";
break;
case State.STARTED:
switch (st.getCond())
{
case 1:
htmltext = "30894-04.html";
break;
case 2:
htmltext = "30894-07.html";
break;
case 3:
if (st.getInt("talk") == 1)
{
htmltext = "30894-09.html";
}
else if (st.getInt("talk") == 2)
{
htmltext = "30894-16.html";
}
else
{
htmltext = "30894-08.html";
st.takeItems(PREDECESSORS_REPORT, -1);
st.set("talk", "1");
}
break;
case 4:
htmltext = "30894-19.html";
break;
}
break;
case State.COMPLETED:
htmltext = getAlreadyCompletedMsg(player);
break;
}
return htmltext;
}
}