Merged with released L2J-Unity files.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
The person we sent to investigate the ancient monument is missing. Can you help us find him?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31555-02.html">Quest</Button>
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
The person we sent to investigate the ancient monument is missing. Can you help us find him?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31555-02.html">Quest</Button>
|
||||
</body></html>
|
@@ -1,4 +1,4 @@
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
Rangers reported that Krorin went missing somewhere in the Swamp of Screams. Look for him there. If he is dead find his diary. It might hold a clue about the ancient monuments hidden there.<br>
|
||||
The swamp is a dangerous place, but I'm sure you can handle it. Good luck!
|
||||
<html><body>Mercenary Supplier Abercrombie:<br><br><br>
|
||||
Rangers reported that Krorin went missing somewhere in the Swamp of Screams. Look for him there. If he is dead, find his diary. It might hold a clue about the ancient monument hidden there.<br1>
|
||||
The swamp is a dangerous place, but I'm sure you can handle it. Good luck!
|
||||
</body></html>
|
@@ -1,4 +1,4 @@
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
The Swamp of Screams is very dangerous. This is too difficult a mission for you.<br>
|
||||
(This quest may only be undertaken by a character level 66 or above.)
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
The Swamp of Screams is very dangerous. This is too difficult a mission for you.<br>
|
||||
(This quest may only be undertaken by a character level 66 or above.)
|
||||
</body></html>
|
@@ -1,4 +1,4 @@
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
He was a good guild member, he will be missed. Captain Pierce thinks this could be why the Golden Ram are here. Would you complete his research so his death is not in vain?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31555-05.html">"I'll help."</Button>
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
He was a good guild member, he will be missed. Captain Pierce thinks this could be why the Golden Ram are here. Would you complete his research so his death is not in vain?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31555-05.html">"I'll help."</Button>
|
||||
</body></html>
|
@@ -1,5 +1,5 @@
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
Krorin's diary tells of four ancient monuments scattered in the swamp.<br>
|
||||
Priests of the Elmoreden Empire used them for astronomical observation.<br>
|
||||
He must have found the first monument! I'll mark it on your Map. Deciphering the ancient hieroglyphs on it will lead you to the next one.
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
Krorin's diary tells of four ancient monuments scattered in the swamp.<br>
|
||||
Priests of the Elmoreden Empire used them for astronomical observation.<br1>
|
||||
He must have found the first monument! I'll mark it on your Map. Deciphering the ancient hieroglyphs on it will lead you to the next one.
|
||||
</body></html>
|
@@ -1,4 +1,4 @@
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
According to Krorin's journal, there should be four monuments left behind by the people of the ancient empire. They must be scattered around the swamp... <br>
|
||||
I've heard that the monuments were used as datum points for making astronomical observations. It seems that Krorin had located the first monument, so you'll want to follow the route marked in his journal. Beyond that, Krorin writes that there are strange characters drawn on the monuments which you must decypher in order to learn the location of the next monument. Those ancient people and their puzzles! Good luck!
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
According to Krorin's journal, there should be four monuments left behind by the people of the ancient empire. They must be scattered around the swamp...<br>
|
||||
I've heard that the monuments were used as datum points for making astronomical observations. It seems that Krorin had located the first monument, so you'll want to follow the route marked in his journal. Beyond that, Krorin writes that there are strange characters drawn on the monuments which you must decypher in order to learn the location of the next monument. Those ancient people and their puzzles! Good luck!
|
||||
</body></html>
|
@@ -1,4 +1,4 @@
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
You've returned! Did you find the monuments?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31555-08.html">"I found all four"</Button>
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
You've returned! Did you find the monuments?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31555-08.html">"I found all four."</Button>
|
||||
</body></html>
|
@@ -1,4 +1,4 @@
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
Very good! With help like yours, we'd be done with this swamp in no time. So they are related to astronomy. Krorin would be proud of you.<br>
|
||||
Please take this as a small token of my thanks, I'd have something better for you if I weren't stuck in this swamp!
|
||||
<html><body>Mercenary Supplier Abercrombie:<br>
|
||||
Very good! With help like yours, we'd be done with this swamp in no time. So they are related to astronomy. Krorin would be proud of you.<br>
|
||||
Please take this as a small token of my thanks, I'd have something better for you if I weren't stuck in this swamp!
|
||||
</body></html>
|
@@ -1,4 +1,4 @@
|
||||
<html><body>Forgotten Monument:<br>
|
||||
An ancient stone monument. Scrape away the mud and you'll find mysterious hieroglyphs and diagrams.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31661-02.html">Examine the markings closely.</Button>
|
||||
<html><body>Forgotten Monument:<br>
|
||||
An ancient stone monument. Scrape away the mud and you'll find mysterious hieroglyphs and diagrams.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31661-02.html">Examine the markings closely</Button>
|
||||
</body></html>
|
@@ -1,3 +1,3 @@
|
||||
<html><body>Forgotten Monument:<br>
|
||||
All signs seem to reveal that the diagrams carved on the monument are a Map to the second monument, located somewhere in the Marshland.
|
||||
<html><body>Forgotten Monument:<br>
|
||||
All signs seem to reveal that the diagrams carved on the monument are a Map to the second monument, located somewhere in the Marshland.
|
||||
</body></html>
|
@@ -1,3 +1,3 @@
|
||||
<html><body>Forgotten Monument:<br>
|
||||
The diagrams are a Map to the second monument, somewhere in the swamp.
|
||||
<html><body>Forgotten Monument:<br>
|
||||
The diagrams are a Map to the second monument, somewhere in the swamp.
|
||||
</body></html>
|
@@ -1,4 +1,4 @@
|
||||
<html><body>Forgotten Monument:<br>
|
||||
An ancient monument made in the same style as the monument that was discovered first. You find hieroglyphic characters and diagrams inscribed on the surface after cleaning off the mud.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31662-02.html">Analyze the diagrams.</Button>
|
||||
<html><body>Forgotten Monument :<br>
|
||||
An ancient monument made in the same style as the monument that was discovered first. You found hieroglyphic characters and diagrams inscribed on the surface after cleaning off the mud.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31662-02.html">Analyze the diagrams</Button>
|
||||
</body></html>
|
@@ -1,3 +1,3 @@
|
||||
<html><body>Forgotten Monument:<br>
|
||||
The lines' intersection may be the location of the third monument. After comparing it to the Map, you've discovered its approximate location.
|
||||
<html><body>Forgotten Monument:<br>
|
||||
The lines' intersection may be the location of the third monument. After comparing it to the Map, you've discovered its approximate location.
|
||||
</body></html>
|
@@ -1,3 +1,3 @@
|
||||
<html><body>Forgotten Monument:<br>
|
||||
It seems to be a Map to a third monument, somewhere in the Swamp of Screams.
|
||||
<html><body>Forgotten Monument:<br>
|
||||
The carvings on the monument have disclosed the location of the third monument.
|
||||
</body></html>
|
@@ -1,4 +1,4 @@
|
||||
<html><body>Forgotten Monument:<br>
|
||||
Much cleaner and better preserved than the previous monuments. It's covered in strange hieroglyphs and diagrams.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31663-02.html">Examine the markings.</Button>
|
||||
<html><body>Forgotten Monument:<br>
|
||||
Much cleaner and better preserved than the previous monuments. It's covered in strange hieroglyphs and diagrams.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31663-02.html">Examine the markings closely</Button>
|
||||
</body></html>
|
@@ -1,3 +1,3 @@
|
||||
<html><body>Forgotten Monument:<br>
|
||||
Further analysis is futile. Only the discovery of the fourth monument remains.
|
||||
<html><body>Forgotten Monument:<br>
|
||||
The fourth monument seems to be in the most dangerous part of the Swamp of Screams.
|
||||
</body></html>
|
@@ -1,3 +1,3 @@
|
||||
<html><body>Forgotten Monument:<br>
|
||||
The fourth monument seems to be in the most dangerous part of the Swamp of Screams.
|
||||
<html><body>Forgotten Monument:<br>
|
||||
The fourth monument seems to be in the most dangerous part of the Swamp of Screams.
|
||||
</body></html>
|
@@ -1,4 +1,5 @@
|
||||
<html><body>Forgotten Monument:<br>
|
||||
Like the previous monuments, an ancient Map is inscribed in the fourth monument. After cleaning it off you recognize the markings.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31664-02.html">Examine the markings closely.</Button>
|
||||
<html><body>Forgotten Monument:<br>
|
||||
This is the fourth monument.<br>
|
||||
Like the previous monuments, an ancient Map is inscribed on the fourth monument. After cleaning it off, you recognize the markings.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31664-02.html">Examine the markings closely</Button>
|
||||
</body></html>
|
@@ -1,3 +1,3 @@
|
||||
<html><body>Forgotten Monument:<br>
|
||||
The Map seems to indicate that the monuments in this area were built to track the moon. The four monuments indicate the positions of the moon on the fall and spring equinoxes, and the summer and winter solstices. There are no more forgotten monuments in this area.
|
||||
<html><body>Forgotten Monument:<br>
|
||||
The Map seems to indicate that the monuments in this area were built to track the moon. The four monuments indicate the positions of the moon on the fall and spring equinoxes, and the summer and the winter solstices. There are no more forgotten monuments in this area.
|
||||
</body></html>
|
@@ -1,3 +1,3 @@
|
||||
<html><body>Forgotten Monument:<br>
|
||||
Further analysis is futile.
|
||||
<html><body>Forgotten Monument:<br>
|
||||
Further analysis is futile.
|
||||
</body></html>
|
@@ -1,4 +1,4 @@
|
||||
<html><body>Corpse of Dwarf:<br>
|
||||
The corpse of a male Dwarf, presumedly that of Researcher Krorin. Aparently he lost his life after being poisoned by a highly toxic substance he was exposed to in the swampland.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31665-02.html">Examine the corpse.</Button>
|
||||
<html><body>Corpse of Dwarf:<br>
|
||||
The corpse of male Dwarf, presumedly that of Researcher Krorin. Apparently he lost his life after being poisoned by a highly toxic substance he was exposed to in the swampland.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00031_SecretBuriedInTheSwamp 31665-02.html">Examine the corpse</Button>
|
||||
</body></html>
|
@@ -1,3 +1,3 @@
|
||||
<html><body>Corpse of Dwarf:<br>
|
||||
When you open the backpack that is still on the corpse, you find a waterproof lambskin-covered book. Various memos are written in it, and on one page you find a sloppily drawn Map that seems to be of the Swamp of Screams. Could this be the log mentioned by Mercenary Supplier Abercrombie?
|
||||
<html><body>Corpse of Dwarf:<br>
|
||||
When you open the backpack that is still on the corpse, you find a waterproof lambskin-covered book. Various memos are written in it, and on one page you find a sloppily drawn Map that seems to be of the Swamp of Screams. Could this be the log mentioned by Mercenary Supplier Abercrombie?
|
||||
</body></html>
|
@@ -1,3 +1,3 @@
|
||||
<html><body>Corpse of Dwarf:<br>
|
||||
There's nothing else.
|
||||
<html><body>Corpse of Dwarf:<br>
|
||||
There's nothing else.
|
||||
</body></html>
|
@@ -1,219 +1,212 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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.Q00031_SecretBuriedInTheSwamp;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Secret Buried in the Swamp (31)
|
||||
* @author janiko
|
||||
*/
|
||||
public final class Q00031_SecretBuriedInTheSwamp extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int ABERCROMBIE = 31555;
|
||||
private static final int FORGOTTEN_MONUMENT_1 = 31661;
|
||||
private static final int FORGOTTEN_MONUMENT_2 = 31662;
|
||||
private static final int FORGOTTEN_MONUMENT_3 = 31663;
|
||||
private static final int FORGOTTEN_MONUMENT_4 = 31664;
|
||||
private static final int CORPSE_OF_DWARF = 31665;
|
||||
// Items
|
||||
private static final int KRORINS_JOURNAL = 7252;
|
||||
// Misc
|
||||
private static final int MIN_LVL = 66;
|
||||
// Monuments
|
||||
private static final List<Integer> MONUMENTS = Arrays.asList(FORGOTTEN_MONUMENT_1, FORGOTTEN_MONUMENT_2, FORGOTTEN_MONUMENT_3, FORGOTTEN_MONUMENT_4);
|
||||
|
||||
public Q00031_SecretBuriedInTheSwamp()
|
||||
{
|
||||
super(31, Q00031_SecretBuriedInTheSwamp.class.getSimpleName(), "Secret Buried in the Swamp");
|
||||
addStartNpc(ABERCROMBIE);
|
||||
addTalkId(ABERCROMBIE, CORPSE_OF_DWARF);
|
||||
addTalkId(MONUMENTS);
|
||||
registerQuestItems(KRORINS_JOURNAL);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
String htmltext = null;
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "31555-02.html":
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "31665-02.html":
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
giveItems(player, KRORINS_JOURNAL, 1);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "31555-05.html":
|
||||
{
|
||||
if (qs.isCond(2) && hasQuestItems(player, KRORINS_JOURNAL))
|
||||
{
|
||||
takeItems(player, KRORINS_JOURNAL, -1);
|
||||
qs.setCond(3, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "31661-02.html":
|
||||
case "31662-02.html":
|
||||
case "31663-02.html":
|
||||
case "31664-02.html":
|
||||
{
|
||||
if (MONUMENTS.contains(npc.getId()) && qs.isCond(MONUMENTS.indexOf(npc.getId()) + 3))
|
||||
{
|
||||
qs.setCond(qs.getCond() + 1, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "31555-08.html":
|
||||
{
|
||||
if (qs.isCond(7))
|
||||
{
|
||||
addExpAndSp(player, 490000, 45880);
|
||||
giveAdena(player, 120000, true);
|
||||
qs.exitQuest(false, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
switch (npc.getId())
|
||||
{
|
||||
case ABERCROMBIE:
|
||||
{
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = (player.getLevel() >= MIN_LVL) ? "31555-01.htm" : "31555-03.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
htmltext = "31555-02.html";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
if (hasQuestItems(player, KRORINS_JOURNAL))
|
||||
{
|
||||
htmltext = "31555-04.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
htmltext = "31555-06.html";
|
||||
break;
|
||||
}
|
||||
case 7:
|
||||
{
|
||||
htmltext = "31555-07.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case CORPSE_OF_DWARF:
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
htmltext = "31665-01.html";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
htmltext = "31665-03.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case FORGOTTEN_MONUMENT_1:
|
||||
case FORGOTTEN_MONUMENT_2:
|
||||
case FORGOTTEN_MONUMENT_3:
|
||||
case FORGOTTEN_MONUMENT_4:
|
||||
{
|
||||
final int loc = MONUMENTS.indexOf(npc.getId()) + 3;
|
||||
if (qs.isCond(loc))
|
||||
{
|
||||
htmltext = npc.getId() + "-01.html";
|
||||
}
|
||||
else if (qs.isCond(loc + 1))
|
||||
{
|
||||
htmltext = npc.getId() + "-03.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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.Q00031_SecretBuriedInTheSwamp;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Secret Buried in the Swamp (31)
|
||||
* @author janiko
|
||||
*/
|
||||
public final class Q00031_SecretBuriedInTheSwamp extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int ABERCROMBIE = 31555;
|
||||
private static final int FORGOTTEN_MONUMENT_1 = 31661;
|
||||
private static final int FORGOTTEN_MONUMENT_2 = 31662;
|
||||
private static final int FORGOTTEN_MONUMENT_3 = 31663;
|
||||
private static final int FORGOTTEN_MONUMENT_4 = 31664;
|
||||
private static final int CORPSE_OF_DWARF = 31665;
|
||||
// Items
|
||||
private static final int KRORINS_JOURNAL = 7252;
|
||||
// Misc
|
||||
private static final int MIN_LVL = 66;
|
||||
// Monuments
|
||||
private static final List<Integer> MONUMENTS = Arrays.asList(FORGOTTEN_MONUMENT_1, FORGOTTEN_MONUMENT_2, FORGOTTEN_MONUMENT_3, FORGOTTEN_MONUMENT_4);
|
||||
|
||||
public Q00031_SecretBuriedInTheSwamp()
|
||||
{
|
||||
super(31);
|
||||
addStartNpc(ABERCROMBIE);
|
||||
addTalkId(ABERCROMBIE, CORPSE_OF_DWARF);
|
||||
addTalkId(MONUMENTS);
|
||||
registerQuestItems(KRORINS_JOURNAL);
|
||||
addCondMinLevel(MIN_LVL, "31555-03.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
String htmltext = null;
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "31555-02.html":
|
||||
{
|
||||
st.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "31665-02.html":
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
st.setCond(2, true);
|
||||
giveItems(player, KRORINS_JOURNAL, 1);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "31555-05.html":
|
||||
{
|
||||
if (st.isCond(2) && hasQuestItems(player, KRORINS_JOURNAL))
|
||||
{
|
||||
takeItems(player, KRORINS_JOURNAL, -1);
|
||||
st.setCond(3, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "31661-02.html":
|
||||
case "31662-02.html":
|
||||
case "31663-02.html":
|
||||
case "31664-02.html":
|
||||
{
|
||||
if (MONUMENTS.contains(npc.getId()) && st.isCond(MONUMENTS.indexOf(npc.getId()) + 3))
|
||||
{
|
||||
st.setCond(st.getCond() + 1, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "31555-08.html":
|
||||
{
|
||||
if (st.isCond(7))
|
||||
{
|
||||
giveAdena(player, 343430, true);
|
||||
if (player.getLevel() >= MIN_LVL)
|
||||
{
|
||||
addExpAndSp(player, 1_650_970, 396);
|
||||
}
|
||||
st.exitQuest(false, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case ABERCROMBIE:
|
||||
{
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = "31555-03.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
htmltext = "31555-02.html";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
if (hasQuestItems(player, KRORINS_JOURNAL))
|
||||
{
|
||||
htmltext = "31555-04.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
htmltext = "31555-06.html";
|
||||
break;
|
||||
}
|
||||
case 7:
|
||||
{
|
||||
htmltext = "31555-07.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case CORPSE_OF_DWARF:
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "31665-01.html";
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
htmltext = "31665-03.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case FORGOTTEN_MONUMENT_1:
|
||||
case FORGOTTEN_MONUMENT_2:
|
||||
case FORGOTTEN_MONUMENT_3:
|
||||
case FORGOTTEN_MONUMENT_4:
|
||||
{
|
||||
final int loc = MONUMENTS.indexOf(npc.getId()) + 3;
|
||||
if (st.isCond(loc))
|
||||
{
|
||||
htmltext = npc.getId() + "-01.html";
|
||||
}
|
||||
else if (st.isCond(loc + 1))
|
||||
{
|
||||
htmltext = npc.getId() + "-03.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user