Skip to content
Snippets Groups Projects
Commit 178c6bc5 authored by Adry_85's avatar Adry_85
Browse files

Retail-like quest The Ocean of Distant Stars (117)

parent 14a17f07
No related branches found
No related tags found
No related merge requests found
Showing
with 42 additions and 151 deletions
......@@ -212,7 +212,6 @@ quests/25_HidingBehindTheTruth/__init__.py
quests/60_GoodWorkReward/__init__.py
quests/65_CertifiedSoulBreaker/__init__.py
quests/66_CertifiedArbalester/__init__.py
quests/117_OceanOfDistantStar/__init__.py
quests/118_ToLeadAndBeLed/__init__.py
quests/120_PavelsResearch/__init__.py
quests/123_TheLeaderAndTheFollower/__init__.py
......
<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 117_OceanOfDistantStar 2">"Ask what the problem is."</a>
</body></html>
\ No newline at end of file
#Made by Ethernaly ethernaly@email.it
import sys
from com.l2jserver.gameserver.model.quest import State
from com.l2jserver.gameserver.model.quest import QuestState
from com.l2jserver.gameserver.model.quest import Quest as JQuest
qn = "117_OceanOfDistantStar"
#NPC
ABEY = 32053
GHOST = 32055
GHOST_F = 32054
OBI = 32052
BOX = 32076
#QUEST ITEM, CHANCE and REWARD
GREY_STAR = 8495
ENGRAVED_HAMMER = 8488
CHANCE = 38
class Quest (JQuest) :
def __init__(self,id,name,descr):
JQuest.__init__(self,id,name,descr)
self.questItemIds = [GREY_STAR]
def onAdvEvent (self,event,npc, player) :
htmltext = event
st = player.getQuestState(qn)
if not st : return
if event == "1" :
htmltext = "0a.htm"
st.set("cond","1")
st.setState(State.STARTED)
st.playSound("ItemSound.quest_accept")
if event == "2" :#and cond == 1
htmltext="1a.htm"
st.set("cond","2")
if event == "3" :#and cond == 2
htmltext="2a.htm"
st.set("cond","3")
if event == "4" :#and cond == 3
htmltext="3a.htm"
st.set("cond","4")
if event == "5" :#and cond == 4
htmltext="4a.htm"
st.set("cond","5")
st.giveItems(ENGRAVED_HAMMER,1)
if event == "6" and st.getQuestItemsCount(ENGRAVED_HAMMER) :
htmltext="5a.htm"
st.set("cond","6")
if event == "7" and st.getQuestItemsCount(ENGRAVED_HAMMER) :
htmltext="6a.htm"
st.set("cond","7")
if event == "8" and st.getQuestItemsCount(GREY_STAR) :
htmltext="7a.htm"
st.takeItems(GREY_STAR,1)
st.set("cond","9")
if event == "9" and st.getQuestItemsCount(ENGRAVED_HAMMER) :
htmltext="8a.htm"
st.takeItems(ENGRAVED_HAMMER,1)
st.set("cond","10")
if event == "10" :
htmltext="9b.htm"
st.giveItems(57,17647)
st.addExpAndSp(107387,7369)
st.playSound("ItemSound.quest_finish")
st.setState(State.COMPLETED)
st.exitQuest(False)
return htmltext
def onTalk(self, npc, player):
st = player.getQuestState(qn)
if not st : return htmltext
npcId=npc.getId()
htmltext = Quest.getNoQuestMsg(player)
id = st.getState()
if id == State.COMPLETED:
htmltext = Quest.getAlreadyCompletedMsg(player)
elif id == State.CREATED and npcId == ABEY :
if st.getPlayer().getLevel() >= 39 :
htmltext = "0.htm" #event 1
else:
st.exitQuest(1)
htmltext = "<html><body>This quest can only be taken by characters that have a minimum level of 39. Return when you are more experienced.</body></html>"
elif id == State.STARTED :
cond = int(st.get("cond"))
if npcId == GHOST :
if cond == 1 :
htmltext = "1.htm" #to event 2
elif cond == 9 and st.getQuestItemsCount(ENGRAVED_HAMMER) :
htmltext = "8.htm" #to event 9
if npcId == OBI :
if cond == 2 :
htmltext = "2.htm" #to event 3
elif cond == 6 and st.getQuestItemsCount(ENGRAVED_HAMMER) :
htmltext = "6.htm" #to event 7
elif cond == 7 and st.getQuestItemsCount(ENGRAVED_HAMMER) :
htmltext = "6a.htm" #to event 7
elif cond == 8 and st.getQuestItemsCount(GREY_STAR) :
htmltext = "7.htm" #to event 8
if npcId == ABEY :
if cond == 3 :
htmltext = "3.htm" #to event 4
elif cond == 5 and st.getQuestItemsCount(ENGRAVED_HAMMER) :
htmltext = "5.htm" #to event 6
elif cond == 6 and st.getQuestItemsCount(ENGRAVED_HAMMER) :
htmltext = "5a.htm" #to event 6
if npcId == BOX and cond == 4 :
htmltext = "4.htm" #to event 5
if npcId == GHOST_F and cond == 10 :
htmltext = "9.htm" #link to 9a.htm so link to event 10
return htmltext
def onKill(self,npc,player,isPet):
st = player.getQuestState(qn)
if st :
if st.getState() == State.STARTED :
count = st.getQuestItemsCount(GREY_STAR)
if st.getInt("cond") == 7 and count < 1 and self.getRandom(100)<CHANCE :
st.giveItems(GREY_STAR,1)
st.playSound("ItemSound.quest_itemget")
st.set("cond","8")
return
QUEST=Quest(117,qn,"Ocean Of Distant Star")
QUEST.addStartNpc(ABEY)
QUEST.addTalkId (ABEY)
QUEST.addTalkId(GHOST)
QUEST.addTalkId(OBI)
QUEST.addTalkId(BOX)
QUEST.addTalkId(GHOST_F)
for MOBS in [22023,22024]:
QUEST.addKillId(MOBS)
\ No newline at end of file
<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 117_OceanOfDistantStar 3">"You see, there was this ghost..."</a>
<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32052-02.html">"You see, there was this ghost..."</a>
</body></html>
\ No newline at end of file
<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>
\ No newline at end of file
<html><body>Railroad Worker Obi:<br>
Hmmmm...? A hammer? Let me see...<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 117_OceanOfDistantStar 7">"Tell me about the Sky Wagon."</a>
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>
\ No newline at end of file
<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>
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>
\ No newline at end of file
<html><body>Railroad Worker Obi:<br>
Oh, you brought the book! Yes, I remember now!<br>
The Sky Wagon was planed 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 Guild's pressure.<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 117_OceanOfDistantStar 8">"Yes."</a>
<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32052-07.html">"Yes."</a>
</body></html>
\ No newline at end of file
......@@ -2,5 +2,5 @@
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 belive 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.
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>
\ No newline at end of file
<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>
\ No newline at end of file
<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>
\ No newline at end of file
<html><body>Railroad Worker Abey:<br>
Hey stranger, would you do me a favor?<br>
I keep hearing strange noises around here every night!<br1>
Obi says he doesn't know anything about it.<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 117_OceanOfDistantStar 1">"I'll do it."</a>
<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32053-02.htm">"I'll do it."</a>
</body></html>
\ No newline at end of file
<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>
\ No newline at end of file
<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>
\ No newline at end of file
<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 117_OceanOfDistantStar 4">"Well, you see, there was this Dwarven ghost, and a strange hammer..."</a>
<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>
\ No newline at end of file
<html><body>Railroad Worker Abey:<br>
A ghost? Eeek!<br><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.
......
<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>
\ No newline at end of file
......@@ -3,5 +3,5 @@ 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 117_OceanOfDistantStar 6">"I'll do it."</a>
<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32053-09.html">"I'll do it."</a>
</body></html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment