Sync with L2JServer Jan 24th 2015.
This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/33953-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/33953-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Forest Patrol Milone:<br>
|
||||
I am a scholar first and foremost. The Ertheia are known for our curiosity, after all.<br>
|
||||
But apparently there are people in this world that are quite persistent as well.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10744_StrongerThanSteel 33952-01.htm">"Who."</button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/33953-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/33953-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Forest Patrol Milone:<br>
|
||||
It's Maestro Dolkin. At first I wondered what a Warehouse Keeper was doing here. He doesn't waste even a branch on the ground. He never rest until he finishes the research he started. Are you interested? He is always whining about lack of research material. Perhaps he could get you something nice if you be nice to him.<br>
|
||||
Do you want to go see him?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10744_StrongerThanSteel 33953-03.htm">"I do."</button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/33953-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/33953-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Forest Patrol Milone:<br>
|
||||
Not only you've gotten here safely, but you're also interested in intellectual pursuits. You're not just an average wanderer.
|
||||
<font color="LEVEL"> Maestro Dolkin</font> is in the Treant habitat.
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/33954-01.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/33954-01.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Maestro Dolkin:<br>
|
||||
You can't produce strong weapon or armor by just banging on the ingredients for a long time. The material and the timing have to be just right in order to produce some brilliant gear. Just like how I can. Ha ha ha.<br>
|
||||
Now that I see it, your armor is very poor. It's not affording you much protection, and you'll get injured eventually. Now, I am a very skilled Dwarf. Even that snooty Forest Patroller Milone acknowledges this.<br>
|
||||
If I gave you some good armor, will you consider helping me with something? It's nothing bad, just gathering up some material.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10744_StrongerThanSteel 33954-02.htm">"What is it?"</button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/33954-02.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/33954-02.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Maestro Dolkin:<br>
|
||||
You've got fire in you. I like that!<br>
|
||||
What material do you think will produce the strongest armor? Diamond's a strong material, but it's very expensive and hard to forge. Steel is good, but it's too heavy, and rusts easily.<br>
|
||||
The best material I've found is a tree leaf! The tree leaves around here are different from other leaves. They don't decay and they're very durable. And they're light! I've been researching the leaves in the Whispering Woods for use in high-quality armor. Leaves, stronger than steel! Don't you think that's amazing?
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10744_StrongerThanSteel 33954-03.htm">"Get to the point."</button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/33954-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/33954-03.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Maestro Dolkin:<br>
|
||||
So impatient!<br>
|
||||
The materials you need to gather are <font color="LEVEL">Treant Leaf</font> and <font color="LEVEL">Leafie Leaf</font>. Armor woven from these leaves are very light and strong, and makes you feels like you're flying.<br>
|
||||
Get going!
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/33954-04.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/33954-04.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Maestro Dolkin:<br>
|
||||
You are certainly strong! With this much material, I can just research for awhile. To be honest, I'm still doing research on the type of armor I want to create. Oh now, don't look at me like that. Your face will stick that way.<br>
|
||||
That's not all I was going to say. I never said I wasn't going to give you any armor.<br>
|
||||
I'm going to give you one that's appropriate for you right now, so don't worry.
|
||||
</body></html>
|
160
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/Q10744_StrongerThanSteel.java
vendored
Normal file
160
trunk/dist/game/data/scripts/quests/Q10744_StrongerThanSteel/Q10744_StrongerThanSteel.java
vendored
Normal file
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
* 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.Q10744_StrongerThanSteel;
|
||||
|
||||
import com.l2jserver.gameserver.enums.Race;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
*/
|
||||
public class Q10744_StrongerThanSteel extends Quest
|
||||
{
|
||||
// NPC's
|
||||
private static final int MILONE = 33953;
|
||||
private static final int DOLKIN = 33954;
|
||||
private static final int TREANT = 23457;
|
||||
private static final int LEAFIE = 23458;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 15;
|
||||
private static final int MAX_LEVEL = 20;
|
||||
// Item
|
||||
private static final int TREANT_LEAF = 39532;
|
||||
private static final int LEAFIE_LEAF = 39531;
|
||||
|
||||
public Q10744_StrongerThanSteel()
|
||||
{
|
||||
super(10744, Q10744_StrongerThanSteel.class.getSimpleName(), "Stronger Than Steel");
|
||||
addStartNpc(MILONE);
|
||||
addTalkId(MILONE, DOLKIN);
|
||||
addKillId(TREANT, LEAFIE);
|
||||
registerQuestItems(TREANT_LEAF, LEAFIE_LEAF);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "fixme.htm");
|
||||
addCondRace(Race.ERTHEIA, "fixme.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "33953-02.htm":
|
||||
case "33954-02.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33953-03.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33954-03.htm":
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
if (qs.isCompleted())
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
}
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case MILONE:
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = "33953-01.htm";
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
htmltext = "33953-03.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case DOLKIN:
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "33954-01.htm";
|
||||
}
|
||||
else if (qs.isCond(3))
|
||||
{
|
||||
htmltext = "33954-04.htm";
|
||||
giveAdena(player, 34000, true);
|
||||
addExpAndSp(player, 112001, 5);
|
||||
qs.exitQuest(false, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getQuestState(killer, false);
|
||||
|
||||
if ((qs != null) && qs.isCond(2))
|
||||
{
|
||||
if (npc.getId() == TREANT)
|
||||
{
|
||||
giveItemRandomly(killer, npc, TREANT_LEAF, 1, 20, 1.0, true);
|
||||
}
|
||||
else if (npc.getId() == LEAFIE)
|
||||
{
|
||||
giveItemRandomly(killer, npc, LEAFIE_LEAF, 1, 15, 1.0, true);
|
||||
}
|
||||
|
||||
if ((getQuestItemsCount(killer, TREANT_LEAF) >= 20) && (getQuestItemsCount(killer, LEAFIE_LEAF) >= 15))
|
||||
{
|
||||
qs.setCond(3, true);
|
||||
}
|
||||
}
|
||||
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user