This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30621-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30621-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Maestro Nikola:<br>
|
||||
Have you given Lorain a great deal of help?<br>
|
||||
<a action="bypass -h Quest Q00188_SealRemoval 30621-02.html">Show him a metal piece and explain the situation to him.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30621-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30621-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Maestro Nikola:<br>
|
||||
Hmm... This damage is too extensive for me to repair, but I know a person who can do work of this kind.<br>
|
||||
<a action="bypass -h Quest Q00188_SealRemoval 30621-03.html">"Who is it? Tell me."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30621-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30621-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Maestro Nikola:<br>
|
||||
<font color="LEVEL">Locksmith Dorothy in Heine</font> is the foremost expert for this kind of work. I know it's a long journey, but I think it would be worth your while to go visit her.<br>
|
||||
<a action="bypass -h Quest Q00188_SealRemoval 30621-04.html">"I understand. Dorothy, you said?"</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30621-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30621-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Maestro Nikola:<br>
|
||||
That's right. <font color="LEVEL">Locksmith Dorothy</font>. I am sure she can help you in this matter.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30621-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30621-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Maestro Nikola:<br>
|
||||
Didn't you already tell me that? Go and find <font color="LEVEL">Dorothy</font>.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30673-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30673-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Researcher Lorain:<br>
|
||||
Good to see you! I tried to reconstruct these broken metal pieces, but it's beyond my skill. I think we must ask <font color="LEVEL">Nikola</font> for help -- he knows a lot of people, one of whom may be able to repair this. I know I should probably visit him myself, but I'm still a litle worried about the argument we had before. Would you help me?<br>
|
||||
<a action="bypass -h Quest Q00188_SealRemoval 30673-03.htm">"You can count on me."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30673-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30673-02.htm
vendored
Normal 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>
|
3
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30673-03.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30673-03.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Researcher Lorain:<br>
|
||||
Tell him these metal fragments are actually parts of an ancient recording device, and ask him if he knows how to restore it. If there's a way to do so, I trust you to see that it gets done.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30673-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30673-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Researcher Lorain:<br>
|
||||
Did you visit <font color="LEVEL">Nikola</font>? Please find a way to repair these broken metal pieces.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30970-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30970-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Locksmith Dorothy:<br>
|
||||
Why have you come to see me?<br>
|
||||
<a action="bypass -h Quest Q00188_SealRemoval 30970-02.html">"Nikola thought you might be able to repair these broken metal pieces."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30970-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30970-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Locksmith Dorothy:<br>
|
||||
Hmm, this is badly broken. Where did you get it?<br>
|
||||
<a action="bypass -h Quest Q00188_SealRemoval 30970-03.html">"I found it on the 2nd floor of Cruma Tower, a place that looked like the Giants' research laboratory."</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30970-03.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/30970-03.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Locksmith Dorothy:<br>
|
||||
This might be a recording device... I assume you'd like me to try and repair it so you can recover whatever information it contains?<br>
|
||||
This is going to take some time, but I'll give it my best.<br>
|
||||
Come back later and we'll see what we find.
|
||||
</body></html>
|
183
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/Q00188_SealRemoval.java
vendored
Normal file
183
trunk/dist/game/data/scripts/quests/Q00188_SealRemoval/Q00188_SealRemoval.java
vendored
Normal file
@@ -0,0 +1,183 @@
|
||||
/*
|
||||
* 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.Q00188_SealRemoval;
|
||||
|
||||
import quests.Q00186_ContractExecution.Q00186_ContractExecution;
|
||||
import quests.Q00187_NikolasHeart.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;
|
||||
|
||||
/**
|
||||
* Seal Removal (188)
|
||||
* @author ivantotov
|
||||
*/
|
||||
public final class Q00188_SealRemoval extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int MAESTRO_NIKOLA = 30621;
|
||||
private static final int RESEARCHER_LORAIN = 30673;
|
||||
private static final int DOROTHY_LOCKSMITH = 30970;
|
||||
// Items
|
||||
private static final int LORAINES_CERTIFICATE = 10362;
|
||||
private static final int BROKEN_METAL_PIECES = 10369;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 41;
|
||||
private static final int MAX_LEVEL_FOR_EXP_SP = 47;
|
||||
|
||||
public Q00188_SealRemoval()
|
||||
{
|
||||
super(188, Q00188_SealRemoval.class.getSimpleName(), "Seal Removal");
|
||||
addStartNpc(RESEARCHER_LORAIN);
|
||||
addTalkId(RESEARCHER_LORAIN, MAESTRO_NIKOLA, DOROTHY_LOCKSMITH);
|
||||
registerQuestItems(BROKEN_METAL_PIECES);
|
||||
}
|
||||
|
||||
@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 "30970-02.html":
|
||||
case "30621-02.html":
|
||||
case "30621-04.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "30673-03.htm":
|
||||
{
|
||||
if (st.isCreated())
|
||||
{
|
||||
st.startQuest();
|
||||
st.giveItems(BROKEN_METAL_PIECES, 1);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30621-03.html":
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
st.setCond(2, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30970-03.html":
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
st.giveAdena(98583, true);
|
||||
if (player.getLevel() < MAX_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:
|
||||
{
|
||||
if (st.hasQuestItems(LORAINES_CERTIFICATE))
|
||||
{
|
||||
final QuestState q184 = player.getQuestState("184_Nikolas_Cooperation_Contract"); // TODO: Update.
|
||||
if ((q184 != null) && q184.isCompleted())
|
||||
{
|
||||
htmltext = (player.getLevel() >= MIN_LEVEL) ? "30673-01.htm" : "30673-02.htm";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
final QuestState q185 = player.getQuestState("185_Nikolas_Cooperation_Consideration"); // TODO: Update.
|
||||
final QuestState q186 = player.getQuestState(Q00186_ContractExecution.class.getSimpleName());
|
||||
final QuestState q187 = player.getQuestState(Q00187_NikolasHeart.class.getSimpleName());
|
||||
if ((q185 != null) && q185.isCompleted() && (q186 != null) && q186.isCompleted() && (q187 != null) && q187.isCompleted())
|
||||
{
|
||||
htmltext = (player.getLevel() >= MIN_LEVEL) ? "30673-01.htm" : "30673-02.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-05.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case DOROTHY_LOCKSMITH:
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
htmltext = "30970-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user