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,4 @@
<html><body>Head Blacksmith Kusto:<br>
Long time no see! Do you have any good news?<br>
<a action="bypass -h Quest Q00187_NikolasHeart 30512-02.html">"I heard that you also gave Nikola some work."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Head Blacksmith Kusto:<br>
Ha ha! I don't know how you found that out. Well... since you already know, I will tell you. I wouldn't mind if Nikola and Lorain would work together, actually, but since they despise each other I thought it best to let them work separately. But as you discovered, this is not something that you can finish on your own, is it?<br>
<a action="bypass -h Quest Q00187_NikolasHeart 30512-03.html">"That problem has been resolved. I found something that looks like a relic, but we need the password."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Head Blacksmith Kusto:<br>
Ah! Let me see it!<br>
Hmm. I see. Yes, we certainly need the password. It might take me some time, but I think I can puzzle it out. Excellent work, my young friend! Please accept this as a token of my gratitude. Farewell -- I must take this to my lab!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Maestro Nikola:<br>
I have been waiting for you. Do you have any good news for me?<br>
<a action="bypass -h Quest Q00187_NikolasHeart 30621-02.html">Ask him to decode the password on the metal plate.</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Maestro Nikola:<br>
She said that, eh?<br>
It was a good thing that I listened to you, I see. I will do my best to help you. May I see it?<br>
Hmm... this is beyond my abilities. But there is a Dwarf who can help you...<br>
<a action="bypass -h Quest Q00187_NikolasHeart 30621-03.html">"Who is it? Tell me."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Maestro Nikola:<br>
He is <font color="LEVEL">Head Blacksmith Kusto in the town of Giran</font>. He will certainly be able to decode this password for sure. Surprised? You shouldn't be. But go visit him for yourself and you'll see why he is ideal for this task.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Maestro Nikola:<br>
I will introduce you to <font color="LEVEL">Head Blacksmith Kusto in the town of Giran</font>, who I am confident can solve this riddle. Go visit him.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Researcher Lorain:<br>
Good to see you again. I've found out some interesting things about the type of metal used to construct this plate, but I haven't been able to determine what's inside. Apparently, we need to decode the password. As much as I hate to admit it, I think we need Nikola's help to solve this riddle. Would you go visit him for me -- I'm still worried about the fight we had...<br>
<a action="bypass -h Quest Q00187_NikolasHeart 30673-03.htm">"You can count on me."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Researcher Lorain:<br>
I've been studying the metal plate you brought me. I'm very pleased that I can continue my research...<br>
(Only characters level 41 and above are permitted to undertake this quest.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Researcher Lorain:<br>
It seems that this metal plate is actually an ancient recording device used in a research lab in the Tower of Cruma. Please tell that to <font color="LEVEL">Nikola</font>, and ask him to help us solve the password. Perhaps we can set aside our differences in the face of this amazing new discovery...
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Researcher Lorain:<br>
Did you visit <font color="LEVEL">Nikola</font>? To continue our research, we need to solve the password so we can access the secrets of the metal plate. Please hurry!
</body></html>

View File

@@ -0,0 +1,167 @@
/*
* 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.Q00187_NikolasHeart;
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;
/**
* Nikola's Heart (187)
* @author ivantotov
*/
public final class Q00187_NikolasHeart extends Quest
{
// NPCs
private static final int HEAD_BLACKSMITH_KUSTO = 30512;
private static final int MAESTRO_NIKOLA = 30621;
private static final int RESEARCHER_LORAIN = 30673;
// Items
private static final int LORAINES_CERTIFICATE = 10362;
private static final int METALLOGRAPH = 10368;
// Misc
private static final int MIN_LEVEL = 41;
private static final int MIN_LEVEL_FOR_EXP_SP = 47;
public Q00187_NikolasHeart()
{
super(187, Q00187_NikolasHeart.class.getSimpleName(), "Nikola's Heart");
addStartNpc(RESEARCHER_LORAIN);
addTalkId(HEAD_BLACKSMITH_KUSTO, RESEARCHER_LORAIN, MAESTRO_NIKOLA);
registerQuestItems(METALLOGRAPH);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "30621-02.html":
case "30512-02.html":
{
htmltext = event;
break;
}
case "30673-03.htm":
{
if (st.isCreated())
{
st.startQuest();
st.takeItems(LORAINES_CERTIFICATE, -1);
st.giveItems(METALLOGRAPH, 1);
htmltext = event;
}
break;
}
case "30621-03.html":
{
if (st.isCond(1))
{
st.setCond(2, true);
htmltext = event;
}
break;
}
case "30512-03.html":
{
if (st.isCond(2))
{
st.giveAdena(93383, true);
if (player.getLevel() < MIN_LEVEL_FOR_EXP_SP)
{
st.addExpAndSp(285935, 18711);
}
st.exitQuest(false, true);
htmltext = event;
}
break;
}
}
return htmltext;
}
@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 RESEARCHER_LORAIN:
{
switch (st.getState())
{
case State.CREATED:
{
final QuestState qs = player.getQuestState("185_Nikolas_Cooperation_Consideration");
if ((qs != null) && qs.isCompleted() && st.hasQuestItems(LORAINES_CERTIFICATE))
{
htmltext = player.getLevel() < MIN_LEVEL ? "30673-02.htm" : "30673-01.htm";
}
break;
}
case State.STARTED:
{
if (st.getCond() >= 1)
{
htmltext = "30673-04.html";
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
break;
}
case MAESTRO_NIKOLA:
{
if (st.isStarted())
{
htmltext = st.isCond(1) ? "30621-01.html" : "30621-04.html";
}
break;
}
case HEAD_BLACKSMITH_KUSTO:
{
if (st.isCond(2) && st.hasQuestItems(METALLOGRAPH))
{
htmltext = "30512-01.html";
}
break;
}
}
return htmltext;
}
}