From aba65c547617ddbb9850b9be45213e544e7334f5 Mon Sep 17 00:00:00 2001 From: Adry_85 <Adrya85@hotmail.it> Date: Sat, 22 Dec 2012 13:47:29 +0000 Subject: [PATCH] BETA: Frintezza related quest in Java: * Quest Last Imperial Prince (119). * Quest Journey to a Settlement (654). * Removed Jython versions. --- L2J_DataPack_BETA/dist/game/data/scripts.cfg | 4 +- .../quests/119_LastImperialPrince/31453-1.htm | 5 - .../quests/119_LastImperialPrince/31453-2.htm | 5 - .../quests/119_LastImperialPrince/31453-3.htm | 6 - .../quests/119_LastImperialPrince/31453-4.htm | 4 - .../quests/119_LastImperialPrince/31453-5.htm | 6 - .../quests/119_LastImperialPrince/31453-6.htm | 7 - .../quests/119_LastImperialPrince/31453-7.htm | 4 - .../quests/119_LastImperialPrince/32009-1.htm | 6 - .../quests/119_LastImperialPrince/32009-2.htm | 4 - .../quests/119_LastImperialPrince/32009-3.htm | 7 - .../quests/119_LastImperialPrince/__init__.py | 81 --------- .../654_JourneytoaSettlement/31453-1.htm | 5 - .../654_JourneytoaSettlement/31453-2.htm | 6 - .../654_JourneytoaSettlement/31453-3.htm | 6 - .../654_JourneytoaSettlement/31453-4.htm | 4 - .../654_JourneytoaSettlement/31453-5.htm | 6 - .../654_JourneytoaSettlement/__init__.py | 88 ---------- .../Q00119_LastImperialPrince/31453-01.htm | 4 + .../Q00119_LastImperialPrince/31453-02.htm | 4 + .../Q00119_LastImperialPrince/31453-03.htm | 4 + .../Q00119_LastImperialPrince/31453-04.html | 3 + .../Q00119_LastImperialPrince/31453-05.html | 3 + .../Q00119_LastImperialPrince/31453-06.html | 3 + .../Q00119_LastImperialPrince/31453-07.html | 3 + .../Q00119_LastImperialPrince/31453-08.html | 3 + .../Q00119_LastImperialPrince/31453-09.html | 4 + .../Q00119_LastImperialPrince/31453-10.html | 4 + .../Q00119_LastImperialPrince/31453-11.html | 3 + .../Q00119_LastImperialPrince/32009-01.html | 4 + .../Q00119_LastImperialPrince/32009-02.html | 4 + .../Q00119_LastImperialPrince/32009-03.html | 3 + .../Q00119_LastImperialPrince/32009-04.html | 3 + .../Q00119_LastImperialPrince/32009-05.html | 3 + .../Q00119_LastImperialPrince.java | 166 ++++++++++++++++++ .../Q00654_JourneyToASettlement/31453-01.htm | 4 + .../Q00654_JourneyToASettlement/31453-02.html | 4 + .../Q00654_JourneyToASettlement/31453-03.html | 3 + .../Q00654_JourneyToASettlement/31453-04.html | 3 + .../Q00654_JourneyToASettlement/31453-05.html | 3 + .../Q00654_JourneyToASettlement/31453-06.html | 4 + .../Q00654_JourneyToASettlement/31453-07.html | 3 + .../Q00654_JourneyToASettlement.java | 159 +++++++++++++++++ .../dist/sql/game/updates/20121222update.sql | 2 + 44 files changed, 408 insertions(+), 252 deletions(-) delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-1.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-2.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-3.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-4.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-5.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-6.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-7.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/32009-1.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/32009-2.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/32009-3.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/__init__.py delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-1.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-2.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-3.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-4.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-5.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/__init__.py create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-01.htm create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-02.htm create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-03.htm create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-04.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-05.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-06.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-07.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-08.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-09.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-10.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-11.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-01.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-02.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-03.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-04.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-05.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/Q00119_LastImperialPrince.java create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-01.htm create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-02.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-03.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-04.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-05.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-06.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-07.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/Q00654_JourneyToASettlement.java create mode 100644 L2J_DataPack_BETA/dist/sql/game/updates/20121222update.sql diff --git a/L2J_DataPack_BETA/dist/game/data/scripts.cfg b/L2J_DataPack_BETA/dist/game/data/scripts.cfg index 045d2d79c1..5fa0da2b12 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts.cfg +++ b/L2J_DataPack_BETA/dist/game/data/scripts.cfg @@ -366,7 +366,7 @@ quests/115_TheOtherSideOfTruth/__init__.py quests/116_BeyondTheHillsOfWinter/__init__.py quests/117_OceanOfDistantStar/__init__.py quests/118_ToLeadAndBeLed/__init__.py -quests/119_LastImperialPrince/__init__.py +quests/Q00119_LastImperialPrince/Q00119_LastImperialPrince.java quests/120_PavelsResearch/__init__.py quests/Q00121_PavelTheGiant/Q00121_PavelTheGiant.java quests/Q00122_OminousNews/Q00122_OminousNews.java @@ -680,7 +680,7 @@ quests/650_ABrokenDream/__init__.py quests/651_RunawayYouth/__init__.py quests/Q00652_AnAgedExAdventurer/Q00652_AnAgedExAdventurer.java quests/653_WildMaiden/__init__.py -quests/654_JourneytoaSettlement/__init__.py +quests/Q00654_JourneyToASettlement/Q00654_JourneyToASettlement.java quests/659_IdRatherBeCollectingFairyBreath/__init__.py quests/660_AidingtheFloranVillage/__init__.py quests/661_TheHarvestGroundsSafe/__init__.py diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-1.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-1.htm deleted file mode 100644 index a35af18e5a..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-1.htm +++ /dev/null @@ -1,5 +0,0 @@ -<html><body>Nameless Spirit:<br> -The time came.<br> -<font color="LEVEL">Alter Ego</font>, no, <font color="LEVEL">Myself past.</font> At last, I ascertained his whereabouts. If anything doesn't take a measure to him, he does a surely cruel thing. It is necessary to defeat him as soon as possible but, He cannot be completely defeated by power of us, now. Perhaps, I think only that it can put him to bed again. However, I think that it can obstruct the thing that he recovers power. In repeating it. Now, only these kind of things can be done...<br> -<a action="bypass -h Quest 119_LastImperialPrince 31453-2.htm">More</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-2.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-2.htm deleted file mode 100644 index aced7f118d..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-2.htm +++ /dev/null @@ -1,5 +0,0 @@ -<html><body>Nameless Spirit:<br> -Sigh... His whereabouts can have been ascertained. However, the seal was done so that it might go into it there. The password seems to be a <font color="LEVEL">song</font>, according to the investigation result of Wigoth. Therefore, to pass there, it seems to need the song used when the seal is made, <font color="LEVEL">in a specific, consecutive shape of waves</font>.<br> -Though it becomes a mysterious comparison, I think that nobody knows him well like me. In my guess, probably, the song used for the seal is...<br> -<a action="bypass -h Quest 119_LastImperialPrince 31453-3.htm">song is?</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-3.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-3.htm deleted file mode 100644 index 1bb5fb15f8..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-3.htm +++ /dev/null @@ -1,6 +0,0 @@ -<html><body>Nameless Spirit:<br> -Probably, <font color="LEVEL">it is a lullaby often heard in my childhood</font>. Besides, it doesn't hit on. My parents were always busy in my childhood. Therefore, I was brought up by the nurse. When I was cries at night cause not possible to go to sleep, she lullaby with a smile.<br> -Probably, I guess that he makes the song a password and made the seal. I remembered melody of lullaby. But, I doesn't recalled <font color="LEVEL">lyrics of lullaby</font>. It's time has passed too much.<br> -Could you undertake my request? Please go to the village in the rune castle.<br> -<a action="bypass -h Quest 119_LastImperialPrince 31453-4.htm">Yes, I go.</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-4.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-4.htm deleted file mode 100644 index 1d021ea07a..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-4.htm +++ /dev/null @@ -1,4 +0,0 @@ -<html><body>Nameless Spirit:<br> -Thank you.<br> -<font color="LEVEL">Devorin</font> who was my nurse, I heard from the adventurer that she is still alive in the village in the rune castle. Please meet her and learn <font color="LEVEL">lyrics of the lullaby</font>. If you show her an <font color="LEVEL">antique brooch</font>, she understands the thing that it was asked me. -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-5.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-5.htm deleted file mode 100644 index a691981ff9..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-5.htm +++ /dev/null @@ -1,6 +0,0 @@ -<html><body>Nameless Spirit:<br> -Mm-hm.<br> -Have you met Devorin? How was she? Sigh... I lost my body, and I'm not getting anywhere to go to meet her.<br> -And... were <font color="LEVEL">lyrics of lullaby</font> be learn?<br> -<a action="bypass -h Quest 119_LastImperialPrince 31453-6.htm">Teach him.</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-6.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-6.htm deleted file mode 100644 index 7010ffdd4a..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-6.htm +++ /dev/null @@ -1,7 +0,0 @@ -<html><body>Nameless Spirit:<br> -Great! It was so, I remember!<br> -<font color="LEVEL">Dear baby. Sleep in a beautiful rose. Dear baby. Sleep until the morning glow shines on the window...</font><br> -It's my fondest memory.<br> -Oh... I nearly cried, sorry.<br> -<a action="bypass -h Quest 119_LastImperialPrince 31453-7.htm">How will you do in the future?</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-7.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-7.htm deleted file mode 100644 index 4f7fa0d0c8..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/31453-7.htm +++ /dev/null @@ -1,4 +0,0 @@ -<html><body>Nameless Spirit:<br> -I to make sure request the investigation to Wigoth whether the seal can be released in this shape of waves. Thank you for your cooperation. This is reward of thanks to you.<br> -Oh,Could you visit me again later? It seems to need your help again. Alter Ego... <font color="LEVEL">Frintezza</font>... We must fight against him. -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/32009-1.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/32009-1.htm deleted file mode 100644 index 7446bddb78..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/32009-1.htm +++ /dev/null @@ -1,6 +0,0 @@ -<html><body>Devorin:<br> -Lullaby?<br> -Excuse me, who are you?<br> -I have sung the lullaby only for one person...<br> -<a action="bypass -h Quest 119_LastImperialPrince 32009-2.htm">Show antique brooch.</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/32009-2.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/32009-2.htm deleted file mode 100644 index 0ba5bc5bf9..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/32009-2.htm +++ /dev/null @@ -1,4 +0,0 @@ -<html><body>Devorin:<br> -What a surprise! This is prince property, without doubt. Did the prince give this to you? I won't make a mistake in looking at this <font color="LEVEL">brooch</font> even if it even fades away or is old. Then, were you requested by the prince? Where is he now? And how is he?<br> -<a action="bypass -h Quest 119_LastImperialPrince 32009-3.htm">Explain circumstances.</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/32009-3.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/32009-3.htm deleted file mode 100644 index 25c9a50c3c..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/32009-3.htm +++ /dev/null @@ -1,7 +0,0 @@ -<html><body>Devorin:<br> -Sigh...I see.<br> -He tries to address past wrongs now. In that case, I will also help him. Do you want to learn lyrics of the lullaby?<br> -Lyrics are these.<br> -<font color="LEVEL">"Dear baby. Sleep in a beautiful rose. Dear baby. Sleep until the morning glow shines on the window."</font><br> -My mother always sang this in my childhood. It remembers still because it often sang for prince. Did you memorize? Now, please teach to him soon. -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/__init__.py deleted file mode 100644 index b62d3d3eae..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/119_LastImperialPrince/__init__.py +++ /dev/null @@ -1,81 +0,0 @@ -# By L2J_JP SANDMAN -import sys -from com.l2jserver.gameserver.model.quest import State -from com.l2jserver.gameserver.model.quest import QuestState -from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest - -qn = "119_LastImperialPrince" - -#NPC -SPIRIT = 31453 #Nameless Spirit -DEVORIN = 32009 #Devorin - -#ITEM -BROOCH = 7262 #Antique Brooch - -#REWARD -ADENA = 57 #Adena -AMOUNT = 150292 #Amount - -class Quest (JQuest) : - - def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) - - def onEvent (self,event,st) : - htmltext = event - if event == "31453-4.htm" : - st.set("cond","1") - st.setState(State.STARTED) - st.playSound("ItemSound.quest_accept") - elif event == "32009-2.htm" : - if st.getQuestItemsCount(BROOCH) < 1 : - htmltext = "<html><body>Quest <font color=\"LEVEL\">Four Goblets</font> is not accomplished or the condition is not suitable.</body></html>" - st.exitQuest(1) - elif event == "32009-3.htm" : - st.set("cond","2") - st.playSound("ItemSound.quest_middle") - elif event == "31453-7.htm" : - st.giveItems(ADENA,AMOUNT) - st.addExpAndSp(902439,90067) - st.setState(State.COMPLETED) - st.playSound("ItemSound.quest_finish") - st.exitQuest(1) - return htmltext - - def onTalk (Self,npc,player): - st = player.getQuestState(qn) - htmltext = Quest.getNoQuestMsg(player) - if not st: return htmltext - cond = st.getInt("cond") - npcId = npc.getNpcId() - id = st.getState() - if st.getQuestItemsCount(BROOCH) < 1 : - htmltext = "<html><body>Quest <font color=\"LEVEL\">Four Goblets</font> is not accomplished or the condition is not suitable.</body></html>" - st.exitQuest(1) - elif id == State.CREATED : - if player.getLevel() < 74 : - htmltext = "<html><body>Quest for characters level 74 and above.</body></html>" - st.exitQuest(1) - else : - htmltext = "31453-1.htm" - elif id == State.COMPLETED : - htmltext = Quest.getAlreadyCompletedMsg(player) - st.exitQuest(1) - elif npcId == SPIRIT : - if cond == 1 : - htmltext = "31453-4.htm" - elif cond == 2 : - htmltext = "31453-5.htm" - elif npcId == DEVORIN : - if cond == 1 : - htmltext = "32009-1.htm" - elif cond == 2: - htmltext = "32009-3.htm" - return htmltext - -QUEST = Quest(119,qn,"Last Imperial Prince") - -QUEST.addStartNpc(SPIRIT) - -QUEST.addTalkId(SPIRIT) -QUEST.addTalkId(DEVORIN) \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-1.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-1.htm deleted file mode 100644 index 66ab287af2..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-1.htm +++ /dev/null @@ -1,5 +0,0 @@ -<html><body>Nameless Spirit:<br> -Welcome. After that, It asked Wigoth after that and the seal was investigated. It seems to be still correct in that song. The seal that Frintezza made from this can be erased. The chance to approach him came.<br> -And, Could you help put Frintezza to bed? As I told to you before, he cannot be completely defeated by power of us now. However, I think that it can obstruct the thing that he recovers power. In repeating it...<br> -<a action="bypass -h Quest 654_JourneytoaSettlement 31453-2.htm">Yes, I help you.</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-2.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-2.htm deleted file mode 100644 index 3821160543..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-2.htm +++ /dev/null @@ -1,6 +0,0 @@ -<html><body>Nameless Spirit:<br> -Well, Thank you.<br> -Then, I should prepare it so that you and your companion may release the seal. Why the companion?, will you fight against him alone surely? At least, you should gather the companion more than <font color="LEVEL">4 parties</font>. Do not make light of Frintezza that obtains the power of the demon. And, It cannot invade more than <font color="LEVEL">5 parties</font>. Because the place where he is is very small. Therefore, there are no means other than going by <font color="LEVEL">4 or 5 parties</font>.<br> -The scroll that writes a spell to erase the seal temporarily is necessary so that you and your companion may invade. Of course, It is not difficult to make the scroll. Because which you clarified the password before. However...<br> -<a action="bypass -h Quest 654_JourneytoaSettlement 31453-3.htm">However...?</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-3.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-3.htm deleted file mode 100644 index 71ce0eb61d..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-3.htm +++ /dev/null @@ -1,6 +0,0 @@ -<html><body>Nameless Spirit:<br> -Well, the fact is... <font color="LEVEL">It is necessary to write down the spells to erase the seal. For instance, it is a parchment</font>.<br> -Please go to Wall of Argos, and take a small amount of skin of the antelope. It only has to hunt <font color="LEVEL">Canyon Antelope</font> and <font color="LEVEL">Canyon Antelope Slave</font>. These skins are dressed, it becomes the substitute of the parchment.<br> -Oh, that reminds it!<br> -<font color="LEVEL">Only the leader of the multi-party command channel</font> has to use the scroll to erase the seal. Someone of companions have a scroll. Therefore, it is not at all members that take the skin of Antelope. Did you understand? -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-4.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-4.htm deleted file mode 100644 index 88d75a254e..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-4.htm +++ /dev/null @@ -1,4 +0,0 @@ -<html><body>Nameless Spirit:<br> -Thank you. Then, dress the skin. Pulled out the hair, scrape, thin and smooth. Can write down the spell, please.<br> -<a action="bypass -h Quest 654_JourneytoaSettlement 31453-5.htm">Dress the skin.</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-5.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-5.htm deleted file mode 100644 index 03f0b7d650..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/31453-5.htm +++ /dev/null @@ -1,6 +0,0 @@ -<html><body>Nameless Spirit:<br> -Then... well-made. The spell will be written in this.<br> -...<font color="LEVEL">Light brushes off the dark, and begins to shine on the concealed gate. The blocked barrier will be put out, and the way to the fact be opened</font>...<br> -Completed it. Then, please visit <font color="LEVEL">Frintezza Teleporter</font> near the imperial tomb entrance with your companion. It should be able to meet Frintezza if it does so...<br> -(A minimum of four parties may enter; five parties at most can enter. These parties must be organized through a command channel and the command channel leader must possess Frintezza's Magic Force Field Removal Scroll.) -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/__init__.py deleted file mode 100644 index 51d4faef8c..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/654_JourneytoaSettlement/__init__.py +++ /dev/null @@ -1,88 +0,0 @@ -# By L2J_JP SANDMAN -import sys -from com.l2jserver.gameserver.model.quest import State -from com.l2jserver.gameserver.model.quest import QuestState -from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest - -qn = "654_JourneytoaSettlement" - -#NPC -SPIRIT = 31453 #Nameless Spirit - -#TARGET -TARGET_1 = 21294 #Canyon Antelope -TARGET_2 = 21295 #Canyon Antelope Slave - -#ITEM -ITEM = 8072 #Antelope Skin - -#REWARD -SCROLL = 8073 #Frintezza's Magic Force Field Removal Scroll - -class Quest (JQuest) : - - def __init__(self,id,name,descr): - JQuest.__init__(self,id,name,descr) - self.questItemIds = [ITEM] - - def onEvent (self,event,st) : - htmltext = event - if event == "31453-2.htm" : - st.set("cond","1") - st.setState(State.STARTED) - st.playSound("ItemSound.quest_accept") - elif event == "31453-3.htm" : - st.set("cond","2") - st.playSound("ItemSound.quest_middle") - elif event == "31453-5.htm" : - st.giveItems(SCROLL,1) - st.takeItems(ITEM,1) - st.playSound("ItemSound.quest_finish") - st.exitQuest(1) - st.unset("cond") - return htmltext - - def onTalk (Self,npc,player): - htmltext = Quest.getNoQuestMsg(player) - st = player.getQuestState(qn) - if not st: return htmltext - cond = st.getInt("cond") - npcId = npc.getNpcId() - id = st.getState() - if id == State.CREATED: - preSt = player.getQuestState("119_LastImperialPrince") - if preSt: preId = preSt.getState() - if player.getLevel() < 74 : - htmltext = "<html><body>Quest for characters level 74 and above.</body></html>" - st.exitQuest(1) - elif not preSt: - htmltext = "<html><body>Quest <font color=\"LEVEL\">Last Imperial Prince</font> is not accomplished or the condition is not suitable.</body></html>" - st.exitQuest(1) - elif preId != State.COMPLETED : - htmltext = "<html><body>Quest <font color=\"LEVEL\">Last Imperial Prince</font> is not accomplished or the condition is not suitable.</body></html>" - st.exitQuest(1) - else : - htmltext = "31453-1.htm" - elif npcId == SPIRIT : - if cond == 1 : - htmltext = "31453-2.htm" - elif cond == 3 : - htmltext = "31453-4.htm" - return htmltext - - def onKill (self,npc,player,isPet) : - st = player.getQuestState(qn) - if not st: return - npcId = npc.getNpcId() - if st.getInt("cond") == 2 and self.getRandom(100) < 5 : - st.set("cond","3") - st.giveItems(ITEM,1) - st.playSound("ItemSound.quest_middle") - return - -QUEST = Quest(654,qn,"Journey to a Settlement") - -QUEST.addStartNpc(SPIRIT) -QUEST.addTalkId(SPIRIT) -QUEST.addKillId(TARGET_1) -QUEST.addKillId(TARGET_2) \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-01.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-01.htm new file mode 100644 index 0000000000..04b9c6c91a --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-01.htm @@ -0,0 +1,4 @@ +<html><body>Nameless Spirit:<br> +It's about time! I've learned where<font color="LEVEL"> another me</font>... no... where the once-me is!<br>I never know what he will do next! I must eliminate him as soon as possible! <font color="LEVEL"> Unfortunately, at our current strength we can only put him to sleep</font>... But when he wakes up, we can put him right back to sleep, and prevent him from amassing more power! It's not perfect, but there's no other way!<br> +<a action="bypass -h Quest Q00119_LastImperialPrince 31453-02.htm">"Tell me more."</a> +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-02.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-02.htm new file mode 100644 index 0000000000..5a2b6a85ba --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-02.htm @@ -0,0 +1,4 @@ +<html><body>Nameless Spirit:<br> +Well, I found out where he was hiding, but it already had a <font color="LEVEL">magic force field</font> around it. According to Wigoth, the force field uses a <font color="LEVEL">song as its password</font>. Therefore, we need <font color="LEVEL">a certain type of continuous wavelength</font> to pass through the force field.<br>I hate to say it, but I'm afraid I know him better than anyone else... The song he chose for his password is probably...<br> +<a action="bypass -h Quest Q00119_LastImperialPrince 31453-03.htm">"What?"</a> +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-03.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-03.htm new file mode 100644 index 0000000000..aef4a13a2c --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-03.htm @@ -0,0 +1,4 @@ +<html><body>Nameless Spirit:<br> +He probably used <font color="LEVEL">the lullaby I heard when I was young</font>. That has to be it! When I was young, my parents were always busy, so I was practically raised by my nurse! Sometimes when I couldn't fall asleep, the nurse would just smile with a sultry look and sing a beautiful lullaby.<br>I'll bet he used that lullaby as the password for the force field... Too many years have passed! I can remember the melody, but I can't remember the lyrics at all!<br>Could you do me a favor? Would you please go to <font color="LEVEL">Rune Township</font>?<br> +<a action="bypass -h Quest Q00119_LastImperialPrince 31453-04.html">"I'll go."</a> +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-04.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-04.html new file mode 100644 index 0000000000..61038549d8 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-04.html @@ -0,0 +1,3 @@ +<html><body>Nameless Spirit:<br> +Thank you! Honestly, I heard from an adventurer who stopped by that <font color="LEVEL">Nurse Devorin</font> is still alive in <font color="LEVEL">Rune Township</font>! If you don't mind, would you go meet with her and learn the <font color="LEVEL">lyrics of the lullaby</font>? If you show Nurse Devorin the Antique Brooch, she'll know I sent you. Please, help me! +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-05.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-05.html new file mode 100644 index 0000000000..2480c72b79 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-05.html @@ -0,0 +1,3 @@ +<html><body>Nameless Spirit:<br> +What do you need? I don't have anything to talk to you about.<br>(Only characters of at least level 74 who have obtained the Antique Brooch through the "Four Goblets" quest may undertake this quest.) +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-06.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-06.html new file mode 100644 index 0000000000..005ab5bb9b --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-06.html @@ -0,0 +1,3 @@ +<html><body>Nameless Spirit:<br> +Hmmm? You already brought me the song. We don't need to talk further. I just need to settle with him. (This quest has already been completed. Please move on to the next step, "Journey to a Settlement".) +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-07.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-07.html new file mode 100644 index 0000000000..ee1b2cd21c --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-07.html @@ -0,0 +1,3 @@ +<html><body>Nameless Spirit:<br> +Please, go to <font color="LEVEL">Rune Township</font>, meet with <font color="LEVEL">Nurse Devorin</font> and learn the <font color="LEVEL">lyrics of the lullaby</font>! If you show her the Antique Brooch, she'll know I sent you. Please, help me! +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-08.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-08.html new file mode 100644 index 0000000000..0531aa88bc --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-08.html @@ -0,0 +1,3 @@ +<html><body>Nameless Spirit:<br> +Please, go to Rune Township and meet with Nurse Devorin so you can learn the lyrics of the lullaby! Show her the Antique Brooch so she'll know that I sent you. Please... Help!<br>... What? You don't have the brooch? I must've made a mistake. I'm sorry!<br><font color="LEVEL">(The Antique Brooch is essential to this quest. Try again after you obrain it. This quest is terminated.) +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-09.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-09.html new file mode 100644 index 0000000000..96aab9284d --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-09.html @@ -0,0 +1,4 @@ +<html><body>Nameless Spirit:<br> +Ah, you're back! How's Nurse Devorin doing? I just can't let her see me like this!<br>Do you have the lyrics?<br> +<a action="bypass -h Quest Q00119_LastImperialPrince 31453-10.html">"Here they are."</a> +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-10.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-10.html new file mode 100644 index 0000000000..8dc296a5a9 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-10.html @@ -0,0 +1,4 @@ +<html><body>Nameless Spirit:<br> +That's right! I remember now!<br><font color="LEVEL">"Sleep now, my child, my beautiful rose blossom... Sleep now, my child, till the morning comes..."</font><br>......<br>Sob! I'm sorry! It brings back such precious memories...<br> +<a action="bypass -h Quest Q00119_LastImperialPrince 31453-11.html">"What are you going to do now?"</a> +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-11.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-11.html new file mode 100644 index 0000000000..dfd94560e3 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/31453-11.html @@ -0,0 +1,3 @@ +<html><body>Nameless Spirit:<br> +First I must ask Wigoth if this song will get me through the force field... Thanks for all your help! Please accept this... It isn't much, but it's a token of my appreciation.<br>By the way, could you come back to see me? I'll need your help with something else...<font color="LEVEL">I"ll need to settle up with my twin Frintezza soon</font>. +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-01.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-01.html new file mode 100644 index 0000000000..333a0c716e --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-01.html @@ -0,0 +1,4 @@ +<html><body>Nurse Devorin:<br> +<font color="LEVEL">You asked for a lullaby</font>? Who are you? There's only one person I ever sang a lullaby to...<br> +<a action="bypass -h Quest Q00119_LastImperialPrince brooch">Show her the Antique Brooch.</a> +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-02.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-02.html new file mode 100644 index 0000000000..325cad6850 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-02.html @@ -0,0 +1,4 @@ +<html><body>Nurse Devorin:<br> +What is this? Oh my, it's the <font color="LEVEL">prince's</font> - no doubt about it! It may be old and worn, but there's no way my old eyes could ever forget <font color="LEVEL">this brooch</font>.<br> The prince must have sent you! Tell me, where is he now? Is he well?<br> +<a action="bypass -h Quest Q00119_LastImperialPrince 32009-04.html">Explain the situation.</a> +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-03.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-03.html new file mode 100644 index 0000000000..bb3af1d3ae --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-03.html @@ -0,0 +1,3 @@ +<html><body>Nurse Devorin:<br> +What brooch did you say you were going to show me? I see no brooch. What are you playing at? +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-04.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-04.html new file mode 100644 index 0000000000..f128ef54f8 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-04.html @@ -0,0 +1,3 @@ +<html><body>Nurse Devorin:<br> +Ah. So the prince's past is coming back to haunt him, is it? Poor man! Poor child!<br> I cannot offer much help, but I will do whatever I can for him. The words to the lullaby are: <font color="LEVEL">"Sleep now, child, a beautiful rose blossoms for you. Sleep now, child, till the morning comes to."</font> My mother sang it to me; I sang it to him. Remember it, and tell it to him, if it can help him at all. I do miss him so. +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-05.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-05.html new file mode 100644 index 0000000000..ed26f51d8b --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/32009-05.html @@ -0,0 +1,3 @@ +<html><body>Nurse Devorin:<br> +Again, the words are: <font color="LEVEL">"Sleep now, child, a beautiful rose blossoms for you. Sleep now, child, till the morning comes to."</font> Go tell him the words; help him. +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/Q00119_LastImperialPrince.java b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/Q00119_LastImperialPrince.java new file mode 100644 index 0000000000..3238b5e06a --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00119_LastImperialPrince/Q00119_LastImperialPrince.java @@ -0,0 +1,166 @@ +/* + * 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.Q00119_LastImperialPrince; + +import com.l2jserver.gameserver.model.actor.L2Npc; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.model.quest.Quest; +import com.l2jserver.gameserver.model.quest.QuestState; +import com.l2jserver.gameserver.model.quest.State; + +/** + * Last Imperial Prince (119) + * @author Adry_85 + */ +public class Q00119_LastImperialPrince extends Quest +{ + // NPCs + private static final int NAMELESS_SPIRIT = 31453; + private static final int DEVORIN = 32009; + // Item + private static final int ANTIQUE_BROOCH = 7262; + // Misc + private static final int MIN_LEVEL = 74; + + public Q00119_LastImperialPrince(int id, String name, String descr) + { + super(id, name, descr); + + addStartNpc(NAMELESS_SPIRIT); + addTalkId(NAMELESS_SPIRIT, DEVORIN); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState st = player.getQuestState(getName()); + if (st == null) + { + return null; + } + + String htmltext = null; + switch (event) + { + case "31453-02.htm": + case "31453-03.htm": + case "31453-10.html": + { + htmltext = event; + break; + } + case "31453-04.html": + { + st.startQuest(); + htmltext = event; + break; + } + case "31453-11.html": + { + if (st.isCond(2)) + { + st.giveAdena(150292, true); + st.addExpAndSp(902439, 90067); + st.exitQuest(false, true); + htmltext = event; + } + break; + } + case "brooch": + { + htmltext = (st.hasQuestItems(ANTIQUE_BROOCH)) ? "32009-02.html" : "32009-03.html"; + break; + } + case "32009-04.html": + { + if (st.isCond(1) && st.hasQuestItems(ANTIQUE_BROOCH)) + { + st.setCond(2, true); + htmltext = event; + } + break; + } + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + QuestState st = player.getQuestState(getName()); + String htmltext = getNoQuestMsg(player); + if (st == null) + { + return htmltext; + } + + switch (st.getState()) + { + case State.COMPLETED: + { + if (npc.getNpcId() == NAMELESS_SPIRIT) + { + htmltext = "31453-06.html"; + } + break; + } + case State.CREATED: + { + htmltext = ((player.getLevel() >= MIN_LEVEL) && st.hasQuestItems(ANTIQUE_BROOCH)) ? "31453-01.htm" : "31453-05.html"; + break; + } + case State.STARTED: + { + if (npc.getNpcId() == NAMELESS_SPIRIT) + { + if (st.isCond(1)) + { + if (st.hasQuestItems(ANTIQUE_BROOCH)) + { + htmltext = "31453-07.html"; + } + else + { + htmltext = "31453-08.html"; + st.exitQuest(true); + } + } + else if (st.isCond(2)) + { + htmltext = "31453-09.html"; + } + } + else if (npc.getNpcId() == DEVORIN) + { + if (st.isCond(1)) + { + htmltext = "32009-01.html"; + } + else if (st.isCond(2)) + { + htmltext = "32009-05.html"; + } + } + break; + } + } + return htmltext; + } + + public static void main(String[] args) + { + new Q00119_LastImperialPrince(119, Q00119_LastImperialPrince.class.getSimpleName(), "Last Imperial Prince"); + } +} diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-01.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-01.htm new file mode 100644 index 0000000000..6a72dc480e --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-01.htm @@ -0,0 +1,4 @@ +<html><body>Nameless Spirit:<br> +Oh, hello again! Yes, I spoke with Wigoth, and he assures me that this song is the one! <font color="LEVEL">We can now pass through the force field.</font> It brings us one step closer to him, eh?<br>By the way, <font color="LEVEL">could you help me put Frintezza to sleep</font>? As I said, we can't eliminate Frintezza completely with our power at its current level... But we can wait until he wakes up and then put him back to sleep before he can act!<br> +<a action="bypass -h Quest Q00654_JourneyToASettlement 31453-02.html">"I'll help you."</a> +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-02.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-02.html new file mode 100644 index 0000000000..0557374b2e --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-02.html @@ -0,0 +1,4 @@ +<html><body>Nameless Spirit:<br> +Yes, thank you! Now I'll help you and your friends pass through the force field. By the way, where are your friends? Surely you don't intend to take Frintezza on all by yourself, do you? You should take <font color="LEVEL">up to four parties</font> with you. Frintezza's evil power won't be easily defeated! <font color="LEVEL">More than 5 parties cannot enter due to the size of the space</font>. <br>You and your friends will need a <font color="LEVEL">magic scroll that can temporarily disable the force field</font> so you can pass through. Since you got the password, creating the scroll should be no problem! That is, unless...<br> +<a action="bypass -h Quest Q00654_JourneyToASettlement 31453-03.html">"Unless...?"</a> +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-03.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-03.html new file mode 100644 index 0000000000..37e12b7e22 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-03.html @@ -0,0 +1,3 @@ +<html><body>Nameless Spirit:<br> +Well... I need a <font color="LEVEL">parchment to write the spell on</font>. Go to the <font color="LEVEL">Wall of Argos</font> and slaughter the <font color="LEVEL">Canyon Antelope</font> or the <font color="LEVEL">Canyon Antelope Slave</font> and bring me the <font color="LEVEL">Skin of the Antelope</font>! It'll make a lovely parchment!<br>Ah! By the way, <font color="LEVEL">once you pass through the force field, only the Command Channel Leader in command of all the parties needs the scroll</font>. Therefore, only one skin is needed. +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-04.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-04.html new file mode 100644 index 0000000000..a274e1e27c --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-04.html @@ -0,0 +1,3 @@ +<html><body>Nameless Spirit:<br> +What do you want? I have nothing to say to you.<br>(Characters must have achieved at least level 74 and completed the "Last Imperial Prince" quest before undertaking this quest.) +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-05.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-05.html new file mode 100644 index 0000000000..84a2c10f0b --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-05.html @@ -0,0 +1,3 @@ +<html><body>Nameless Spirit:<br> +Go to the <font color="LEVEL">Wall of Argos</font> and slaughter the <font color="LEVEL">Canyon Antelope</font> or the <font color="LEVEL">Canyon Antelope Slave</font> and bring back the <font color="LEVEL">Skin of the Antelope</font>? It will make a wonderful parchment.<br>Ah! by the way, <font color="LEVEL">when you pass through the force field, only the Command Channel Leader in command of all the parties needs the scroll.</font> Therefore, only one scroll is needed. +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-06.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-06.html new file mode 100644 index 0000000000..e2c5fe6464 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-06.html @@ -0,0 +1,4 @@ +<html><body>Nameless Spirit:<br> +Excellent! Now, could you please smooth out the skin? Remove the hair, and smooth out the skin so that it's thin and soft. Just enough for me to write the spell down...<br> +<a action="bypass -h Quest Q00654_JourneyToASettlement 31453-07.html">"Here it is."</a> +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-07.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-07.html new file mode 100644 index 0000000000..d76ce5f8f8 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/31453-07.html @@ -0,0 +1,3 @@ +<html><body>Nameless Spirit:<br> +Good job... Now to write down the spell...<br>....<font color="LEVEL">Light turns darkness away, and shines upon the hidden door. All obstacles will disappear and the path to truth will become clear</font>...<br>Alright, it's done. Now, you and your friends go and meet the Imperial Tomb Guide near the entrance of the Imperial Tomb. He'll take you to Frintezza...<br>(Make sure the Command Channel Leader has Frintezza's Magic Force Field Removal Scroll when you meet the Imperial Tomb Guide.) +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/Q00654_JourneyToASettlement.java b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/Q00654_JourneyToASettlement.java new file mode 100644 index 0000000000..4ca4ac1399 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00654_JourneyToASettlement/Q00654_JourneyToASettlement.java @@ -0,0 +1,159 @@ +/* + * 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.Q00654_JourneyToASettlement; + +import java.util.HashMap; +import java.util.Map; + +import quests.Q00119_LastImperialPrince.Q00119_LastImperialPrince; + +import com.l2jserver.Config; +import com.l2jserver.gameserver.model.actor.L2Npc; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.model.quest.Quest; +import com.l2jserver.gameserver.model.quest.QuestState; +import com.l2jserver.gameserver.model.quest.State; + +/** + * Journey to a Settlement (654) + * @author Adry_85 + */ +public class Q00654_JourneyToASettlement extends Quest +{ + // NPC + private static final int NAMELESS_SPIRIT = 31453; + // Items + private static final int ANTELOPE_SKIN = 8072; + private static final int FRINTEZZAS_SCROLL = 8073; + // Misc + private static final int MIN_LEVEL = 74; + + private static final Map<Integer, Integer> MOBS_SKIN = new HashMap<>(); + + static + { + MOBS_SKIN.put(21294, 840); // Canyon Antelope + MOBS_SKIN.put(21295, 893); // Canyon Antelope Slave + } + + public Q00654_JourneyToASettlement(int id, String name, String descr) + { + super(id, name, descr); + + addStartNpc(NAMELESS_SPIRIT); + addTalkId(NAMELESS_SPIRIT); + addKillId(MOBS_SKIN.keySet()); + registerQuestItems(ANTELOPE_SKIN); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState st = player.getQuestState(getName()); + if (st == null) + { + return null; + } + + String htmltext = null; + switch (event) + { + case "31453-02.html": + { + st.startQuest(); + htmltext = event; + break; + } + case "31453-03.html": + { + if (st.isCond(1)) + { + st.setCond(2, true); + htmltext = event; + } + } + case "31453-07.html": + { + if (st.isCond(3) && st.hasQuestItems(ANTELOPE_SKIN)) + { + st.giveItems(FRINTEZZAS_SCROLL, 1); + st.exitQuest(true, true); + htmltext = event; + } + } + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + QuestState st = player.getQuestState(getName()); + String htmltext = getNoQuestMsg(player); + if (st == null) + { + return htmltext; + } + + switch (st.getState()) + { + case State.CREATED: + { + st = player.getQuestState(Q00119_LastImperialPrince.class.getSimpleName()); + htmltext = ((player.getLevel() >= MIN_LEVEL) && (st != null) && (st.isCompleted())) ? "31453-01.htm" : "31453-04.html"; + break; + } + case State.STARTED: + { + if (st.isCond(2)) + { + htmltext = "31453-05.html"; + } + else if (st.isCond(3)) + { + htmltext = "31453-06.html"; + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(L2Npc npc, L2PcInstance player, boolean isPet) + { + final L2PcInstance partyMember = getRandomPartyMember(player, "2"); + if (partyMember == null) + { + return super.onKill(npc, player, isPet); + } + + final QuestState st = partyMember.getQuestState(getName()); + int npcId = npc.getNpcId(); + float chance = (MOBS_SKIN.get(npcId) * Config.RATE_QUEST_DROP); + if (getRandom(1000) < chance) + { + st.rewardItems(ANTELOPE_SKIN, 1); + st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET); + st.setCond(3, true); + } + return super.onKill(npc, player, isPet); + } + + public static void main(String[] args) + { + new Q00654_JourneyToASettlement(654, Q00654_JourneyToASettlement.class.getSimpleName(), "Journey to a Settlement"); + } +} diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20121222update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20121222update.sql new file mode 100644 index 0000000000..7be0240481 --- /dev/null +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20121222update.sql @@ -0,0 +1,2 @@ +UPDATE character_quests SET name='Q00119_LastImperialPrince' WHERE name='119_LastImperialPrince'; +UPDATE character_quests SET name='Q00654_JourneyToASettlement' WHERE name='654_JourneytoaSettlement'; \ No newline at end of file -- GitLab