From 55da2a937125bde80707b59c2a2347574edb5236 Mon Sep 17 00:00:00 2001 From: Adry_85 <Adrya85@hotmail.it> Date: Sun, 13 Jul 2014 14:42:47 +0000 Subject: [PATCH] BETA: Retail-like quest '''In Search of Fragments of Dimension''' (634). --- .../dist/game/data/html/default/31494.htm | 2 +- .../dist/game/data/html/default/31495.htm | 2 +- .../dist/game/data/html/default/31496.htm | 2 +- .../dist/game/data/html/default/31497.htm | 2 +- .../dist/game/data/html/default/31498.htm | 2 +- .../dist/game/data/html/default/31499.htm | 2 +- .../dist/game/data/html/default/31500.htm | 2 +- .../dist/game/data/html/default/31501.htm | 2 +- .../dist/game/data/html/default/31502.htm | 2 +- .../dist/game/data/html/default/31503.htm | 2 +- .../dist/game/data/html/default/31504.htm | 2 +- .../dist/game/data/html/default/31505.htm | 2 +- .../dist/game/data/html/default/31506.htm | 2 +- .../dist/game/data/html/default/31507.htm | 2 +- L2J_DataPack_BETA/dist/game/data/scripts.cfg | 1 - .../634_InSearchofDimensionalFragments/2.htm | 4 - .../634_InSearchofDimensionalFragments/2a.htm | 5 - .../634_InSearchofDimensionalFragments/4.htm | 7 - .../__init__.py | 67 ------- .../31494-01.htm | 4 + .../31494-02.htm | 5 + .../31494-03.htm} | 2 +- .../31494-04.html | 7 + .../31494-05.html} | 6 +- .../31494-06.html} | 2 +- .../31494-07.html} | 2 +- ...Q00634_InSearchOfFragmentsOfDimension.java | 187 ++++++++++++++++++ .../scripts/quests/QuestMasterHandler.java | 2 + .../dist/sql/game/updates/20140713update.sql | 1 + 29 files changed, 226 insertions(+), 104 deletions(-) delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/2.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/2a.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/4.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/__init__.py create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-01.htm create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-02.htm rename L2J_DataPack_BETA/dist/game/data/scripts/quests/{634_InSearchofDimensionalFragments/1.htm => Q00634_InSearchOfFragmentsOfDimension/31494-03.htm} (74%) create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-04.html rename L2J_DataPack_BETA/dist/game/data/scripts/quests/{634_InSearchofDimensionalFragments/3.htm => Q00634_InSearchOfFragmentsOfDimension/31494-05.html} (51%) rename L2J_DataPack_BETA/dist/game/data/scripts/quests/{634_InSearchofDimensionalFragments/6.htm => Q00634_InSearchOfFragmentsOfDimension/31494-06.html} (68%) rename L2J_DataPack_BETA/dist/game/data/scripts/quests/{634_InSearchofDimensionalFragments/5.htm => Q00634_InSearchOfFragmentsOfDimension/31494-07.html} (73%) create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/Q00634_InSearchOfFragmentsOfDimension.java create mode 100644 L2J_DataPack_BETA/dist/sql/game/updates/20140713update.sql diff --git a/L2J_DataPack_BETA/dist/game/data/html/default/31494.htm b/L2J_DataPack_BETA/dist/game/data/html/default/31494.htm index 8eada3da12..046360fc53 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/default/31494.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/default/31494.htm @@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o ...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br> <a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br> <a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br> -<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a> +<a action="bypass -h npc_%objectId%_Quest">Quest</a> </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/default/31495.htm b/L2J_DataPack_BETA/dist/game/data/html/default/31495.htm index 8eada3da12..046360fc53 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/default/31495.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/default/31495.htm @@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o ...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br> <a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br> <a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br> -<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a> +<a action="bypass -h npc_%objectId%_Quest">Quest</a> </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/default/31496.htm b/L2J_DataPack_BETA/dist/game/data/html/default/31496.htm index 8eada3da12..046360fc53 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/default/31496.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/default/31496.htm @@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o ...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br> <a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br> <a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br> -<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a> +<a action="bypass -h npc_%objectId%_Quest">Quest</a> </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/default/31497.htm b/L2J_DataPack_BETA/dist/game/data/html/default/31497.htm index 8eada3da12..046360fc53 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/default/31497.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/default/31497.htm @@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o ...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br> <a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br> <a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br> -<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a> +<a action="bypass -h npc_%objectId%_Quest">Quest</a> </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/default/31498.htm b/L2J_DataPack_BETA/dist/game/data/html/default/31498.htm index 8eada3da12..046360fc53 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/default/31498.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/default/31498.htm @@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o ...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br> <a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br> <a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br> -<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a> +<a action="bypass -h npc_%objectId%_Quest">Quest</a> </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/default/31499.htm b/L2J_DataPack_BETA/dist/game/data/html/default/31499.htm index 8eada3da12..046360fc53 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/default/31499.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/default/31499.htm @@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o ...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br> <a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br> <a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br> -<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a> +<a action="bypass -h npc_%objectId%_Quest">Quest</a> </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/default/31500.htm b/L2J_DataPack_BETA/dist/game/data/html/default/31500.htm index 8eada3da12..046360fc53 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/default/31500.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/default/31500.htm @@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o ...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br> <a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br> <a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br> -<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a> +<a action="bypass -h npc_%objectId%_Quest">Quest</a> </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/default/31501.htm b/L2J_DataPack_BETA/dist/game/data/html/default/31501.htm index 8eada3da12..046360fc53 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/default/31501.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/default/31501.htm @@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o ...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br> <a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br> <a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br> -<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a> +<a action="bypass -h npc_%objectId%_Quest">Quest</a> </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/default/31502.htm b/L2J_DataPack_BETA/dist/game/data/html/default/31502.htm index 8eada3da12..046360fc53 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/default/31502.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/default/31502.htm @@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o ...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br> <a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br> <a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br> -<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a> +<a action="bypass -h npc_%objectId%_Quest">Quest</a> </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/default/31503.htm b/L2J_DataPack_BETA/dist/game/data/html/default/31503.htm index 8eada3da12..046360fc53 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/default/31503.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/default/31503.htm @@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o ...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br> <a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br> <a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br> -<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a> +<a action="bypass -h npc_%objectId%_Quest">Quest</a> </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/default/31504.htm b/L2J_DataPack_BETA/dist/game/data/html/default/31504.htm index 8eada3da12..046360fc53 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/default/31504.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/default/31504.htm @@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o ...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br> <a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br> <a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br> -<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a> +<a action="bypass -h npc_%objectId%_Quest">Quest</a> </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/default/31505.htm b/L2J_DataPack_BETA/dist/game/data/html/default/31505.htm index 8eada3da12..046360fc53 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/default/31505.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/default/31505.htm @@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o ...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br> <a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br> <a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br> -<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a> +<a action="bypass -h npc_%objectId%_Quest">Quest</a> </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/default/31506.htm b/L2J_DataPack_BETA/dist/game/data/html/default/31506.htm index 8eada3da12..046360fc53 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/default/31506.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/default/31506.htm @@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o ...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br> <a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br> <a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br> -<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a> +<a action="bypass -h npc_%objectId%_Quest">Quest</a> </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/default/31507.htm b/L2J_DataPack_BETA/dist/game/data/html/default/31507.htm index 8eada3da12..046360fc53 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/default/31507.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/default/31507.htm @@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o ...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br> <a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br> <a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br> -<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a> +<a action="bypass -h npc_%objectId%_Quest">Quest</a> </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts.cfg b/L2J_DataPack_BETA/dist/game/data/scripts.cfg index b758fbe18c..cc7c1a091e 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts.cfg +++ b/L2J_DataPack_BETA/dist/game/data/scripts.cfg @@ -305,7 +305,6 @@ quests/503_PursuitClanAmbition/__init__.py quests/604_DaimontheWhiteEyedPart2/__init__.py quests/620_FourGoblets/__init__.py quests/632_NecromancersRequest/__init__.py -quests/634_InSearchofDimensionalFragments/__init__.py quests/660_AidingtheFloranVillage/__init__.py quests/663_SeductiveWhispers/__init__.py quests/999_T1Tutorial/__init__.py diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/2.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/2.htm deleted file mode 100644 index 19d8944f7e..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/2.htm +++ /dev/null @@ -1,4 +0,0 @@ -<html><body>Dimension Keeper:<br> -Surely you've heard all about the dimension fragment. Let me ask you a simple question: Will you obtain the dimension fragment and fight alongside us?<br> -<a action="bypass -h Quest 634_InSearchofDimensionalFragments 2a.htm">"I'll do it!"</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/2a.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/2a.htm deleted file mode 100644 index 31568fb8e1..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/2a.htm +++ /dev/null @@ -1,5 +0,0 @@ -<html><body>Dimension Keeper:<br> -Your passion and conviction are apparent. The Contract between us is official!<br> -This Contract will help you to recognize the dimension fragment. You're bound to experience numerous setbacks and obstacles in the future. I trust that your wisdom and courage will see you safely through your quest.<br> -You'll find the dimension fragment very useful in the dimension gap zone. -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/4.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/4.htm deleted file mode 100644 index 4e22da2dcc..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/4.htm +++ /dev/null @@ -1,7 +0,0 @@ -<html><body>Dimension Keeper:<br> -Have you found any dimension fragments? The more fragments you find, the longer you'll be allowed to stay in the dimension gap. Dimension fragments are watched over by the guardians of ancient magic.<br> -If you begin to feel overwhelmed by your mission and want to take a break, just let me know! You always have that option!<br> -<a action="bypass -h Quest 634_InSearchofDimensionalFragments 3.htm">"Who are the guardians of ancient magic?"</a><br> -<a action="bypass -h Quest 634_InSearchofDimensionalFragments 6.htm">"I want to continue."</a><br> -<a action="bypass -h Quest 634_InSearchofDimensionalFragments 5.htm">"I want to take a break."</a> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/__init__.py deleted file mode 100644 index 1e27954d09..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/__init__.py +++ /dev/null @@ -1,67 +0,0 @@ -import sys -from com.l2jserver import Config -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 = "634_InSearchofDimensionalFragments" - -DIMENSION_FRAGMENT_ID = 7079 - -class Quest (JQuest) : - - def __init__(self,id,name,descr): - JQuest.__init__(self,id,name,descr) - self.questItemIds = [DIMENSION_FRAGMENT_ID] - - def onAdvEvent (self,event,npc, player) : - htmltext = event - st = player.getQuestState(qn) - if not st : return - if event == "2a.htm" : - st.setState(State.STARTED) - st.playSound("ItemSound.quest_accept") - st.set("cond","1") - elif event == "5.htm" : - st.playSound("ItemSound.quest_finish") - st.exitQuest(1) - return htmltext - - def onTalk (self,npc,player): - htmltext = Quest.getNoQuestMsg(player) - st = player.getQuestState(qn) - if st : - npcId = npc.getId() - id = st.getState() - if id == State.CREATED : - if player.getLevel() < 20 : - st.exitQuest(1) - htmltext="1.htm" - else: - htmltext="2.htm" - elif id == State.STARTED : - htmltext = "4.htm" - return htmltext - - def onKill(self,npc,player,isPet): - partyMember = self.getRandomPartyMemberState(player, State.STARTED) - if not partyMember : return - st = partyMember.getQuestState(qn) - if st : - if st.getState() == State.STARTED : - itemMultiplier,chance = divmod(80*Config.RATE_QUEST_DROP,1000) - if self.getRandom(1000) < chance : - itemMultiplier += 1 - numItems = int(itemMultiplier * (npc.getLevel() * 0.15 +1.6)) - if numItems > 0 : - st.giveItems(DIMENSION_FRAGMENT_ID,numItems) - return - -QUEST = Quest(634, qn, "In Search of Dimensional Fragments") - -for npcId in range(31494,31508): - QUEST.addTalkId(npcId) - QUEST.addStartNpc(npcId) - -for mobs in range(21208,21256): - QUEST.addKillId(mobs) \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-01.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-01.htm new file mode 100644 index 0000000000..70ab450526 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-01.htm @@ -0,0 +1,4 @@ +<html><body>Dimensional Gate Keeper:<br> +Surely you've heard all about the Dimensional Fragment. Let me ask you a simple question: Will you obtain the Dimensional Fragment and fight alongside us?<br> +<a action="bypass -h Quest Q00634_InSearchOfFragmentsOfDimension 31494-02.htm">"I'll do it!"</a> +</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-02.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-02.htm new file mode 100644 index 0000000000..7b860d0dda --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-02.htm @@ -0,0 +1,5 @@ +<html><body>Dimensional Gate Keeper:<br> +Your passion and conviction are apparent. The Contract between us is official!<br> +This Contract will help you to recognize the Dimensional Fragment. You're bound to experience numerous setbacks and obstacles in the future. I trust that your wisdom and courage will see you safely through your quest.<br> +You'll find the Dimensional Fragment very useful in the Dimensional Gap zone. +</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/1.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-03.htm similarity index 74% rename from L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/1.htm rename to L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-03.htm index 488deb6a49..5d5e7d65f2 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/1.htm +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-03.htm @@ -1,3 +1,3 @@ -<html><body>Dimension Keeper:<br> +<html><body>Dimensional Gate Keeper:<br> Sorry, but you're not ready to fight alongside us yet. Your enthusiasm is great, but your skills are lacking. </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-04.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-04.html new file mode 100644 index 0000000000..3300d87eb6 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-04.html @@ -0,0 +1,7 @@ +<html><body>Dimensional Gate Keeper:<br> +Have you found any dimension fragments? The more fragments you find, the longer you'll be allowed to stay in the Dimensional Gap. Dimension fragments are watched over by the guardians of ancient magic.<br> + If you begin to feel overwhelmed by your mission and want to take a break, just let me know! You always have that option!<br> +<a action="bypass -h Quest Q00634_InSearchOfFragmentsOfDimension 31494-05.html">"Who are the guardians of ancient magic?"</a><br> +<a action="bypass -h Quest Q00634_InSearchOfFragmentsOfDimension 31494-06.html">"I want to continue."</a><br> +<a action="bypass -h Quest Q00634_InSearchOfFragmentsOfDimension 31494-07.html">"I want to take a break."</a> +</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/3.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-05.html similarity index 51% rename from L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/3.htm rename to L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-05.html index 4ca5a886df..e3e9a47397 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/3.htm +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-05.html @@ -1,4 +1,4 @@ -<html><body>Dimension Keeper:<br> -The guardians of ancient magic are<font color="LEVEL"> undead and demons</font> summoned by ancient shamans. They worship the goddess of death to protect their sacred area from the crusaders of light.<br> -They're known as<font color="LEVEL"> lookouts, watchers, guards, monks, prefects, seers, archons, inquisitors, guardians, sages, royal guards, and preachers.</font> +<html><body>Dimensional Gate Keeper:<br> +The guardians of ancient magic are <font color="LEVEL">undead and demons</font> summoned by ancient shamans. They worship the goddess of death to protect their sacred area from the crusaders of light.<br> +They're known as <font color="LEVEL">lookouts, watchers, guards, monks, prefects, seers, archons, inquisitors, guardians, sages, royal guards, and preachers</font>. </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/6.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-06.html similarity index 68% rename from L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/6.htm rename to L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-06.html index ae1fab733a..0443bbe822 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/6.htm +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-06.html @@ -1,3 +1,3 @@ -<html><body>Dimension Keeper:<br> +<html><body>Dimensional Gate Keeper:<br> It's very gratifying to see such burning ambition and passion! You're a natural! </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/5.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-07.html similarity index 73% rename from L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/5.htm rename to L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-07.html index 0b52022bb5..42ccee9b78 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/5.htm +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-07.html @@ -1,3 +1,3 @@ -<html><body>Dimension Keeper:<br> +<html><body>Dimensional Gate Keeper:<br> Your burning passion has been a great help, and now others are starting to follow your excellent example! </body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/Q00634_InSearchOfFragmentsOfDimension.java b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/Q00634_InSearchOfFragmentsOfDimension.java new file mode 100644 index 0000000000..daae27eafe --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/Q00634_InSearchOfFragmentsOfDimension.java @@ -0,0 +1,187 @@ +/* + * 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.Q00634_InSearchOfFragmentsOfDimension; + +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; + +/** + * In Search of Fragments of Dimension (634) + * @author Adry_85 + */ +public final class Q00634_InSearchOfFragmentsOfDimension extends Quest +{ + // NPCs + private static final int[] DIMENSIONAL_GATE_KEEPER = + { + 31494, + 31495, + 31496, + 31497, + 31498, + 31499, + 31500, + 31501, + 31502, + 31503, + 31504, + 31505, + 31506, + 31507 + }; + + // Item + private static final int DIMENSIONAL_FRAGMENT = 7079; + // Misc + private static final int MIN_LEVEL = 20; + // Monsters + private static final int[] MOBS = + { + 21208, // Hallowed Watchman + 21209, // Hallowed Seer + 21210, // Vault Guardian + 21211, // Vault Seer + 21212, // Hallowed Sentinel + 21213, // Hallowed Monk + 21214, // Vault Sentinel + 21215, // Vault Monk + 21216, // Overlord of the Holy Lands + 21217, // Hallowed Priest + 21218, // Vault Overlord + 21219, // Vault Priest + 21220, // Sepulcher Archon + 21221, // Sepulcher Inquisitor + 21222, // Sepulcher Archon + 21223, // Sepulcher Inquisitor + 21224, // Sepulcher Guardian + 21225, // Sepulcher Sage + 21226, // Sepulcher Guardian + 21227, // Sepulcher Sage + 21228, // Sepulcher Guard + 21229, // Sepulcher Preacher + 21230, // Sepulcher Guard + 21231, // Sepulcher Preacher + 21232, // Barrow Guardian + 21233, // Barrow Seer + 21234, // Grave Guardian + 21235, // Grave Seer + 21236, // Barrow Sentinel + 21237, // Barrow Monk + 21238, // Grave Sentinel + 21239, // Grave Monk + 21240, // Barrow Overlord + 21241, // Barrow Priest + 21242, // Grave Overlord + 21243, // Grave Priest + 21244, // Crypt Archon + 21245, // Crypt Inquisitor + 21246, // Tomb Archon + 21247, // Tomb Inquisitor + 21248, // Crypt Guardian + 21249, // Crypt Sage + 21250, // Tomb Guardian + 21251, // Tomb Sage + 21252, // Crypt Guard + 21253, // Crypt Preacher + 21254, // Tomb Guard + 21255, // Tomb Preacher + 21256, // Underground Werewolf + }; + + public Q00634_InSearchOfFragmentsOfDimension() + { + super(634, Q00634_InSearchOfFragmentsOfDimension.class.getSimpleName(), "In Search of Fragments of Dimension"); + addStartNpc(DIMENSIONAL_GATE_KEEPER); + addTalkId(DIMENSIONAL_GATE_KEEPER); + addKillId(MOBS); + } + + @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 "31494-02.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "31494-05.html": + case "31494-06.html": + { + if (qs.isStarted()) + { + htmltext = event; + } + break; + } + case "31494-07.html": + { + if (qs.isStarted()) + { + qs.exitQuest(true, true); + htmltext = event; + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon) + { + final QuestState qs = getRandomPartyMemberState(player, -1, 3, npc); + if (qs != null) + { + final int i0 = (int) ((0.15 * npc.getLevel()) + 1.6); + if (getRandom(100) < 10) + { + giveItemRandomly(qs.getPlayer(), npc, DIMENSIONAL_FRAGMENT, i0, 0, 1.0, true); + } + } + return super.onKill(npc, player, isSummon); + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + QuestState qs = getQuestState(player, true); + String htmltext = getNoQuestMsg(player); + if (qs.isCreated()) + { + htmltext = (player.getLevel() >= MIN_LEVEL) ? "31494-01.htm" : "31494-03.htm"; + } + else if (qs.isStarted()) + { + htmltext = "31494-04.html"; + } + return htmltext; + } +} diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_DataPack_BETA/dist/game/data/scripts/quests/QuestMasterHandler.java index ad115a71d2..437a8d569b 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -306,6 +306,7 @@ import quests.Q00628_HuntGoldenRam.Q00628_HuntGoldenRam; import quests.Q00629_CleanUpTheSwampOfScreams.Q00629_CleanUpTheSwampOfScreams; import quests.Q00631_DeliciousTopChoiceMeat.Q00631_DeliciousTopChoiceMeat; import quests.Q00633_InTheForgottenVillage.Q00633_InTheForgottenVillage; +import quests.Q00634_InSearchOfFragmentsOfDimension.Q00634_InSearchOfFragmentsOfDimension; import quests.Q00635_IntoTheDimensionalRift.Q00635_IntoTheDimensionalRift; import quests.Q00636_TruthBeyond.Q00636_TruthBeyond; import quests.Q00637_ThroughOnceMore.Q00637_ThroughOnceMore; @@ -671,6 +672,7 @@ public class QuestMasterHandler Q00629_CleanUpTheSwampOfScreams.class, Q00631_DeliciousTopChoiceMeat.class, Q00633_InTheForgottenVillage.class, + Q00634_InSearchOfFragmentsOfDimension.class, Q00635_IntoTheDimensionalRift.class, Q00636_TruthBeyond.class, Q00637_ThroughOnceMore.class, diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20140713update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20140713update.sql new file mode 100644 index 0000000000..0d5a51bb0d --- /dev/null +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20140713update.sql @@ -0,0 +1 @@ +UPDATE character_quests SET name='Q00634_InSearchOfFragmentsOfDimension' WHERE name='634_InSearchofDimensionalFragments'; \ No newline at end of file -- GitLab