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,6 @@
<html><body>Head Blacksmith Ferris:<br>
What brings you here? Ah, Leikar sent you? The Sewing Kit she ordered, eh? I was just about to get started on it. I'll just be a moment...<br>
I must have some scraps of iron around here somewhere...<br>
Hmm... I must've used it all up! Hey, I hate to ask you this... But could you get some materials for me?<br>
<a action="bypass -h Quest Q00036_MakeASewingKit 30847-03.htm">"What do you need?"</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Head Blacksmith Ferris:<br>
What brings you here? Ah, Leikar sent you? The Sewing kit she ordered, eh? I was just about to start on it. I'll just be a moment...<br>
I must have some scraps of Steel somewhere around here...<br>
Hmm... I must've used it all up!<br>
Sorry, you'll have to come back later. I'm out of materials.<br>
(Only a character of level 60 or above may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Head Blacksmith Ferris:<br>
I need some <font color="LEVEL">enchanted iron</font>. It's made by applying magic to Iron Ore. There aren't any Mystics around, so we'll have to improvise... A creature known as the <font color="LEVEL">enchanted iron golem</font> can be found in the vicinity of the Ivory Tower. Peel off some of its scrap and bring it to me! I'll need about <font color="LEVEL">five</font> pieces. These golems are quite durable, and won't peel away easily. Give it all you've got!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Head Blacksmith Ferris:<br>
What are you still doing here? Where is the <font color="LEVEL">enchanted iron</font> you said you'd bring me? Remember? Find the <font color="LEVEL">enchanted iron golem</font> in the vicinity of the Ivory Tower, peel off some of its skin and bring it to me! I'll need <font color="LEVEL">five</font> pieces. That golem is a sturdy fellow, you'll really need to use all your strength!
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Head Blacksmith Ferris:<br>
Are these them? Let me see... Ah, yes! The luster, color and hardness... yes, It's definitely enchanted iron! Good job!<br>
I hate to ask this, but could you do just one more thing? I'm still lacking some of the ingredients I need to make the Sewing kit. Would you obtain them for me too?<br>
<a action="bypass -h Quest Q00036_MakeASewingKit 30847-06.html">"What else do you need?"</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Head Blacksmith Ferris:<br>
I need 10 Artisan's Frames and 10 Oriharukons. Most any Warsmith should be able to make an Artisan's Frame. Finding Oriharukon will be more challenging. Occasionally you can find someone selling it in the village.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Head Blacksmith Ferris:<br>
You're a fast worker! Well, let's have them!<br>
<a action="bypass -h Quest Q00036_MakeASewingKit 30847-09.html">"Here are 10 Artisan's Frames and 10 Oriharukons."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Head Blacksmith Ferris:<br>
You still haven't brought everything I need! I know it's hard work, but you're in a much better position to get it than I am!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Head Blacksmith Ferris:<br>
Oh, thank you! You don't mind waiting a moment, do you? It shouldn't take too long...<br>
Here's the Sewing kit Leikar requested. It's sturdy, and she can make anything she wants with it! Give Leikar my regards!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Head Blacksmith Ferris:<br>
Where are the ingredients? I can't make the item without them.
</body></html>

View File

@@ -0,0 +1,158 @@
/*
* 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.Q00036_MakeASewingKit;
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;
/**
* Make a Sewing Kit (36)
* @author malyelfik
*/
public class Q00036_MakeASewingKit extends Quest
{
// NPC
private static final int FERRIS = 30847;
// Monster
private static final int ENCHANTED_IRON_GOLEM = 20566;
// Items
private static final int ARTISANS_FRAME = 1891;
private static final int ORIHARUKON = 1893;
private static final int SEWING_KIT = 7078;
private static final int ENCHANTED_IRON = 7163;
// Misc
private static final int MIN_LEVEL = 60;
private static final int IRON_COUNT = 5;
private static final int COUNT = 10;
public Q00036_MakeASewingKit()
{
super(36, Q00036_MakeASewingKit.class.getSimpleName(), "Make a Sewing Kit");
addStartNpc(FERRIS);
addTalkId(FERRIS);
addKillId(ENCHANTED_IRON_GOLEM);
registerQuestItems(ENCHANTED_IRON);
}
@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 "30847-03.htm":
st.startQuest();
break;
case "30847-06.html":
if (st.getQuestItemsCount(ENCHANTED_IRON) < IRON_COUNT)
{
return getNoQuestMsg(player);
}
st.takeItems(ENCHANTED_IRON, -1);
st.setCond(3, true);
break;
case "30847-09.html":
if ((st.getQuestItemsCount(ARTISANS_FRAME) >= COUNT) && (st.getQuestItemsCount(ORIHARUKON) >= COUNT))
{
st.takeItems(ARTISANS_FRAME, 10);
st.takeItems(ORIHARUKON, 10);
st.giveItems(SEWING_KIT, 1);
st.exitQuest(false, true);
}
else
{
htmltext = "30847-10.html";
}
break;
default:
htmltext = null;
break;
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final L2PcInstance member = getRandomPartyMember(player, 1);
if (member != null)
{
final QuestState st = getQuestState(member, false);
if (getRandomBoolean())
{
st.giveItems(ENCHANTED_IRON, 1);
if (st.getQuestItemsCount(ENCHANTED_IRON) >= IRON_COUNT)
{
st.setCond(2, 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:
htmltext = (player.getLevel() >= MIN_LEVEL) ? "30847-01.htm" : "30847-02.html";
break;
case State.STARTED:
switch (st.getCond())
{
case 1:
htmltext = "30847-04.html";
break;
case 2:
htmltext = "30847-05.html";
break;
case 3:
htmltext = ((st.getQuestItemsCount(ARTISANS_FRAME) >= COUNT) && (st.getQuestItemsCount(ORIHARUKON) >= COUNT)) ? "30847-07.html" : "30847-08.html";
break;
}
break;
case State.COMPLETED:
htmltext = getAlreadyCompletedMsg(player);
break;
}
return htmltext;
}
}