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>Railroad Worker Obi:<br>
I've been watching you for a while now, and you talk to yourself a lot! Is that normal where you come from, talking to yourself?<br>
<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32052-02.html">"You see, there was this ghost..."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Railroad Worker Obi:<br>
What? A ghost? Huh...?<br>
I have no idea! Why don't you ask <font color="LEVEL">Abey</font> when she wakes up later?
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Railroad Worker Obi:<br>
A ghost, huh? I don't know. Why don't you ask <font color="LEVEL">Abey</font> when she wakes up later?
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Railroad Worker Obi:<br>
Hmmmm....? A hammer? Let me see...<br>
What? This is really old! I haven't seen this kind of hammer in a long time!<br>
So, this pillar, I'm sure you know, stands for our Gray Pillar Guild. And the star that is connected to this column, you see the two lines between them?<br> These lines symbolize the railroad. Basically, it means, <font color="LEVEL">the railroad that reaches the stars and the Sky Wagon that runs on it. They actually had plans for one back then!</font><br>
<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32052-05.html">"Tell me about the Sky Wagon."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Railroad Worker Obi:<br>
You want to know about the Sky Wagon, eh? There used to be a book about it around here somewhere... Oh yeah, the bandit stole it! It's a <font color="LEVEL">thin book with a grey cover</font>...<br>
<font color="LEVEL">The Bandit Warrior or Inspector</font> could tell you more about that book.
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Railroad Worker Obi:<br>
Oh, you brought the book! Yes, I remember now!<br>
The Sky Wagon was planned by the giants of the Age of Titans! After they were extinct, the Dwarves proceeded with the plan as if it were their own!<br>
But once the Dwarf King was dead and the Elders started governing the Dwarves, the plan was shelved because of other Guilds' pressure.<br>
Those were sad days indeed! So much potential income gone to waste...<br>
This hammer comes from that time! So... The ghost told you to bring me this hammer?<br>
<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32052-07.html">"Yes."</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Railroad Worker Obi:<br>
Humm...! Then... That must be the ghost of someone who actually worked on the Sky Train project!<br>
Our train station was built to transport the raw materials for the construction of the Sky Train...<br>
The project suffered from cost overruns and had to be shut down. Now only abandoned ruins remain.<br>
One could say these hammers symbolize the dreams of those ancient Dwarves. I don't believe in ghosts but I'll bet this hammer meant a lot to him! I'll tell Abey what we've learned... Take the hammer and give it to the <font color="LEVEL">ghost</font> next time you see him.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Railroad Worker Obi:<br>
About the Sky Wagon... I don't really remember much, but there was a book here about it around here... Oh yes! It was stolen by bandits not too long ago. It was thin with a gray cover...<br>
I'll bet the <font color="LEVEL">Bandit Leaders or Warriors</font> will know about the book.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Railroad Worker Obi:<br>
I think it best to return that hammer to that <font color="LEVEL">ghost</font> that's been hanging around here.
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Railroad Worker Abey:<br>
Hey stranger, would you do me a favor?<br>
I keep hearing strange noises around here every night! Obi says he doesn't know anything about it.<br>
Could you find out what's going on around here?<br>
<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32053-02.htm">"I'll do it."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Railroad Worker Abey:<br>
Oh, thank you! I haven't slept in weeks! I'm afraid those noises might mean something very bad!<br>
I'm sure you'll make it possible for me to finally get a good night's sleep! Good luck!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Railroad Worker Abey:<br>
Well, to tell you the truth, I don't think you're up to it! I can see you have some experience, but not enough. Come back later.<br>
(Characters must have achieved at least level 39 to undertake this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Railroad Worker Abey:<br>
Please, check out what is making all the noises around here at night.<br>
I'm sure you'll make it possible for me to sleep like a baby tonight!
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Railroad Worker Abey:<br>
Well, you must have done a good job! I slept like a log last night!<br>
What was making that noise?<br>
<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32053-06.html">"Well, you see, there was this Dwarven ghost, and a strange hammer..."</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Railroad Worker Abey:<br>
A ghost? Eeek!<br><br><br>
Oh, excuse me! I'm so sorry! I'm just deathly afraid of ghosts!<br>
But... The hammer! If we find that hammer, the ghost will go away, right?<br>
... I think it's in a <font color="LEVEL">box in the back</font>. We keep a lot of old odds-and-ends in there.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Railroad Worker Abey:<br>
That hammer might be in the <font color="LEVEL">box in the back</font>. We keep a lot of old odds-and-ends there.
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Railroad Worker Abey:<br>
Is this the hammer? Wow! Look how rusty it is!<br>
It seems familiar to me somehow. The Black Anvil doesn't use hammers this large, but our Grey Pillar Guild does!<br>
These engravings are also of the Grey Pillar... But what are those strange stars?<br>
Oh! I've got it! I think Obi might know! <font color="LEVEL">Obi</font> has been working here for a long time. Why don't you go ask him about it?<br>
<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32053-09.html">"I'll do it."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Railroad Worker Abey:<br>
Please go and ask <font color="LEVEL">Obi</font> about that hammer!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Railroad Worker Abey:<br>
Railroad worker <font color="LEVEL">Obi</font> must know about that hammer!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ghost of the Railroad Engineer:<br>
What brought you to me, you of the living?<br>
<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32054-02.html">Talk about the hammer and the ghost.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Ghost of the Railroad Engineer:<br>
As you can see, there are many ghosts here who once were Dwarves. We worked to a common purpose: the dream of building an air trolley. We wanted to visit the Sea of Stars and the Palace of the Gods...<br>
But the Giants left, and we died one by one here. We refused Shilen's call in favor of our own ambition, but in the end, we failed.<br>
<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32054-03.html">Ask why.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Ghost of the Railroad Engineer:<br>
It is as you see... we are all dead and cannot hold a hammer. When we realized we could no longer work, we started to go insane, and this is the result.<br>
The ghost you spoke with was a good man once, and strong, so he may outlast many of us. Still, it's just a matter of time, as it was with me.<br>
May I ask a favor of you? This is just between us...
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Ghost of the Ancient Railroad Engineer:<br>
You can hear me? Truly? At last! It has been so long since anyone has been able to see or hear me. That gal over there - I've been calling to her for ages, and she doesn't even know I exist!<br>
I need your help. Please, please listen to what I ask.<br>
<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32055-02.html">Ask what the problem is</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Ghost of the Ancient Railroad Engineer:<br>
...Hm? Ah, sorry, I forgot what I was saying. Don't be alarmed, I am a ghost. Oh, you can tell? Yes, I guess you could, come to think of it. The translucency and the echoing voice are, pardon the expression, dead giveaways. Well, I'm stuck in this place because I lost my tools... a terrible error for an engineer to make.<br>
I think I might have left it somewhere in this railroad station. I recall a <font color="LEVEL">hammer with engravings on the handle</font>. Do you think you can find it for me?<br>
I think that <font color="LEVEL">any railroad worker</font> would probably know where it is.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ghost of the Ancient Railroad Engineer:<br>
Somewhere in this railroad station, I think there is a <font color="LEVEL">hammer with engravings on its handle</font>.<br>
<font color="LEVEL">I think one of the railroad workers</font> knows where it is.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ghost of the Ancient Railroad Engineer:<br>
Yes, that's it! That's the hammer! I have missed it so... I brought that hammer with me when I first set foot on this land. Would you please hand it to me?<br>
<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32055-05.html">Give him the hammer.</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>(The hammer falls right through his hand onto the ground. It breaks with a thud.)<br>
Ghost of the Anciant Railroad Engineer:<br>
Oh, woe! I can't hold it! I can't hold it!<br>
I thought I could hold at least this hammer if nothing else! My own good hammer, and I have no hand to hold it...<br>
Well, there is nothing I can do about it. My last hope is dashed. All I can do is wait here for Shilen's call...<br>
One last favor, living ones — could you <font color="LEVEL">please go to the Trolley Ruins and meet my friend for me?</font> I am too weak to go see him now.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Ghost of the Ancient Railroad Engineer:<br>
Where is my hammer? Did I drop it somewhere?
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Ghost of the Ancient Railroad Engineer:<br>
I can move no more. Could you <font color="LEVEL">please go to the Trolley Ruins and meet my friend for me?</font> I am too weak to go see him now. Please...a favor for an old, harmless ghost.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Box:<br>
The box contains odds-and-ends and a large hammer.<br>
<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32076-02.html">Pick up the hammer</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Box:<br>
As you pick up the hammer, you hear the sound of breaking glass coming from the box.<br>
The hammer is quite large, with a pillar and stars engraved upon the handle.<br>
Take it to <font color="LEVEL">Railroad Worker Abey</font>.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Box:<br>
There's only junk in the box. Go see <font color="LEVEL">Railroad Worker Abey</font>.
</body></html>

View File

@@ -0,0 +1,360 @@
/*
* 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.Q00117_TheOceanOfDistantStars;
import java.util.HashMap;
import java.util.Map;
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.util.Util;
/**
* The Ocean of Distant Stars (117)
* @author Adry_85
*/
public final class Q00117_TheOceanOfDistantStars extends Quest
{
// NPCs
private static final int OBI = 32052;
private static final int ABEY = 32053;
private static final int GHOST_OF_A_RAILROAD_ENGINEER = 32054;
private static final int GHOST_OF_AN_ANCIENT_RAILROAD_ENGINEER = 32055;
private static final int BOX = 32076;
// Items
private static final int ENGRAVED_HAMMER = 8488;
private static final int BOOK_OF_GREY_STAR = 8495;
// Misc
private static final int MIN_LEVEL = 39;
// Monsters
private static final int BANDIT_WARRIOR = 22023;
private static final int BANDIT_INSPECTOR = 22024;
private static final Map<Integer, Double> MONSTER_DROP_CHANCES = new HashMap<>();
static
{
MONSTER_DROP_CHANCES.put(BANDIT_WARRIOR, 0.179);
MONSTER_DROP_CHANCES.put(BANDIT_INSPECTOR, 0.1);
}
public Q00117_TheOceanOfDistantStars()
{
super(117, Q00117_TheOceanOfDistantStars.class.getSimpleName(), "The Ocean of Distant Stars");
addStartNpc(ABEY);
addTalkId(ABEY, GHOST_OF_A_RAILROAD_ENGINEER, GHOST_OF_AN_ANCIENT_RAILROAD_ENGINEER, BOX, OBI);
addKillId(BANDIT_WARRIOR, BANDIT_INSPECTOR);
registerQuestItems(ENGRAVED_HAMMER, BOOK_OF_GREY_STAR);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "32053-02.htm":
{
qs.setMemoState(1);
qs.startQuest();
htmltext = event;
break;
}
case "32053-06.html":
{
if (qs.isMemoState(3))
{
qs.setMemoState(4);
qs.setCond(4, true);
htmltext = event;
}
break;
}
case "32053-09.html":
{
if (qs.isMemoState(5) && hasQuestItems(player, ENGRAVED_HAMMER))
{
qs.setMemoState(6);
qs.setCond(6, true);
htmltext = event;
}
break;
}
case "32054-02.html":
{
if (qs.isMemoState(9))
{
htmltext = event;
}
break;
}
case "32054-03.html":
{
if (qs.isMemoState(9))
{
giveAdena(player, 17647, true);
addExpAndSp(player, 107387, 7369);
qs.exitQuest(false, true);
htmltext = event;
}
break;
}
case "32055-02.html":
{
if (qs.isMemoState(1))
{
qs.setMemoState(2);
qs.setCond(2, true);
htmltext = event;
}
break;
}
case "32055-05.html":
{
if (qs.isMemoState(8))
{
if (hasQuestItems(player, ENGRAVED_HAMMER))
{
qs.setMemoState(9);
qs.setCond(10, true);
takeItems(player, ENGRAVED_HAMMER, -1);
htmltext = event;
}
else
{
htmltext = "32055-06.html";
}
}
break;
}
case "32076-02.html":
{
if (qs.isMemoState(4))
{
qs.setMemoState(5);
qs.setCond(5, true);
giveItems(player, ENGRAVED_HAMMER, 1);
htmltext = event;
}
break;
}
case "32052-02.html":
{
if (qs.isMemoState(2))
{
qs.setMemoState(3);
qs.setCond(3, true);
htmltext = event;
}
break;
}
case "32052-05.html":
{
if (qs.isMemoState(6))
{
qs.setMemoState(7);
qs.setCond(7, true);
htmltext = event;
}
break;
}
case "32052-07.html":
{
if (qs.isMemoState(7) && hasQuestItems(player, BOOK_OF_GREY_STAR))
{
qs.setMemoState(8);
qs.setCond(9, true);
takeItems(player, BOOK_OF_GREY_STAR, -1);
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getRandomPartyMemberState(killer, 7, 3, npc);
if ((qs == null) || !Util.checkIfInRange(1500, npc, killer, true))
{
return null;
}
if (giveItemRandomly(killer, npc, BOOK_OF_GREY_STAR, 1, 1, MONSTER_DROP_CHANCES.get(npc.getId()), true))
{
qs.setCond(8);
}
return super.onKill(npc, killer, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (qs.isCompleted())
{
if (npc.getId() == ABEY)
{
htmltext = getAlreadyCompletedMsg(player);
}
}
else if (qs.isCreated())
{
htmltext = (player.getLevel() >= MIN_LEVEL) ? "32053-01.htm" : "32053-03.htm";
}
else if (qs.isStarted())
{
switch (npc.getId())
{
case ABEY:
{
switch (qs.getMemoState())
{
case 1:
{
htmltext = "32053-04.html";
break;
}
case 3:
{
htmltext = "32053-05.html";
break;
}
case 4:
{
htmltext = "32053-07.html";
break;
}
case 5:
{
if (hasQuestItems(player, ENGRAVED_HAMMER))
{
htmltext = "32053-08.html";
}
break;
}
case 6:
{
htmltext = "32053-10.html";
break;
}
}
break;
}
case GHOST_OF_A_RAILROAD_ENGINEER:
{
if (qs.isMemoState(9))
{
htmltext = "32054-01.html";
}
break;
}
case GHOST_OF_AN_ANCIENT_RAILROAD_ENGINEER:
{
switch (qs.getMemoState())
{
case 1:
{
htmltext = "32055-01.html";
break;
}
case 2:
{
htmltext = "32055-03.html";
break;
}
case 8:
{
htmltext = "32055-04.html";
break;
}
case 9:
{
htmltext = "32055-07.html";
break;
}
}
break;
}
case BOX:
{
if (qs.isMemoState(4))
{
htmltext = "32076-01.html";
}
else if (qs.isMemoState(5))
{
htmltext = "32076-03.html";
}
break;
}
case OBI:
{
switch (qs.getMemoState())
{
case 2:
{
htmltext = "32052-01.html";
break;
}
case 3:
{
htmltext = "32052-03.html";
break;
}
case 6:
{
htmltext = "32052-04.html";
break;
}
case 7:
{
if (hasQuestItems(player, BOOK_OF_GREY_STAR))
{
htmltext = "32052-06.html";
}
else
{
htmltext = "32052-08.html";
}
break;
}
case 8:
{
htmltext = "32052-09.html";
break;
}
}
break;
}
}
}
return htmltext;
}
}