This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30113-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30113-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Magister Juris:<br>
|
||||
How can I help you?<br>
|
||||
<a action="bypass -h Quest Q00190_LostDream 30113-02.html">"I came to learn where the last Cruma is located."</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30113-02.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30113-02.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Magister Juris:<br>
|
||||
Cruma...<br>
|
||||
Where did you learn that name?<br>
|
||||
<a action="bypass -h Quest Q00190_LostDream 30113-03.html">"It was contained in an old record of the Giants recovered from the Tower of Cruma."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30113-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30113-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Magister Juris:<br>
|
||||
Ah, I see. Well, I am afraid I must disappoint you. The Cruma are entirely extinct.<br>
|
||||
Do you know of the ancient war between the Elves and Humans? No? At that time, the last Cruma became our greatest ally. Despite its massive size and strength, though, we were overwhelmed by sheer number of Human warriors and forced to retreat. The Cruma fought a valiant rear-guard action, giving us the time to escape to a safe haven. In doing so, it was mortally wounded and fell in the place now called the Sea of Spores. That was the last of its kind, and none of its brethren roam this world in these latter days...
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30113-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30113-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Magister Juris:<br>
|
||||
I already told you of the Cruma's fate. Your journey to find one is in vain. I am sorry...
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Head Blacksmith Kusto:<br>
|
||||
Good to see you again! When I decoded the metal plate that you gave me, it turned out to be a research log from the lab. I still need to check something, however. Would you help me?<br>
|
||||
<a action="bypass -h Quest Q00190_LostDream 30512-03.htm">"How?"</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Head Blacksmith Kusto:<br>
|
||||
How are you? I certainly appreciate the assistance you provided me. If I need your help again, I won't hesitate to ask! In the meantime, I must take my leave...<br>
|
||||
(Only characters level 42 and above are permitted to undertake this quest.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-03.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-03.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Head Blacksmith Kusto:<br>
|
||||
The research log on the metal plate contains a record of the Cruma, one of the ancient creatures born at the creation of the world. I have determined to ask the Elves about the location of the last Cruma. <font color="LEVEL">Magister Juris in the town of Giran</font> may know something about this matter. Would you seek her out and ask her? She can be very difficult to find...
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Head Blacksmith Kusto:<br>
|
||||
Why are you still here? There is no time to waste. Go find <font color="LEVEL">Magister Juris in the town of Giran</font> and ask her about the last Cruma. If you are having second thoughts, I will ask somebody else to go.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-05.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-05.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Head Blacksmith Kusto:<br>
|
||||
Did you find her? She does know something about the Cruma, doesn't she?<br>
|
||||
<a action="bypass -h Quest Q00190_LostDream 30512-06.html">Tell him what you've learned.</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-06.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-06.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Head Blacksmith Kusto:<br>
|
||||
I see... So it really is extinct. As I told you before, I doubt there is anything to be gained financially from this line of research. Still, any knowledge must possess some value, don't you think? In any event, thank you for your efforts.<br>
|
||||
I have one final favor to ask of you: would you tell <font color="LEVEL">Lorain</font> that the work I asked her to do is now finished? I don't think there is a need for me to have any further contact with her...
|
||||
</body></html>
|
||||
|
3
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-07.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-07.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Head Blacksmith Kusto:<br>
|
||||
Please do not waste any more time! Tell <font color="LEVEL">Lorain</font> that the work I asked her to do is finished.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-08.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30512-08.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Head Blacksmith Kusto:<br>
|
||||
Thank you for your help, my friend. Please take this as a small token of my gratitude.<br>
|
||||
I should be happy to work with you again if the opportunity arises in the future. Farewell!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30621-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30621-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Maestro Nikola:<br>
|
||||
Ah, you've returned! You must have successfully finished the job.<br>
|
||||
What did she say? Really? Hmm, perhaps she is not as odious as I believed. Thank you! I think our relationship has become better because of your help. Perhaps I should be more active in contacting her from now on...
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30621-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30621-02.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Maestro Nikola:<br>
|
||||
Your news has filled me with new hope. Thank you! I'll take care of the debt with Kusto. Farewell!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30673-01.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30673-01.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Researcher Lorain:<br>
|
||||
Is that so? Well, I'll ask Kusto about the cost. At least we've finished one mission. Good job! I hope we can work together again. One last favor... On your way back, please tell <font color="LEVEL">Nikola</font> that I'm not angry with him any more, and that I'm ready to work together again.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30673-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00190_LostDream/30673-02.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Researcher Lorain:<br>
|
||||
Good job! One last favor... On your way back, please tell <font color="LEVEL">Nikola</font> that I'm not angry with him any more, and that I'm ready to work together again. Farewell, and may the hammer of Maphr make clear your path!
|
||||
</body></html>
|
222
trunk/dist/game/data/scripts/quests/Q00190_LostDream/Q00190_LostDream.java
vendored
Normal file
222
trunk/dist/game/data/scripts/quests/Q00190_LostDream/Q00190_LostDream.java
vendored
Normal file
@@ -0,0 +1,222 @@
|
||||
/*
|
||||
* 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.Q00190_LostDream;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Lost Dream (190)
|
||||
* @author ivantotov
|
||||
*/
|
||||
public final class Q00190_LostDream extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int HEAD_BLACKSMITH_KUSTO = 30512;
|
||||
private static final int RESEARCHER_LORAIN = 30673;
|
||||
private static final int MAESTRO_NIKOLA = 30621;
|
||||
private static final int JURIS = 30113;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 42;
|
||||
private static final int MAX_LEVEL_FOR_EXP_SP = 48;
|
||||
|
||||
public Q00190_LostDream()
|
||||
{
|
||||
super(190, Q00190_LostDream.class.getSimpleName(), "Lost Dream");
|
||||
addStartNpc(HEAD_BLACKSMITH_KUSTO);
|
||||
addTalkId(HEAD_BLACKSMITH_KUSTO, RESEARCHER_LORAIN, MAESTRO_NIKOLA, JURIS);
|
||||
}
|
||||
|
||||
@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 "30113-02.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "30512-03.htm":
|
||||
{
|
||||
if (st.isCreated())
|
||||
{
|
||||
st.startQuest();
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30512-06.html":
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
st.setCond(3, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "30113-03.html":
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
st.setCond(2, 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 HEAD_BLACKSMITH_KUSTO:
|
||||
{
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
final QuestState qs = player.getQuestState(Q00187_NikolasHeart.class.getSimpleName());
|
||||
if ((qs != null) && qs.isCompleted())
|
||||
{
|
||||
htmltext = (player.getLevel() >= MIN_LEVEL) ? "30512-01.htm" : "30512-02.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
htmltext = "30512-04.html";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
htmltext = "30512-05.html";
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
case 4:
|
||||
{
|
||||
htmltext = "30512-07.html";
|
||||
break;
|
||||
}
|
||||
case 5:
|
||||
{
|
||||
htmltext = "30512-08.html";
|
||||
st.giveAdena(109427, true);
|
||||
if (player.getLevel() < MAX_LEVEL_FOR_EXP_SP)
|
||||
{
|
||||
st.addExpAndSp(309467, 20614);
|
||||
}
|
||||
st.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case RESEARCHER_LORAIN:
|
||||
{
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 3:
|
||||
{
|
||||
st.setCond(4, true);
|
||||
htmltext = "30673-01.html";
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
{
|
||||
htmltext = "30673-02.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case MAESTRO_NIKOLA:
|
||||
{
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 4:
|
||||
{
|
||||
st.setCond(5, true);
|
||||
htmltext = "30621-01.html";
|
||||
break;
|
||||
}
|
||||
case 5:
|
||||
{
|
||||
htmltext = "30621-02.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case JURIS:
|
||||
{
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
htmltext = "30113-01.html";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
htmltext = "30113-04.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user