This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31271-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31271-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Blacksmith Hilda:<br>
|
||||
I've a tale to interest you. Have you heard tell of <font color="LEVEL">Vulcan</font>, the blacksmith? Now, all us blacksmiths have much to say about fire — we depend on it for our livelihood. Vulcan, though, he spoke of nothing else, and his talk was the marvel of all who heard it. He said that the fire was the actual life of the blacksmith, and could think of nothing but ways to make his fire hotter and fiercer.<br>
|
||||
Eventually, he followed his notions right into the deeps of the <font color="LEVEL">Gods' Forge</font>, where he said he could collect and use all the fire he could want. It's a horribly dangerous place, and he's looking for those who can accompany him, adventurers who are not shy of danger and who can help him collect the flames. Do you reckon to be interested?<br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 31271-03.htm">Express interest in the venture.</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31271-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31271-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Blacksmith Hilda:<br>
|
||||
Ho, there! I'm Hilda the Blacksmith, and if you want good, solid work done, there's none better here.<br>
|
||||
Don't pay any attention to the claims of that crackpot <font color="LEVEL">Vulcan</font>. He's mad through and through. Fire is his obsession — he's forever searching for ways to make fire hotter and fiercer. I care for my fire, as does any competent blacksmith, but there are limits. Anyway, he won't live long enough to help you with anything; he's in the habit of venturing into the <font color="LEVEL">Forge of the Gods</font>, and one day its dangers will claim him - and his eternal fire too!<br>
|
||||
I've heard he is looking for adventurers to help him collect flames, but take my advice: leave that job to tougher adventurers, or wait until you yourselves are tougher. If you accompany him now, you'll die right alongside him.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31271-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31271-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Blacksmith Hilda:<br>
|
||||
Very well, then. Defeat the <font color="LEVEL">monsters in the Gods' Forge</font>, collect the flames you find there, and bring them to Vulcan. He's mad, but he's a canny blacksmith; he'll give you an S-grade weapon recipe if you can bring him <font color="LEVEL">1000 flames</font>.<br>
|
||||
You may have heard tell of Vulcan's younger brother <font color="LEVEL">Rooney</font>. No? Well, he's as mad as his brother is, and perhaps even cannier as a blacksmith. He's a wandering lad, but he has a lot of different S-grade weapon recipes. <font color="LEVEL">Give Rooney 1200 flames, and he'll reward you with an S-grade weapon recipe.</font> If you can find him in his wanderings, it might be a good idea for you to meet with him too.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31271-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31271-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Blacksmith Hilda:<br>
|
||||
So you met with Vulcan, did you? Did he give you an earful of his madness? Well, he's mad about flame, but the rewards he offers are real. Defeat the <font color="LEVEL">monsters in the Gods' Forge</font>, collect the flames you find, and go to him; he will give you an S-grade weapon recipe if you bring him <font color="LEVEL">1000 flames</font>.<br>
|
||||
If you gather even more flames, you might see about meeting Vulcan's younger brother <font color="LEVEL">Rooney</font>. He's as mad as his brother, and he's engaged in the same quest. <font color="LEVEL">Bring him 1200 flames and he will give you an S-grade weapon recipe.</font>. Rooney wanders from here to there, so he's not easy to find...but it might be worth your while to deal with him.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Vulcan, Blacksmith of the Flame:<br>
|
||||
Fire is the lifeblood of a blacksmith. I need a hotter fire to make this high quality weapon. I'm gathering flames from Forge of the Gods, can you help me?<br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 31539-03.htm">Quest</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Vulcan, Blacksmith of the Flame:<br>
|
||||
Fire is the lifeblood of a blacksmith. I need a hotter fire to make this high quality weapon. I'm gathering flames from Forge of the Gods. You don't want to get burned, do you?<br>
|
||||
(This quest may only be undertaken by a charachter level 74 or above.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Vulcan, Blacksmith of the Flame:<br>
|
||||
Very well! Let me ask you a favor! Bring me <font color="LEVEL">1000 Flames</font> from the <font color="LEVEL">monsters inside the Forge of the Gods</font>. I'll give you a Weapon Recipe: Grade S that I have.<br>
|
||||
Oh, I just remembered that my younger brother, <font color="LEVEL">Rooney</font>, also collects Flames in the Forge of the Gods. He's a wanderer, that boy! I've heard that <font color="LEVEL">he gives a Weapon Recipe: Grade S to anyone who brings him 1200 Flames</font>, but he probably won't be easy to find!
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-04.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-04.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Vulcan, Blacksmith of the Flame:<br>
|
||||
Oh! You brought 1000 flames! What do you think? Do you want to trade the 1000 flames for my Weapon Recipe: Grade S?<br>
|
||||
I just remembered that my younger brother, <font color="LEVEL">Rooney</font>, also collects Flames in the Forge of the Gods. He's a wanderer, that boy! I've heard that <font color="LEVEL">he gives a Weapon Recipe: Grade S to anyone who brings him 1200 Flames</font>, but he probably won't be easy to find!<br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 31539-06.html">"I don't want to trade right now."</a><br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 31539-07.html">"Let's trade."</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-05.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-05.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Vulcan, Blacksmith of the Flame:<br>
|
||||
Hey, are you gathering Flames? Alas, you have not gotten 1000 of them yet. You do realize that you can get them from the <font color="LEVEL">Monsters located within the Forge of the Gods</font>. If you so happen to bring me <font color="LEVEL">1000 Flames</font>, I'll give you something special in return.<br>
|
||||
It might also be useful for me to mention that my younger brother, <font color="LEVEL">Rooney</font>, also collects these Flames in the Forge of the Gods. Aye, that lad... he be a wanderer no doubt! He's mentioned that <font color="LEVEL">he will part with one of his belongings to anyone who delivers 1200 Flames to him</font>. He is not someone easy to locate however!<br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 31539-06.html">"I want to continue to collect Flames."</a><br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 31539-08.html">"I want to stop collecting Flames."</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Vulcan, Blacksmith of the Flame:<br>
|
||||
Continue gathering flames from <font color="LEVEL">monsters in Forge of the Gods</font>.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-07.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-07.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Blacksmith of Flame Vulcan:<br>
|
||||
Now. Here it is.<br>
|
||||
What do you think? This S-grade weapon recipe is not easy to obtain. Whether it pleases you or not, you should recognize that it is a precious item. Even if it is not the weapon recipe that you wanted, an S-grade weapon recipe is valuable enough in and of itself...<br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 31539-04.html">Receive reward again.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-08.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/31539-08.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Vulcan, Blacksmith of the Flame:<br>
|
||||
Come back anytime if you change your mind, I'll be here.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/32049-01.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/32049-01.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Blacksmith of Wind Rooney:<br>
|
||||
I'm collecting Flames like my brother Vulcan does. Unlike Vulcan, I wander around occasionally, so I was able to get various S-grade Weapon Recipes. If you <font color="LEVEL">collect and bring me 1200 Flames, I'll give you a recipe.</font>
|
||||
</body></html>
|
13
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/32049-02.html
vendored
Normal file
13
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/32049-02.html
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<html><body>Blacksmith of Wind Rooney:<br>
|
||||
Um, look here. You have a lot of Flames here! If you give me 1200 Flames, I will exchange them for the S-Grade weapon recipe. I am taking more than Vulcan? Well, this recipe contains my effort, sweat and blood, so I can't take any less...<br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 6881">Recipe: Forgotten Blade (60%)</a><br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 6883">Recipe: Basalt Battlehammer (60%)</a><br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 6885">Recipe: Imperial Staff (60%)</a><br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 6887">Recipe: Angel Slayer (60%)</a><br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 7580">Recipe: Draconic Bow (60%)</a><br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 6891">Recipe: Dragon Hunter Axe (60%)</a><br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 6893">Recipe: Saint Spear (60%)</a><br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 6895">Recipe: Demon Splinter (60%)</a><br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 6897">Recipe: Heaven's Divider (60%)</a><br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 6899">Recipe: Arcana Mace (60%)</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/32049-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/32049-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Blacksmith of Wind Rooney:<br>
|
||||
Here it is. I'll exchange with you again if you bring back some more.<br>
|
||||
<a action="bypass -h Quest Q00617_GatherTheFlames 32049-02.html">Receive reward again.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/32049-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/32049-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Blacksmith of Wind Rooney:<br>
|
||||
Here it is. Bring me more Flames and I'll trade for them.
|
||||
</body></html>
|
217
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/Q00617_GatherTheFlames.java
vendored
Normal file
217
trunk/dist/game/data/scripts/quests/Q00617_GatherTheFlames/Q00617_GatherTheFlames.java
vendored
Normal file
@@ -0,0 +1,217 @@
|
||||
/*
|
||||
* 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.Q00617_GatherTheFlames;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Gather the Flames (617)
|
||||
* @author malyelfik
|
||||
*/
|
||||
public class Q00617_GatherTheFlames extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int HILDA = 31271;
|
||||
private static final int VULCAN = 31539;
|
||||
private static final int ROONEY = 32049;
|
||||
// Item
|
||||
private static final int TORCH = 7264;
|
||||
// Reward
|
||||
private static final int[] REWARD =
|
||||
{
|
||||
6881,
|
||||
6883,
|
||||
6885,
|
||||
6887,
|
||||
6891,
|
||||
6893,
|
||||
6895,
|
||||
6897,
|
||||
6899,
|
||||
7580
|
||||
};
|
||||
|
||||
// Monsters
|
||||
private static final Map<Integer, Integer> MOBS = new HashMap<>();
|
||||
|
||||
static
|
||||
{
|
||||
MOBS.put(22634, 639);
|
||||
MOBS.put(22635, 611);
|
||||
MOBS.put(22636, 649);
|
||||
MOBS.put(22637, 639);
|
||||
MOBS.put(22638, 639);
|
||||
MOBS.put(22639, 645);
|
||||
MOBS.put(22640, 559);
|
||||
MOBS.put(22641, 588);
|
||||
MOBS.put(22642, 537);
|
||||
MOBS.put(22643, 618);
|
||||
MOBS.put(22644, 633);
|
||||
MOBS.put(22645, 550);
|
||||
MOBS.put(22646, 593);
|
||||
MOBS.put(22647, 688);
|
||||
MOBS.put(22648, 632);
|
||||
MOBS.put(22649, 685);
|
||||
}
|
||||
|
||||
public Q00617_GatherTheFlames()
|
||||
{
|
||||
super(617, Q00617_GatherTheFlames.class.getSimpleName(), "Gather the Flames");
|
||||
addStartNpc(HILDA, VULCAN);
|
||||
addTalkId(ROONEY, HILDA, VULCAN);
|
||||
addKillId(MOBS.keySet());
|
||||
registerQuestItems(TORCH);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
String htmltext = event;
|
||||
switch (event)
|
||||
{
|
||||
case "31539-03.htm":
|
||||
case "31271-03.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "32049-02.html":
|
||||
case "31539-04.html":
|
||||
case "31539-06.html":
|
||||
break;
|
||||
case "31539-07.html":
|
||||
if ((st.getQuestItemsCount(TORCH) < 1000) || !st.isStarted())
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
st.giveItems(REWARD[getRandom(REWARD.length)], 1);
|
||||
st.takeItems(TORCH, 1000);
|
||||
break;
|
||||
case "31539-08.html":
|
||||
st.exitQuest(true, true);
|
||||
break;
|
||||
case "6883":
|
||||
case "6885":
|
||||
case "7580":
|
||||
case "6891":
|
||||
case "6893":
|
||||
case "6895":
|
||||
case "6897":
|
||||
case "6899":
|
||||
if ((st.getQuestItemsCount(TORCH) < 1200) || !st.isStarted())
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
st.giveItems(Integer.valueOf(event), 1);
|
||||
st.takeItems(TORCH, 1200);
|
||||
htmltext = "32049-04.html";
|
||||
break;
|
||||
case "6887":
|
||||
case "6881":
|
||||
if ((st.getQuestItemsCount(TORCH) < 1200) || !st.isStarted())
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
st.giveItems(Integer.valueOf(event), 1);
|
||||
st.takeItems(TORCH, 1200);
|
||||
htmltext = "32049-03.html";
|
||||
break;
|
||||
default:
|
||||
htmltext = null;
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
final L2PcInstance partyMember = getRandomPartyMember(player, 1);
|
||||
if (partyMember == null)
|
||||
{
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
final QuestState st = getQuestState(partyMember, false);
|
||||
|
||||
if (getRandom(1000) < MOBS.get(npc.getId()))
|
||||
{
|
||||
st.giveItems(TORCH, 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
st.giveItems(TORCH, 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 ROONEY:
|
||||
if (st.isStarted())
|
||||
{
|
||||
htmltext = (st.getQuestItemsCount(TORCH) >= 1200) ? "32049-02.html" : "32049-01.html";
|
||||
}
|
||||
break;
|
||||
case VULCAN:
|
||||
if (st.isCreated())
|
||||
{
|
||||
htmltext = (player.getLevel() >= 74) ? "31539-01.htm" : "31539-02.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = (st.getQuestItemsCount(TORCH) >= 1000) ? "31539-04.html" : "31539-05.html";
|
||||
}
|
||||
break;
|
||||
case HILDA:
|
||||
if (st.isCreated())
|
||||
{
|
||||
htmltext = (player.getLevel() >= 74) ? "31271-01.htm" : "31271-02.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31271-04.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user