diff --git a/L2J_DataPack/dist/game/data/scripts.cfg b/L2J_DataPack/dist/game/data/scripts.cfg index 55a68594534bbd282f8d038241ba6911af0b2148..eb33bd5050275c65743186d4ae151f1921dae732 100644 --- a/L2J_DataPack/dist/game/data/scripts.cfg +++ b/L2J_DataPack/dist/game/data/scripts.cfg @@ -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 diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/0.htm b/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/0.htm deleted file mode 100644 index 8a6971a478cbaf389fc6505bd94f47c11f54f259..0000000000000000000000000000000000000000 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/0.htm +++ /dev/null @@ -1,7 +0,0 @@ -<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> -Could you find out what's going on around here?<br> -<a action="bypass -h Quest 117_OceanOfDistantStar 1">"I'll do it."</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/1.htm b/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/1.htm deleted file mode 100644 index 4bdc3ef9a3012913c565c8a28c252f7615726324..0000000000000000000000000000000000000000 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/1.htm +++ /dev/null @@ -1,5 +0,0 @@ -<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 diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/1a.htm b/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/1a.htm deleted file mode 100644 index 93759a796052f81d024f536e84f77e32e08cd7a6..0000000000000000000000000000000000000000 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/1a.htm +++ /dev/null @@ -1,5 +0,0 @@ -<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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/4.htm b/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/4.htm deleted file mode 100644 index dc7ed1cc019f486d664a39fb540a9bde719965a3..0000000000000000000000000000000000000000 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/4.htm +++ /dev/null @@ -1,4 +0,0 @@ -<html><body>Box:<br> -The box contains odds-and-ends and a large hammer.<br> -<a action="bypass -h Quest 117_OceanOfDistantStar 5">"Pick up the hammer."</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/6.htm b/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/6.htm deleted file mode 100644 index ca8fa7292d8b92101f9c87c444fa85f656af529f..0000000000000000000000000000000000000000 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/6.htm +++ /dev/null @@ -1,7 +0,0 @@ -<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 117_OceanOfDistantStar 7">"Tell me about the Sky Wagon."</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/8a.htm b/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/8a.htm deleted file mode 100644 index 0a07dc0ef5cf886951fe2bf458681b6356ff5f7a..0000000000000000000000000000000000000000 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/8a.htm +++ /dev/null @@ -1,8 +0,0 @@ -<html><body> -(The hammer falls right through his hand onto the ground. It breaks with a thud.)<br> -Ghost of the Ancient Railroad Engineer:<br> -Oh, wow! 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 one: 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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/9.htm b/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/9.htm deleted file mode 100644 index 26fb93be38a4486a04c47c6e97dd1be8ec54877f..0000000000000000000000000000000000000000 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/9.htm +++ /dev/null @@ -1,4 +0,0 @@ -<html><body>Ghost of the Railroad Engineer:<br> -What brought you to me, you of the living?<br> -<a action="bypass -h Quest 117_OceanOfDistantStar 9a.htm">"Talk about the hammer and the ghost."</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/9a.htm b/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/9a.htm deleted file mode 100644 index 0ebc82a87c332d57f6b049f9a3f1644e2ed2e756..0000000000000000000000000000000000000000 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/9a.htm +++ /dev/null @@ -1,5 +0,0 @@ -<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 bulding 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 Shilien's call in favor of our own ambition, but in the end, we failed.<br> -<a action="bypass -h Quest 117_OceanOfDistantStar 10">"Ask why."</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/__init__.py b/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/__init__.py deleted file mode 100644 index 97c054e6c19df1431fd7d0be9ebac6daf9f9c9a9..0000000000000000000000000000000000000000 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/__init__.py +++ /dev/null @@ -1,136 +0,0 @@ -#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 diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/2.htm b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-01.html similarity index 61% rename from L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/2.htm rename to L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-01.html index 60cb2ffed8443767c2b898530d574e96e576c47b..023b9012010f883c28cd7eda67ed31c44d5aad65 100644 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/2.htm +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-01.html @@ -1,4 +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 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 diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/2a.htm b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-02.html similarity index 100% rename from L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/2a.htm rename to L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-02.html diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-03.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-03.html new file mode 100644 index 0000000000000000000000000000000000000000..8feb413a1938d379912f861c6c6bfe8956d490f7 --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-03.html @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-04.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-04.html new file mode 100644 index 0000000000000000000000000000000000000000..33c2b039fe9017abdc7a581e92e84818474e6318 --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-04.html @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/6a.htm b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-05.html similarity index 60% rename from L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/6a.htm rename to L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-05.html index bfd6e9e599d7a0c7cb84710dc957bee9b2597e59..9ee435bb5726fc408cf672579602e223f56f8334 100644 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/6a.htm +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-05.html @@ -1,4 +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> +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 diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/7.htm b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-06.html similarity index 52% rename from L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/7.htm rename to L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-06.html index 0b3c7b7a4f2fc776bd7521b9f0d8866247ea969b..65f473aa8e4b74ee64b677ea4a56ffe52562d9d9 100644 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/7.htm +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-06.html @@ -1,8 +1,8 @@ <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 diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/7a.htm b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-07.html similarity index 66% rename from L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/7a.htm rename to L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-07.html index 608f8374f4649eea45c5f98ad2ff36a56fe9b137..c103b5e6e2fc19dbafe2f574b5f35e99559aa57d 100644 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/7a.htm +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-07.html @@ -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 diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-08.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-08.html new file mode 100644 index 0000000000000000000000000000000000000000..2de238bb04c9a9865afa39d19a5b2326967d5596 --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-08.html @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-09.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-09.html new file mode 100644 index 0000000000000000000000000000000000000000..94c2b878117d262a4f7e0b84c18a396a9fefd35a --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32052-09.html @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-01.htm b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-01.htm new file mode 100644 index 0000000000000000000000000000000000000000..e47870c587ed4f7646756d729663817299f1462b --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-01.htm @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/0a.htm b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-02.htm similarity index 100% rename from L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/0a.htm rename to L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-02.htm diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-03.htm b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-03.htm new file mode 100644 index 0000000000000000000000000000000000000000..4075d2feabac6dc5cb93d1ce2f70702720cdd110 --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-03.htm @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-04.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-04.html new file mode 100644 index 0000000000000000000000000000000000000000..4d9c7804626ad0a542b8bd4e551850a4472cf9f5 --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-04.html @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/3.htm b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-05.html similarity index 50% rename from L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/3.htm rename to L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-05.html index bacc850d7eda8cacb4fa27d6a3fe0cabffff3dce..0db87c47cf91a3b2e92bfadbdb10c2e13ba0442a 100644 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/3.htm +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-05.html @@ -1,5 +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 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 diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/3a.htm b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-06.html similarity index 90% rename from L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/3a.htm rename to L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-06.html index 0a787c19d0b9abeab33613f17affbd31c17170ce..ff5f571e232c8124eea807f2dbffd57d3863a035 100644 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/3a.htm +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-06.html @@ -1,5 +1,5 @@ <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. diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-07.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-07.html new file mode 100644 index 0000000000000000000000000000000000000000..04174257ed75b49d27ce27890aba7a9eb51dca63 --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-07.html @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/5.htm b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-08.html similarity index 82% rename from L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/5.htm rename to L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-08.html index e5ed38ade37b1a32f9b15cf8e7e4fe98af1f7841..7b1fd260f2e7a2fa093f25f14e4bc1e9a6dad2b0 100644 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/5.htm +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-08.html @@ -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 diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/5a.htm b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-09.html similarity index 100% rename from L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/5a.htm rename to L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-09.html diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-10.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-10.html new file mode 100644 index 0000000000000000000000000000000000000000..e65ce19362f74ee678435d1ffb3f220eb33a1724 --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32053-10.html @@ -0,0 +1,3 @@ +<html><body>Railroad Worker Abey:<br> +Railroad worker <font color="LEVEL">Obi</font> must know about that hammer! +</body></html> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32054-01.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32054-01.html new file mode 100644 index 0000000000000000000000000000000000000000..49329caba2d5b663340ab326252eac5f8468abdf --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32054-01.html @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32054-02.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32054-02.html new file mode 100644 index 0000000000000000000000000000000000000000..29e41c00d429d16d700f9c6ff8eb3bf71a27118b --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32054-02.html @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/9b.htm b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32054-03.html similarity index 83% rename from L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/9b.htm rename to L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32054-03.html index 2474761deaaddf6095e289cc9eab846dbb2be237..b21fa156993980690ed5e918260082dacc62a1ff 100644 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/9b.htm +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32054-03.html @@ -1,5 +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> +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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-01.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-01.html new file mode 100644 index 0000000000000000000000000000000000000000..5428209dc56854dd5ebfc450c423993b7a9449a1 --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-01.html @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-02.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-02.html new file mode 100644 index 0000000000000000000000000000000000000000..807c2acd5042898a1292663645550b1ecd56bed9 --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-02.html @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-03.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-03.html new file mode 100644 index 0000000000000000000000000000000000000000..b50ef79d993c6d50cfafe756d707bbf31b83ba8d --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-03.html @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/8.htm b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-04.html similarity index 69% rename from L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/8.htm rename to L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-04.html index 7efc09aaca46ca9a07dff61b040476ab5ccca7d0..e7895529ec6b1a701aa2e139ec0321a76e7e628f 100644 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/8.htm +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-04.html @@ -1,4 +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 117_OceanOfDistantStar 9">"Give him the hammer."</a> +<a action="bypass -h Quest Q00117_TheOceanOfDistantStars 32055-05.html">Give him the hammer.</a> </body></html> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-05.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-05.html new file mode 100644 index 0000000000000000000000000000000000000000..1de6acb00b57089173eb74c548a4d42a57734aad --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-05.html @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-06.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-06.html new file mode 100644 index 0000000000000000000000000000000000000000..e5983cc0a83c63269393b6ee23ff70b78d9dada9 --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-06.html @@ -0,0 +1,3 @@ +<html><body>Ghost of the Ancient Railroad Engineer:<br> +Where is my hammer? Did I drop it somewhere? +</body></html> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-07.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-07.html new file mode 100644 index 0000000000000000000000000000000000000000..a5938d4180ee304dfc8eed0bdc4b80c949ac30de --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32055-07.html @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32076-01.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32076-01.html new file mode 100644 index 0000000000000000000000000000000000000000..aef7fb8b2a798ea5ba76550f7ea72ec90f7a39a4 --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32076-01.html @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/4a.htm b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32076-02.html similarity index 76% rename from L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/4a.htm rename to L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32076-02.html index a3eb5349656a8a751c144b63c98d6c3f3d385645..c9935794ba094422c5777cce6b88319cfce8e648 100644 --- a/L2J_DataPack/dist/game/data/scripts/quests/117_OceanOfDistantStar/4a.htm +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32076-02.html @@ -1,5 +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> +Take it to <font color="LEVEL">Railroad Worker Abey</font>. </body></html> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32076-03.html b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32076-03.html new file mode 100644 index 0000000000000000000000000000000000000000..05f4da576ae04dd764eb9d2d7ef035320723523f --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/32076-03.html @@ -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> \ No newline at end of file diff --git a/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/Q00117_TheOceanOfDistantStars.java b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/Q00117_TheOceanOfDistantStars.java new file mode 100644 index 0000000000000000000000000000000000000000..388ce2f22fea0f0fa015c76dba985d6c421e8897 --- /dev/null +++ b/L2J_DataPack/dist/game/data/scripts/quests/Q00117_TheOceanOfDistantStars/Q00117_TheOceanOfDistantStars.java @@ -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, true); + } + 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; + } +} diff --git a/L2J_DataPack/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_DataPack/dist/game/data/scripts/quests/QuestMasterHandler.java index 7554120034d6e1506341481a53822f33b43c5840..e2446b29cf9f2c8cd83a581b987485e5976eedcd 100644 --- a/L2J_DataPack/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_DataPack/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -124,6 +124,7 @@ import quests.Q00113_StatusOfTheBeaconTower.Q00113_StatusOfTheBeaconTower; import quests.Q00114_ResurrectionOfAnOldManager.Q00114_ResurrectionOfAnOldManager; import quests.Q00115_TheOtherSideOfTruth.Q00115_TheOtherSideOfTruth; import quests.Q00116_BeyondTheHillsOfWinter.Q00116_BeyondTheHillsOfWinter; +import quests.Q00117_TheOceanOfDistantStars.Q00117_TheOceanOfDistantStars; import quests.Q00119_LastImperialPrince.Q00119_LastImperialPrince; import quests.Q00121_PavelTheGiant.Q00121_PavelTheGiant; import quests.Q00122_OminousNews.Q00122_OminousNews; @@ -559,6 +560,7 @@ public class QuestMasterHandler Q00114_ResurrectionOfAnOldManager.class, Q00115_TheOtherSideOfTruth.class, Q00116_BeyondTheHillsOfWinter.class, + Q00117_TheOceanOfDistantStars.class, Q00119_LastImperialPrince.class, Q00121_PavelTheGiant.class, Q00122_OminousNews.class, diff --git a/L2J_DataPack/dist/sql/game/updates/20141108update.sql b/L2J_DataPack/dist/sql/game/updates/20141108update.sql new file mode 100644 index 0000000000000000000000000000000000000000..cfcc25a1cfa11eac6661be6178b8a1db339b4e39 --- /dev/null +++ b/L2J_DataPack/dist/sql/game/updates/20141108update.sql @@ -0,0 +1 @@ +UPDATE character_quests SET name='Q00117_TheOceanOfDistantStars' WHERE name='117_OceanOfDistantStar'; \ No newline at end of file