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>Warehouse Keeper Kluck:<br>
You want to be a middle-level agent?<br>
Huh? What's that? I think you have the wrong person, friend!<br>
(Only characters who have completed the Shadow Fox - 1 Quest may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Warehouse Keeper Kluck:<br>
You want to be a middle-level agent?<br>
Shh!<br>
Keep your voice down...<br>
Hmm, you must be the one that Mia told me about...<br>
So are you really ready to become a middle-level agent?<br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30895-03.htm">Say yes.</a>
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Warehouse Keeper Kluck:<br>
You want to be a middle-level agent?<br>
Shh!<br>
Keep your voice down...<br>
Hmm, you must be the one that Mia told me about...<br>
Well, well...<br>
You're still a little too wet behind the ears. Come back when you've acquired a little more experience...<br>
(Only characters who are level 37 or higher may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Warehouse Keeper Kluck:<br>
Are you ready to show me that you've got what it takes?<br>
Hmm...<br>
Then listen carefully...<br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30895-05.html">Listen</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Warehouse Keeper Kluck:<br>
Are you ready to show me that you've got what it takes?<br>
Hmm...<br>
Then listen carefully...<br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30895-05.html">Listen</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Warehouse Keeper Kluck:<br>
Have you hear of Lionel Hunter, one of the lords of Innadril?<br>
He was an amazing warrior.<br>
As a young man, he even defeated Water Dragon Fafurion single-handed!<br>
Ah, but that's not what's important...<br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30895-06.html">Keep listening.</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Warehouse Keeper Kluck:<br>
It seems that the Sword of Othelotte actually exists.<br>
Its whereabouts are vague, but its scabbard was recently discovered.<br>
Magicians even saw the power of water -- the realm of Eva -- that flowed from the scabbard.<br>
Now we are trying to find out all we can about this blade...<br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30895-07.html">Keep listening.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Warehouse Keeper Kluck:<br>
Thanks to investigation, we believe that the sword and a secret document that accompanies it are in the possession of <font color="LEVEL">Dark Elf Magister Xenovia</font> in Heine.<br>
Please convince her to give you leave to bring us the <font color="LEVEL">Cryptogram of the Goddess Sword</font>...
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Warehouse Keeper Kluck:<br>
<font color="LEVEL">Dark Elf Magister Xenovia</font> in Heine has it.<br>
Please convince her to give you leave to bring us the <font color="LEVEL">Cryptogram of the Sword of the Goddess</font>...
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Warehouse Keeper Kluck:<br>
You got it?<br>
Well done!<br>
This clue will help us find the Sword of Othelotte, although we need more... Still, our client will be happy to hear of this development...<br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30895-10.html">"Am I now a mid-level agent?"</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Warehouse Keeper Kluck:<br>
Yes, you are...<br>
You are now a mid-level agent...<br>
That is a quick promotion...congratulations!<br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30895-11.html">"Now how can I become a high-level agent?"</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Warehouse Keeper Kluck:<br>
Ask <font color="LEVEL">Warehouse Chief Natools</font> about how you can become a high-level agent.<br>
I was curious about the Sword of Othelotte...<br>
You did well!<br>
Thank you for your help.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Magister Xenovia:<br>
I am very busy with my magical experiments.<br>
I cannot even obtain the materials I need...<br>
Forgive me, but would you mind coming back later?
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Magister Xenovia:<br>
Here for the sword of the Goddess' secret document?<br>
I never heard of it...<br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30912-03.html">I heard everything from Warehouse Keeper Cluck.</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Magister Xenovia:<br>
Hmm... Well, since you heard it from Kluck, I guess I have no choice.<br>
Kluck never gives up!<br>
Actually, this document has long vexed me.<br>
I'm not even interested in the sword granted by Eva, but I need that document to further my magical research...<br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30912-04.html">Keep listening.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Magister Xenovia:<br>
The data that I require for my magic research is closely linked to that encoded document.<br>
Of course, if I had the actual material that I need, I wouldn't need to consult the document...<br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30912-05.html">"Then if I bring you the material, would you give me the document?"</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Magister Xenovia:<br>
Hmm... I need that material on a continuing basis, unfortunately.<br>
If I were to give you the document, I would be severely limiting my options.<br>
Perhaps...how about this?<br>
Help me produce 3 Dark Oxides, which are created by putting certain chemicals on a Dark Crystal.<br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30912-06.html">"What do you mean?"</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Magister Xenovia:<br>
I will give you the encoded document if you make the 3 Dark Oxides with materials you find on your own using my equipment.<br>
It is very difficult to produce the Dark Oxides successfully because the process is very complicated.<br>
And if you fail, you will be responsible for the cost of the materials...<br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30912-08.html">"Please explain in more detail."</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Magister Xenovia:<br>
I will give you the encoded document if you make the 3 Dark Oxides with materials you find on your own using my equipment.<br>
It is very difficult to produce the Dark Oxides successfully because the process is very complicated.<br>
And if you fail, you will be responsible for the cost of the materials...<br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30912-08.html">"Please explain in more detail."</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Magister Xenovia:<br>
I will prepare 3 solutions if you bring me the Dark Crystal.<br>
One of the 3 solutions will be able to produce the Dark Oxide.<br>
Unfortunately, I cannot yet produce perfect solutions every time.<br>
What you will need to do is choose one of these 3 solutions and then place 5 Dark Crystals in it.<br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30912-09.html">"I see. Where can I get the Dark Crystal?"</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Magister Xenovia:<br>
Go to <font color="LEVEL">Alligator Beach</font> and hunt <font color="LEVEL">Crokians, Dailaons, Crokian Warriors and Farhites</font>. Bring me the <font color="LEVEL">Dark Crystals</font> you collect there.<br>
You need at least 5 in order to conduct a single experiment.<br>
If the experiments are successful, you can acquire <font color="LEVEL">Dark Oxides</font>.<br>
Bring me 3 <font color="LEVEL">Dark Oxides</font> and I will give you the <font color="LEVEL">Cryptogram of the Sword of the Goddess</font>.
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Magister Xenovia:<br>
Go to <font color="LEVEL">Alligator Beach</font> and hunt <font color="LEVEL">Crokians, Dailaons, Crokian Warriors and Farhites</font>, and bring me the <font color="LEVEL">Dark Crystals</font> you collect there.<br>
You need at least 5 in order to conduct a single experiment.<br>
If the experiments are successful, you can acquire <font color="LEVEL">Dark Oxides</font>.<br>
Bring me <font color="LEVEL">3 Dark Oxides</font> and I will give you the <font color="LEVEL">Cryptogram of the Sword of the Goddess</font>.
</body></html>

View File

@@ -0,0 +1,11 @@
<html><body>Magister Xenovia:<br>
Ah! I see that you have brought the Dark Crystal...<br>
I will give you 3 solutions.<br>
You can continue the experiment by choosing one of them.<br>
You will need 5 Dark Crystals for each experiment.<br>
One of the 3 solutions will be able to produce Dark Oxide.<br>
Please choose carefully...<br><br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30912-14.html">Use the red solution.</a><br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30912-14.html">Use the blue solution.</a><br>
<a action="bypass -h Quest Q00140_ShadowFoxPart2 30912-14.html">Use the yellow solution.</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Magister Xenovia:<br>
(The Dark Crystal dissolves in the solution.<br>
The mixture begins to bubble.<br>
Suddenly, something emerges from the bubbles...<br><br>
The experiment was a success!)
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Magister Xenovia:<br>
(The mixture begins to bubble.<br>
Suddenly, something emerges from the bubbles...<br><br>
The experiment was a success!)<br>
Excellent! We have 3 Dark Oxides...<br>
Thank you. Thanks to your help, I no longer need the Cryptogram of the Goddess Sword.<br>
Take it with my gratitude!
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Magister Xenovia:<br>
(The Dark Crystal dissolves in the solution.<br>
The mixture begins to bubble.<br>
But nothing else happens.<br><br>
The experiment was a failure!)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Magister Xenovia:<br>
Thanks to your efforts, I was able to get all the materials I needed. I am in your debt, my friend!
</body></html>

View File

@@ -0,0 +1,225 @@
/*
* 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.Q00140_ShadowFoxPart2;
import java.util.HashMap;
import java.util.Map;
import quests.Q00139_ShadowFoxPart1.Q00139_ShadowFoxPart1;
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;
/**
* Shadow Fox - 2 (140)
* @author Nono
*/
public class Q00140_ShadowFoxPart2 extends Quest
{
// NPCs
private static final int KLUCK = 30895;
private static final int XENOVIA = 30912;
// Items
private static final int DARK_CRYSTAL = 10347;
private static final int DARK_OXYDE = 10348;
private static final int CRYPTOGRAM_OF_THE_GODDESS_SWORD = 10349;
// Monsters
private static final Map<Integer, Integer> MOBS = new HashMap<>();
static
{
MOBS.put(20789, 45); // Crokian
MOBS.put(20790, 58); // Dailaon
MOBS.put(20791, 100);// Crokian Warrior
MOBS.put(20792, 92); // Farhite
}
// Misc
private static final int MIN_LEVEL = 37;
private static final int MAX_REWARD_LEVEL = 42;
private static final int CHANCE = 8;
private static final int CRYSTAL_COUNT = 5;
private static final int OXYDE_COUNT = 2;
public Q00140_ShadowFoxPart2()
{
super(140, Q00140_ShadowFoxPart2.class.getSimpleName(), "Shadow Fox - 2");
addStartNpc(KLUCK);
addTalkId(KLUCK, XENOVIA);
addKillId(MOBS.keySet());
registerQuestItems(DARK_CRYSTAL, DARK_OXYDE, CRYPTOGRAM_OF_THE_GODDESS_SWORD);
}
@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 "30895-05.html":
case "30895-06.html":
case "30912-03.html":
case "30912-04.html":
case "30912-05.html":
case "30912-08.html":
case "30895-10.html":
break;
case "30895-03.htm":
st.startQuest();
break;
case "30895-07.html":
st.setCond(2, true);
break;
case "30912-06.html":
st.set("talk", "1");
break;
case "30912-09.html":
st.unset("talk");
st.setCond(3, true);
break;
case "30912-14.html":
if (getRandom(10) < CHANCE)
{
if (st.getQuestItemsCount(DARK_OXYDE) < OXYDE_COUNT)
{
st.giveItems(DARK_OXYDE, 1);
st.takeItems(DARK_CRYSTAL, 5);
return "30912-12.html";
}
st.giveItems(CRYPTOGRAM_OF_THE_GODDESS_SWORD, 1);
st.takeItems(DARK_CRYSTAL, -1);
st.takeItems(DARK_OXYDE, -1);
st.setCond(4, true);
return "30912-13.html";
}
st.takeItems(DARK_CRYSTAL, 5);
break;
case "30895-11.html":
st.giveAdena(18775, true);
if (player.getLevel() <= MAX_REWARD_LEVEL)
{
st.addExpAndSp(30000, 2000);
}
st.exitQuest(false, true);
break;
default:
htmltext = null;
break;
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final L2PcInstance member = getRandomPartyMember(player, 3);
if (member == null)
{
return super.onKill(npc, player, isSummon);
}
final QuestState st = getQuestState(member, false);
if (getRandom(100) < MOBS.get(npc.getId()))
{
st.giveItems(DARK_CRYSTAL, 1);
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 (npc.getId())
{
case KLUCK:
switch (st.getState())
{
case State.CREATED:
final QuestState qs = player.getQuestState(Q00139_ShadowFoxPart1.class.getSimpleName());
htmltext = (player.getLevel() >= MIN_LEVEL) ? ((qs != null) && qs.isCompleted()) ? "30895-01.htm" : "30895-00.htm" : "30895-02.htm";
break;
case State.STARTED:
switch (st.getCond())
{
case 1:
htmltext = "30895-04.html";
break;
case 2:
case 3:
htmltext = "30895-08.html";
break;
case 4:
if (st.isSet("talk"))
{
htmltext = "30895-10.html";
}
else
{
st.takeItems(CRYPTOGRAM_OF_THE_GODDESS_SWORD, -1);
st.set("talk", "1");
htmltext = "30895-09.html";
}
break;
}
break;
case State.COMPLETED:
htmltext = getAlreadyCompletedMsg(player);
break;
}
break;
case XENOVIA:
if (st.isStarted())
{
switch (st.getCond())
{
case 1:
htmltext = "30912-01.html";
break;
case 2:
htmltext = (st.isSet("talk")) ? "30912-07.html" : "30912-02.html";
break;
case 3:
htmltext = (st.getQuestItemsCount(DARK_CRYSTAL) >= CRYSTAL_COUNT) ? "30912-11.html" : "30912-10.html";
break;
case 4:
htmltext = "30912-15.html";
break;
}
}
break;
}
return htmltext;
}
}