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,7 @@
<html><body>Armor Trader Radia:<br>
Welcome, stranger! What can I do for you?<br>
Nice ring! Are you here to propose to me?<br>
Just kidding! Don't tell me you thought I was serious!?<br>
Oh, you're here for Leikar's order? Sorry, it hasn't come in yet. Maybe you should check with Varan in the Town of Gludio. I've been expecting a shipment from him.<br>
<a action="bypass -h Quest Q00034_InSearchOfCloth 30088-03.htm">"OK."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Armor Trader Radia:<br>
Leikar's order isn't ready because the materials haven't arrived yet. You'll need to check back later.<br>
(This quest may only be undertaken by characters of level 60 or above.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Armor Trader Radia:<br>
I would've checked with Varan myself if I wasn't so busy. Go ask him why the materials aren't here yet.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Armor Trader Radia:<br>
What are you still doing here? If you want the order, you'll have to check with Varan and find out where the materials are!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Armor Trader Radia:<br>
Welcome back! What did Varan have to say for himself?<br>
<a action="bypass -h Quest Q00034_InSearchOfCloth 30088-06.html">"He apologized."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Armor Trader Radia:<br>
Well, it looks like I'll need to find a new supplier. Ralford is more reliable. He can get what I need. He's at the Ivory Tower in Oren. I'll let him know you're coming.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Armor Trader Radia:<br>
Please get the ingredients from Ralford at the Ivory Tower.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Armor Trader Radia:<br>
Excellent! Can I have them?<br>
<a action="bypass -h Quest Q00034_InSearchOfCloth 30088-10.html">"Here you go."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Armor Trader Radia:<br>
You haven't heard from Ralford? I need spidersilk, 3000 Suedes and 5000 threads. Please hurry.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Armor Trader Radia:<br>
Yes, your fabric is ready! Let me get it for you.<br>
Here it is! Isn't it nice? You can really make something nice with this. Have a safe journey!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Armor Trader Radia:<br>
Where are the ingredients? I can't make the cloth without them!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Trader Ralford:<br>
Welcome! Radia told me you'd be coming. Are you here for the spidersilk, thread and suede? Sorry, we're all out! You can probably get some thread and suede from travelers, but as for the spidersilk, that's another matter! I can make some for you if you help me!<br>
<a action="bypass -h Quest Q00034_InSearchOfCloth 30165-02.html">"I'll help you."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Trader Ralford:<br>
In the Sea of Spores, there are spiders called Trisalim Spiders and Trisalim Tarantulas. Please bring me 10 Spinneret from them and I'll make spidersilk for you.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Trader Ralford:<br>
This isn't enough! I need more.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Trader Ralford:<br>
Wonderful! Give me the Spinneret and I'll make spidersilk for you.<br>
<a action="bypass -h Quest Q00034_InSearchOfCloth 30165-05.html">"Here they are."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Trader Ralford:<br>
Thank you. Please wait here.<br>
Here's the spidersilk you asked for. Radia asked for more than just this, however. It shouldn't be too hard for you... She needs 3000 suede and 5000 thread...
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Trader Ralford:<br>
Radia needs spidersilk, 3000 Suedes and 5000 threads. Please take it to her.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Trader Varan:<br>
Ah, you mean Radia's order? Well, I haven't gotten the materials yet. The goods she wants have been rather scarce of late, making them difficult to obtain.<br>
<a action="bypass -h Quest Q00034_InSearchOfCloth 30294-02.html">When can I get it then?</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Trader Varan:<br>
Tell her I'm sorry I couldn't fill the order on time, and that I accept responsibility for the breach of Contract.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Trader Varan:<br>
Please tell Radia that I won't make a mistake like this again.
</body></html>

View File

@@ -0,0 +1,216 @@
/*
* 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.Q00034_InSearchOfCloth;
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;
/**
* In Search of Cloth (34)
* @author malyelfik
*/
public class Q00034_InSearchOfCloth extends Quest
{
// NPCs
private static final int RADIA = 30088;
private static final int RALFORD = 30165;
private static final int VARAN = 30294;
// Monsters
private static final int[] MOBS =
{
20560, // Trisalim Spider
20561, // Trisalim Tarantula
};
// Items
private static final int SUEDE = 1866;
private static final int THREAD = 1868;
private static final int MYSTERIOUS_CLOTH = 7076;
private static final int SKEIN_OF_YARN = 7161;
private static final int SPINNERET = 7528;
// Misc
private static final int MIN_LEVEL = 60;
private static final int SPINNERET_COUNT = 10;
private static final int SUEDE_COUNT = 3000;
private static final int THREAD_COUNT = 5000;
public Q00034_InSearchOfCloth()
{
super(34, Q00034_InSearchOfCloth.class.getSimpleName(), "In Search of Cloth");
addStartNpc(RADIA);
addTalkId(RADIA, RALFORD, VARAN);
addKillId(MOBS);
registerQuestItems(SKEIN_OF_YARN, SPINNERET);
}
@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 "30088-03.htm":
st.startQuest();
break;
case "30294-02.html":
st.setCond(2, true);
break;
case "30088-06.html":
st.setCond(3, true);
break;
case "30165-02.html":
st.setCond(4, true);
break;
case "30165-05.html":
if (st.getQuestItemsCount(SPINNERET) < SPINNERET_COUNT)
{
return getNoQuestMsg(player);
}
st.takeItems(SPINNERET, SPINNERET_COUNT);
st.giveItems(SKEIN_OF_YARN, 1);
st.setCond(6, true);
break;
case "30088-10.html":
if ((st.getQuestItemsCount(SUEDE) >= SUEDE_COUNT) && (st.getQuestItemsCount(THREAD) >= THREAD_COUNT) && st.hasQuestItems(SKEIN_OF_YARN))
{
st.takeItems(SKEIN_OF_YARN, 1);
st.takeItems(SUEDE, SUEDE_COUNT);
st.takeItems(THREAD, THREAD_COUNT);
st.giveItems(MYSTERIOUS_CLOTH, 1);
st.exitQuest(false, true);
}
else
{
htmltext = "30088-11.html";
}
break;
default:
htmltext = null;
break;
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final L2PcInstance member = getRandomPartyMember(player, 4);
if ((member != null) && getRandomBoolean())
{
final QuestState st = getQuestState(member, false);
st.giveItems(SPINNERET, 1);
if (st.getQuestItemsCount(SPINNERET) >= SPINNERET_COUNT)
{
st.setCond(5, 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 (npc.getId())
{
case RADIA:
switch (st.getState())
{
case State.CREATED:
htmltext = (player.getLevel() >= MIN_LEVEL) ? "30088-01.htm" : "30088-02.html";
break;
case State.STARTED:
switch (st.getCond())
{
case 1:
htmltext = "30088-04.html";
break;
case 2:
htmltext = "30088-05.html";
break;
case 3:
htmltext = "30088-07.html";
break;
case 6:
htmltext = ((st.getQuestItemsCount(SUEDE) >= SUEDE_COUNT) && (st.getQuestItemsCount(THREAD) >= THREAD_COUNT)) ? "30088-08.html" : "30088-09.html";
break;
}
break;
case State.COMPLETED:
htmltext = getAlreadyCompletedMsg(player);
break;
}
break;
case VARAN:
if (st.isStarted())
{
switch (st.getCond())
{
case 1:
htmltext = "30294-01.html";
break;
case 2:
htmltext = "30294-03.html";
break;
}
}
break;
case RALFORD:
if (st.isStarted())
{
switch (st.getCond())
{
case 3:
htmltext = "30165-01.html";
break;
case 4:
htmltext = "30165-03.html";
break;
case 5:
htmltext = "30165-04.html";
break;
case 6:
htmltext = "30165-06.html";
break;
}
}
break;
}
return htmltext;
}
}