Просмотр исходного кода

BETA: Retail-like quest '''In Search of Fragments of Dimension''' (634).

Adry_85 10 лет назад
Родитель
Сommit
55da2a9371
29 измененных файлов с 226 добавлено и 104 удалено
  1. 1 1
      L2J_DataPack_BETA/dist/game/data/html/default/31494.htm
  2. 1 1
      L2J_DataPack_BETA/dist/game/data/html/default/31495.htm
  3. 1 1
      L2J_DataPack_BETA/dist/game/data/html/default/31496.htm
  4. 1 1
      L2J_DataPack_BETA/dist/game/data/html/default/31497.htm
  5. 1 1
      L2J_DataPack_BETA/dist/game/data/html/default/31498.htm
  6. 1 1
      L2J_DataPack_BETA/dist/game/data/html/default/31499.htm
  7. 1 1
      L2J_DataPack_BETA/dist/game/data/html/default/31500.htm
  8. 1 1
      L2J_DataPack_BETA/dist/game/data/html/default/31501.htm
  9. 1 1
      L2J_DataPack_BETA/dist/game/data/html/default/31502.htm
  10. 1 1
      L2J_DataPack_BETA/dist/game/data/html/default/31503.htm
  11. 1 1
      L2J_DataPack_BETA/dist/game/data/html/default/31504.htm
  12. 1 1
      L2J_DataPack_BETA/dist/game/data/html/default/31505.htm
  13. 1 1
      L2J_DataPack_BETA/dist/game/data/html/default/31506.htm
  14. 1 1
      L2J_DataPack_BETA/dist/game/data/html/default/31507.htm
  15. 0 1
      L2J_DataPack_BETA/dist/game/data/scripts.cfg
  16. 0 4
      L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/2.htm
  17. 0 5
      L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/2a.htm
  18. 0 7
      L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/4.htm
  19. 0 67
      L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/__init__.py
  20. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-01.htm
  21. 5 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-02.htm
  22. 1 1
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-03.htm
  23. 7 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-04.html
  24. 3 3
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-05.html
  25. 1 1
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-06.html
  26. 1 1
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/31494-07.html
  27. 187 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00634_InSearchOfFragmentsOfDimension/Q00634_InSearchOfFragmentsOfDimension.java
  28. 2 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/QuestMasterHandler.java
  29. 1 0
      L2J_DataPack_BETA/dist/sql/game/updates/20140713update.sql

+ 1 - 1
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>

+ 1 - 1
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>

+ 1 - 1
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>

+ 1 - 1
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>

+ 1 - 1
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>

+ 1 - 1
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>

+ 1 - 1
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>

+ 1 - 1
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>

+ 1 - 1
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>

+ 1 - 1
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>

+ 1 - 1
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>

+ 1 - 1
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>

+ 1 - 1
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>

+ 1 - 1
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>

+ 0 - 1
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

+ 0 - 4
L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/2.htm

@@ -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>

+ 0 - 5
L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/2a.htm

@@ -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>

+ 0 - 7
L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/4.htm

@@ -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>

+ 0 - 67
L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/__init__.py

@@ -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)

+ 4 - 0
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>

+ 5 - 0
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>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/1.htm → 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>

+ 7 - 0
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>

+ 3 - 3
L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/3.htm → 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>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/6.htm → 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>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/scripts/quests/634_InSearchofDimensionalFragments/5.htm → 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>

+ 187 - 0
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;
+	}
+}

+ 2 - 0
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,

+ 1 - 0
L2J_DataPack_BETA/dist/sql/game/updates/20140713update.sql

@@ -0,0 +1 @@
+UPDATE character_quests SET name='Q00634_InSearchOfFragmentsOfDimension' WHERE name='634_InSearchofDimensionalFragments';