This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-00.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-00.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
Shadow Fox? What a strange name! Is that a person or some sort of creature?<br>
|
||||
I'm afraid you're talking to the wrong woman, friend!<br>
|
||||
(Only characters who have completed the Limbs of the Temple -- Second Half Quest are permitted to undertake this quest.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
You want to meet Shadow Fox, eh? Shh! Keep your voice down...<br>
|
||||
How did you know that I have a connection with Shadow Fox?<br>
|
||||
<a action="bypass -h Quest Q00139_ShadowFoxPart1 30896-02.htm">Tell her that you heard it from High Priest Sylvain.</a>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-02.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-02.htm
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
Oh, I see...<br>
|
||||
Well, if you wish to meet Shadow Fox, you will first have to prove your reliability and ability to me.<br>
|
||||
I warn you, I won't go easy on you...<br>
|
||||
So do you still want to contact Shadow Fox?<br>
|
||||
<a action="bypass -h Quest Q00139_ShadowFoxPart1 30896-04.htm">"Yes! I need to talk to him about something very important."</a>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-03.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-03.htm
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
Oh, I see...<br>
|
||||
Well, if you wish to meet Shadow Fox, you will first have to prove your reliability and ability to me.<br>
|
||||
I warn you, I won't go easy on you...<br>
|
||||
In fact, just by the look of you I can tell you're not ready for my test.<br>
|
||||
(Only characters level 37 and above are permitted to undertake this quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-04.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
Very well! Then listen to what you must do to prove yourself to me...<br>
|
||||
<a action="bypass -h Quest Q00139_ShadowFoxPart1 30896-06.html">Keep listening.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-05.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-05.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
Very well! Then listen to what you must do to prove yourself to me...<br>
|
||||
<a action="bypass -h Quest Q00139_ShadowFoxPart1 30896-06.html">Keep listening.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-06.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
I may seem a humble warehouse keeper, but I have another occupation as well -- a secret occupation...<br>
|
||||
<a action="bypass -h Quest Q00139_ShadowFoxPart1 30896-07.html">"Secret?"</a>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-07.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-07.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
Yes, I belong to a secret organization that buys and sells information.<br>
|
||||
We are called information dealers...<br>
|
||||
Shadow Fox is our chief, the senior information dealer.<br>
|
||||
But he takes great care to hide his identity -- given what he knows, he would certainly be captured or killed if his true name was known.<br>
|
||||
<a action="bypass -h Quest Q00139_ShadowFoxPart1 30896-08.html">Keep listening.</a>
|
||||
</body></html>
|
8
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-08.html
vendored
Normal file
8
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-08.html
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
However, since you have been recommended by High Priest Sylvain...<br>
|
||||
You came to assist us in the search for the angel, eh?<br>
|
||||
To do so, you must join our organization as an agent. You must undertake the missions we assign you and serve our interests.<br>
|
||||
We are a neutral party in political, religious and cultural conflicts, entering into contracts with any and all sides if the price is right.<br>
|
||||
Agents and information dealers work independently on our clients' behalf and are sworn to secrecy.<br>
|
||||
<a action="bypass -h Quest Q00139_ShadowFoxPart1 30896-09.html">Keep listening.</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-09.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-09.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
Only trusted high-level agents are permitted to assist with such an important and sensitive mission as the search for the angel.<br>
|
||||
If that is your desire, then you must prove yourself at each level -- low, mid and high -- before you can be assigned to this particular mission.<br>
|
||||
<a action="bypass -h Quest Q00139_ShadowFoxPart1 30896-10.html">Keep listening.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-10.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-10.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
I am a low-level information dealer. I will make you a low-level agent if you prove your value to me on one of my current assignments.<br>
|
||||
<a action="bypass -h Quest Q00139_ShadowFoxPart1 30896-11.html">Ask how you can help.</a>
|
||||
</body></html>
|
8
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-11.html
vendored
Normal file
8
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-11.html
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
Do you know Iason Heine, the president of Heine Merchant Association?<br>
|
||||
He has been responsible for paying a large portion of the taxes owed to the lord, and for financially supporting the repair of Innadril Castle.<br>
|
||||
But some people say that he is simply waiting for an opportunity to seize greater power.<br>
|
||||
Our mission is to discover evidence that proves that Iason is in collusion with the Tasaba Lizardmen.<br>
|
||||
If this is true, it will seriously damage his career and reputation.<br>
|
||||
<a action="bypass -h Quest Q00139_ShadowFoxPart1 30896-12.html">"How?"</a>
|
||||
</body></html>
|
8
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-12.html
vendored
Normal file
8
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-12.html
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
When he was knighted, Iason took a new family name, "Heine."<br>
|
||||
He said that he had discovered that the legendary hero Heine, who drove out the Lizardmen from the land of Innadril, was actually his ancestor.<br>
|
||||
But if he is in collusion with Lizardmen, his claim will lose its validity.<br>
|
||||
Moreover, if he became wealthy by monopolizing the trade route owned by the Tasaba Lizardmen at the expense of his countrymen, he will almost certainly be severely punished.<br>
|
||||
That, of course, doesn't concern us at all -- as long as we get paid...<br>
|
||||
<a action="bypass -h Quest Q00139_ShadowFoxPart1 30896-13.html">"Tell me about the mission."</a>
|
||||
</body></html>
|
8
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-13.html
vendored
Normal file
8
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-13.html
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
Our client wants us to find the secret contract between the Tasaba Lizardmen and Iason.<br>
|
||||
...<br>
|
||||
Listen carefully now...<br>
|
||||
Go to the <font color="LEVEL">Field of Silence</font> and get rid of the <font color="LEVEL">Tasaba Lizardmen and Tasaba Lizardman Shaman</font> there. Once you have done so, you will be able to obtain <font color="LEVEL">both the pieces of the key to the Records Chest and the Records Chest itself</font>. I can make 1 key to the Records Chest if I have <font color="LEVEL">10 pieces of the key</font>.<br>
|
||||
What we seek should be within the Records Chest itself.<br>
|
||||
Now go bring me the Records Chest and the pieces of the key we need to open it!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-14.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-14.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
To find evidence you need at least 10 key fragments and 1 document box.<br>
|
||||
Head to <font color="LEVEL">Crocodile Beach</font> and defeat <font color="LEVEL">Tasaba Lizardman, Tasaba Lizardman Shaman</font> and then gather <font color="LEVEL">Key Fragments and the Document Box</font> and bring them to me...whew! Don't make me repeat that!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-15.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-15.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
Ah, well done! Now I can reforge the key and open the Records Chest.<br>
|
||||
<a action="bypass -h Quest Q00139_ShadowFoxPart1 30896-17.html">Wait until she has finished.</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-16.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-16.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
Hmm...this key doesn't fit.<br>
|
||||
Do you have any more pieces of the key or another Records Chest?<br>
|
||||
If you don't, please go to the <font color="LEVEL">Field of Silence</font> and get rid of the <font color="LEVEL">Tasaba Lizardmen and Tasaba Lizardman Shaman</font> there. Once you have done so, you will be able to obtain <font color="LEVEL">both the pieces of the key to the Records Chest and the Records Chest itself</font>.
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-17.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-17.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
Yes, here's what we are looking for...<br>
|
||||
Oh! The part of this contract that lists the name of the parties involved is written in code.<br>
|
||||
I doubt this will help our client as much as they hoped...<br>
|
||||
<a action="bypass -h Quest Q00139_ShadowFoxPart1 30896-18.html">"What should I do?"</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-18.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-18.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Warehouse Keeper Mia:<br>
|
||||
Oh, you have done your part... I'm sure our client will still want this evidence, even if it's not quite the coffin nail they hoped for. In any case, we fulfilled our part of the contract and will still be paid.<br>
|
||||
...<br>
|
||||
<a action="bypass -h Quest Q00139_ShadowFoxPart1 30896-19.html">"Did I pass the test?"</a>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-19.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/30896-19.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Warehouse Mia:<br>
|
||||
Well done, adventurer. You have successfully proved your reliability and skill.<br>
|
||||
I will give you the title of low-level agent using my authority.<br>
|
||||
Congratulations!<br>
|
||||
...<br>
|
||||
If you want to become a mid-level agent, please speak with <font color="LEVEL">Warehouse Keeper Kluck</font>...
|
||||
</body></html>
|
176
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/Q00139_ShadowFoxPart1.java
vendored
Normal file
176
trunk/dist/game/data/scripts/quests/Q00139_ShadowFoxPart1/Q00139_ShadowFoxPart1.java
vendored
Normal file
@@ -0,0 +1,176 @@
|
||||
/*
|
||||
* 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.Q00139_ShadowFoxPart1;
|
||||
|
||||
import quests.Q00138_TempleChampionPart2.Q00138_TempleChampionPart2;
|
||||
|
||||
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 - 1 (139)
|
||||
* @author Nono
|
||||
*/
|
||||
public class Q00139_ShadowFoxPart1 extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int MIA = 30896;
|
||||
// Monsters
|
||||
private static final int MOBS[] =
|
||||
{
|
||||
20784, // Tasaba Lizardman
|
||||
20785, // Tasaba Lizardman Shaman
|
||||
21639, // Tasaba Lizardman
|
||||
21640, // Tasaba Lizardman Shaman
|
||||
};
|
||||
// Items
|
||||
private static final int FRAGMENT = 10345;
|
||||
private static final int CHEST = 10346;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 37;
|
||||
private static final int MAX_REWARD_LEVEL = 42;
|
||||
private static final int DROP_CHANCE = 68;
|
||||
|
||||
public Q00139_ShadowFoxPart1()
|
||||
{
|
||||
super(139, Q00139_ShadowFoxPart1.class.getSimpleName(), "Shadow Fox - 1");
|
||||
addStartNpc(MIA);
|
||||
addTalkId(MIA);
|
||||
addKillId(MOBS);
|
||||
registerQuestItems(FRAGMENT, CHEST);
|
||||
}
|
||||
|
||||
@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 "30896-02.htm":
|
||||
if (player.getLevel() < MIN_LEVEL)
|
||||
{
|
||||
htmltext = "30896-03.htm";
|
||||
}
|
||||
break;
|
||||
case "30896-04.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "30896-11.html":
|
||||
st.set("talk", "1");
|
||||
break;
|
||||
case "30896-13.html":
|
||||
st.setCond(2, true);
|
||||
st.unset("talk");
|
||||
break;
|
||||
case "30896-17.html":
|
||||
if (getRandom(20) < 3)
|
||||
{
|
||||
st.takeItems(FRAGMENT, 10);
|
||||
st.takeItems(CHEST, 1);
|
||||
return "30896-16.html";
|
||||
}
|
||||
st.takeItems(FRAGMENT, -1);
|
||||
st.takeItems(CHEST, -1);
|
||||
st.set("talk", "1");
|
||||
break;
|
||||
case "30896-19.html":
|
||||
st.giveAdena(14050, true);
|
||||
if (player.getLevel() <= MAX_REWARD_LEVEL)
|
||||
{
|
||||
st.addExpAndSp(30000, 2000);
|
||||
}
|
||||
st.exitQuest(false, true);
|
||||
break;
|
||||
case "30896-06.html":
|
||||
case "30896-07.html":
|
||||
case "30896-08.html":
|
||||
case "30896-09.html":
|
||||
case "30896-10.html":
|
||||
case "30896-12.html":
|
||||
case "30896-18.html":
|
||||
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 (!st.isSet("talk") && (getRandom(100) < DROP_CHANCE))
|
||||
{
|
||||
int itemId = (getRandom(11) == 0) ? CHEST : FRAGMENT;
|
||||
st.giveItems(itemId, 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 (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
final QuestState qs = player.getQuestState(Q00138_TempleChampionPart2.class.getSimpleName());
|
||||
htmltext = ((qs != null) && qs.isCompleted()) ? "30896-01.htm" : "30896-00.html";
|
||||
break;
|
||||
case State.STARTED:
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
htmltext = (st.isSet("talk")) ? "30896-11.html" : "30896-05.html";
|
||||
break;
|
||||
case 2:
|
||||
htmltext = (st.isSet("talk")) ? "30896-18.html" : ((st.getQuestItemsCount(FRAGMENT) >= 10) && (st.getQuestItemsCount(CHEST) >= 1)) ? "30896-15.html" : "30896-14.html";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user