Explorar el Código

Retail-like quest Law Enforcement (61).

Adry_85 hace 10 años
padre
commit
da7bcc3ef8
Se han modificado 32 ficheros con 281 adiciones y 115 borrados
  1. 0 1
      L2J_DataPack/dist/game/data/scripts.cfg
  2. 0 5
      L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32138-02.htm
  3. 0 5
      L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32469-01.htm
  4. 0 74
      L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/__init__.py
  5. 2 2
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-01.html
  6. 5 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-02.html
  7. 1 1
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-03.html
  8. 1 1
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-04.html
  9. 1 1
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-05.html
  10. 1 1
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-06.html
  11. 1 1
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-07.html
  12. 1 1
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-08.html
  13. 1 1
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-09.html
  14. 0 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-10.html
  15. 3 3
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32222-01.htm
  16. 2 2
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32222-02.htm
  17. 0 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32222-03.htm
  18. 2 3
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32222-04.htm
  19. 1 1
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32222-05.htm
  20. 1 1
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32222-06.html
  21. 5 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-01.html
  22. 1 1
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-02.html
  23. 2 2
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-03.html
  24. 1 1
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-04.html
  25. 1 1
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-05.html
  26. 1 1
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-06.html
  27. 4 4
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-07.html
  28. 0 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-08.html
  29. 1 1
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-09.html
  30. 239 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/Q00061_LawEnforcement.java
  31. 2 0
      L2J_DataPack/dist/game/data/scripts/quests/QuestMasterHandler.java
  32. 1 0
      L2J_DataPack/dist/sql/game/updates/20141102update.sql

+ 0 - 1
L2J_DataPack/dist/game/data/scripts.cfg

@@ -211,7 +211,6 @@ quests/22_TragedyInVonHellmannForest/__init__.py
 quests/23_LidiasHeart/__init__.py
 quests/25_HidingBehindTheTruth/__init__.py
 quests/60_GoodWorkReward/__init__.py
-quests/61_LawEnforcement/__init__.py
 quests/65_CertifiedSoulBreaker/__init__.py
 quests/66_CertifiedArbalester/__init__.py
 quests/117_OceanOfDistantStar/__init__.py

+ 0 - 5
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32138-02.htm

@@ -1,5 +0,0 @@
-<html><body>Kekropus:<br>
-Before speak of that, I must ask you if you already know the origins and purpose of the Kamael.<br>
-<a action="bypass -h Quest 61_LawEnforcement 32138-03.htm">I know.</a><br>
-<a action="bypass -h Quest 61_LawEnforcement 32138-04.htm">I don't know.</a>
-</body></html>

+ 0 - 5
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32469-01.htm

@@ -1,5 +0,0 @@
-<html><body>Vice Hierarch Eindburgh:<br>
-Are you the next Judicator?<br>
-Do you wish to be an executor of Kamael law?<br>
-<a action="bypass -h Quest 61_LawEnforcement 32469-02.htm">"I don't know."</a>
-</body></html>

+ 0 - 74
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/__init__.py

@@ -1,74 +0,0 @@
-# Created by Gnacik
-# 2010-02-20
-
-import sys
-from com.l2jserver.gameserver.model.quest import State
-from com.l2jserver.gameserver.model.quest import QuestState
-from com.l2jserver.gameserver.model.quest import Quest as JQuest
-
-qn = "61_LawEnforcement"
-
-# NPCs
-LIANE = 32222
-KEKROPUS = 32138
-EINDBURGH = 32469
-
-class Quest (JQuest) :
-
-	def __init__(self,id,name,descr):
-		JQuest.__init__(self,id,name,descr)
-
-	def onAdvEvent (self,event,npc,player) :
-		htmltext = event
-		st = player.getQuestState(qn)
-		if not st : return
-		if event == "32222-05.htm":
-			st.set("cond","1")
-			st.setState(State.STARTED)
-			st.playSound("ItemSound.quest_accept")
-		elif event == "32138-09.htm":
-			st.set("cond","2")
-			st.playSound("ItemSound.quest_middle")
-		elif event == "32469-08.htm" or event == "32469-09.htm":
-			player.setClassId(136)
-			player.broadcastUserInfo()
-			st.giveItems(57,26000)
-			st.exitQuest(False);
-			st.playSound("ItemSound.quest_finish")
-		return htmltext
-
-	def onTalk (self,npc,player) :
-		htmltext = Quest.getNoQuestMsg(player)
-		st = player.getQuestState(qn)
-		if not st : return htmltext
-
-		npcId = npc.getId()
-		cond = st.getInt("cond")
-
-		if npcId == LIANE:
-			if cond == 0:
-				if player.getRace().ordinal() == 5:
-					if player.getClassId().ordinal() == 135 and player.getLevel() >= 76:
-						htmltext = "32222-01.htm"
-					else:
-						htmltext = "32222-02.htm"
-				else:
-					htmltext = "32222-03.htm"
-			elif cond == 1:
-				htmltext = "32222-06.htm"
-		elif npcId == KEKROPUS:
-			if cond == 1:
-				htmltext = "32138-01.htm"
-			elif cond == 2:
-				htmltext = "32138-10.htm"
-		elif npcId == EINDBURGH:
-			if cond == 2:
-				htmltext = "32469-01.htm"
-		return htmltext
-
-QUEST		= Quest(61,qn,"Law Enforcement")
-
-QUEST.addStartNpc(LIANE)
-QUEST.addTalkId(LIANE)
-QUEST.addTalkId(KEKROPUS)
-QUEST.addTalkId(EINDBURGH)

+ 2 - 2
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32138-01.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-01.html

@@ -1,6 +1,6 @@
 <html><body>Kekropus:<br>
 Are you an Inspector?<br>
 Ah! I don't know how long it has been since I saw one who has mastered all the Kamael battle skills and reached the summit of our natural abilities.<br>
-Since you've opted to become an Inspector, I suspect you have a healthy curiosity. Good! It will serve you well as you discover more about your new abilities... <br>
-<a action="bypass -h Quest 61_LawEnforcement 32138-02.htm">Ask about your abilities.</a>
+Since you've opted to become an Inspector, I suspect you have a healthy curiosity. Good! It will serve you well as you discover more about your new abilities...<br>
+<a action="bypass -h Quest Q00061_LawEnforcement 32138-02.html">Ask about your abilities.</a>
 </body></html>

+ 5 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-02.html

@@ -0,0 +1,5 @@
+<html><body>Kekropus:<br>
+Before speak of that, I must ask you if you already know the origins and purpose of the Kamael.<br>
+<a action="bypass -h Quest Q00061_LawEnforcement 32138-03.html">I know.</a><br>
+<a action="bypass -h Quest Q00061_LawEnforcement 32138-09.html">I don't know.</a>
+</body></html>

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32138-03.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-03.html

@@ -3,5 +3,5 @@ Ah, then we shall begin.<br>
 As you know, the 3 Spiculas -- the 3 Heroes -- were the progenitors of our race, and the reason for our skill in battle.<br>
 During the war against the gods, they fought valiantly, even slaying some of the daughters of Einhasad. Though they fell in that war, their power was handed down through magical sword, shield and cannon, eventually becoming the basis for the three current classes of Kamael.<br>
 For more than ten thousand years, we have followed the path that they laid out for us...<br>
-<a action="bypass -h Quest 61_LawEnforcement 32138-05.htm">Listen to the story.</a>
+<a action="bypass -h Quest Q00061_LawEnforcement 32138-04.html">Listen to the story.</a>
 </body></html>

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32138-05.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-04.html

@@ -1,5 +1,5 @@
 <html><body>Kekropus:<br>
 Before the advent of the 3 Heroes, we were created with certain unrealized spiritual potential, but no particular physical or martial abilities. Our creators, the Giants, had little need of protection from ordinary physical threats -- we were an interesting experiment they conducted, little more.<br>
 We did, however, possess a special ability to use the soul as a medium. This is due to the fact that we were created using Mimir's Spring Water and as a result were closer to souls than other beings, not because the Giants intentionally bestowed that skill on us.<br>
-<a action="bypass -h Quest 61_LawEnforcement 32138-06.htm">.........</a>
+<a action="bypass -h Quest Q00061_LawEnforcement 32138-05.html">.........</a>
 </body></html>

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32138-06.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-05.html

@@ -1,4 +1,4 @@
 <html><body>Kekropus:<br>
 Because our natural powers were so weak, we were forced to develop other skills. Over time, and in order to inherit the abilities of the 3 Heroes, we learned the skill of manipulating souls. In doing so, however, we were confronted with a new question: why did we in fact possess this skill when the 3 Heroes did not?<br>
-<a action="bypass -h Quest 61_LawEnforcement 32138-07.htm">"Is that what an Inspector is?"</a>
+<a action="bypass -h Quest Q00061_LawEnforcement 32138-06.html">"Is that what an Inspector is?"</a>
 </body></html>

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32138-07.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-06.html

@@ -1,5 +1,5 @@
 <html><body>Kekropus:<br>
 Yes. However, Inspectors are not the only ones adept at manipulating soul energy.<br>
 The Kamael Nostra -- a genius born of time and chaos -- was the most skilled of all of us at manipulating soul energy. He realized that the skills of the 3 Heroes were fundamentally incompatible, and that only those who possessed certain predispositions could learn them. Accordingly, he established the skill system we now use, three patterns of development for male and female.<br>
-<a action="bypass -h Quest 61_LawEnforcement 32138-08.htm">"Tell me more about him."</a>
+<a action="bypass -h Quest Q00061_LawEnforcement 32138-07.html">"Tell me more about him."</a>
 </body></html>

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32138-08.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-07.html

@@ -1,5 +1,5 @@
 <html><body>Kekropus:<br>
 As I just said, he was a genius produced by time and chaos. He was not a Spicula like myself or the 3 Heroes, but a Metucela Kamael like you...<br>
 No one knows what became of him. Certainly a Metucela Kamael's life span is long by the standards of other races, but even he must be long dead by now.<br>
-<a action="bypass -h Quest 61_LawEnforcement 32138-09.htm">Ask what to do.</a>
+<a action="bypass -h Quest Q00061_LawEnforcement 32138-08.html">Ask what to do.</a>
 </body></html>

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32138-09.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-08.html

@@ -1,4 +1,4 @@
 <html><body>Kekropus:<br>
-Occasionally a Kamael is born who inherits his advanced skills. These individuals are very rare, but when they appear we honor his memory by granting them a position in the Hierarchy. <br>
+Occasionally a Kamael is born who inherits his advanced skills. These individuals are very rare, but when they appear we honor his memory by granting them a position in the Hierarchy.<br>
 These are Metucela Kamael, of course, not Spicula -- in other words, Inspectors just like yourself. To learn more, go speak with <font color="LEVEL">Vice Hierarch Eindburgh</font> at the end of stairs behind you.
 </body></html>

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32138-04.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-09.html

@@ -2,5 +2,5 @@
 Hmm, you have advanced this far without learning the truth of our people's origin?<br>
 You have never heard of the 3 Heroes, then.<br>
 All our martial skill is rooted in their tale...<br>
-<a action="bypass -h Quest 61_LawEnforcement 32138-05.htm">Listen to the story.</a>
+<a action="bypass -h Quest Q00061_LawEnforcement 32138-04.html">Listen to the story.</a>
 </body></html>

+ 0 - 0
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32138-10.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32138-10.html


+ 3 - 3
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32222-01.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32222-01.htm

@@ -1,6 +1,6 @@
 <html><body>Grand Master Liane:<br>
-Ah, you are here.<br>
+Ah, %name%, you are here.<br>
 You know, then, that a new power has been revealed in the Kamael. You must be curious about the nature of that power and why it was hidden for so long.<br>
 Your curiosity is entirely natural! The fact of the matter is that it was not originally envisioned that a warrior race like the <font color="LEVEL">Kamael</font> would ever possess such a supportive power...<br>
-<a action="bypass -h Quest 61_LawEnforcement 32222-04.htm">Ask about the power.</a>
-</body></html>
+<a action="bypass -h Quest Q00061_LawEnforcement 32222-02.htm">Ask about the power.</a>
+</body></html>

+ 2 - 2
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32222-04.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32222-02.htm

@@ -2,5 +2,5 @@
 As you know, Kamael skills and abilities were designed for battle.<br>
 Inspectors' powers are very different, however. An Inspector who understands his nature and devotes himself to developing them can advance further.<br>
 At the apex stands the executer of laws himself: the <font color="LEVEL">Judicator</font>.<br><br>
-<a action="bypass -h Quest 61_LawEnforcement 32222-05.htm">"Judicator?"</a>
-</body></html>
+<a action="bypass -h Quest Q00061_LawEnforcement 32222-03.htm">"Judicator?"</a>
+</body></html>

+ 0 - 0
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32222-05.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32222-03.htm


+ 2 - 3
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32222-03.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32222-04.htm

@@ -1,5 +1,4 @@
 <html><body>Grand Master Liane:<br>
-The Kamael are a warrior race, born and bred for battle. However, from time to time, some Kamael are born with a mysterious power unrelated to their martial origins.<br>
-These individuals are called <font color="LEVEL">Inspectors</font>.<br>
+The Kamael are a warrior race, born and bred for battle. However, from time to time, some Kamael are born with a mysterious power unrelated to their martial origins. These individuals are called <font color="LEVEL">Inspectors</font>.<br>
 (Only Inspectors who are Level 76 or higher may undertake this quest.)
-</body></html>
+</body></html>

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32222-02.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32222-05.htm

@@ -1,4 +1,4 @@
 <html><body>Grand Master Liane:<br>
 Unlike your other abilities, this power does not originate with the Three Heroes present at the Kamael's creation. Perhaps I will be able to tell you more someday...<br>
 (Only Inspectors who are Level 76 or higher may undertake this quest.)
-</body></html>
+</body></html>

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32222-06.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32222-06.html

@@ -1,3 +1,3 @@
 <html><body>Grand Master Liane:<br>
 If you wish to learn more about the Judicator, visit Hierarch Kekropus.
-</body></html>
+</body></html>

+ 5 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-01.html

@@ -0,0 +1,5 @@
+<html><body>Vice Hierarch Eindburgh:<br>
+%name%, are you the next Judicator?<br>
+Do you wish to be an executor of Kamael law?<br>
+<a action="bypass -h Quest Q00061_LawEnforcement 32469-02.html">"I don't know."</a>
+</body></html>

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32469-02.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-02.html

@@ -3,5 +3,5 @@ I see -- Kekropus simply told you the history and left it to me to tell you the
 Very well, then. First of all, what do you think Inspectors and Judicators are? Remember how you became an Inspector.<br>
 The composition of our race's bodies restricts Kamael males and females to different paths. In order for you to become an Inspector, you must be a child of the Kamael who is also born with <font color="LEVEL">Seeds of Chaos</font> -- a very rare occurrence.<br>
 Alternately, you must have the Seeds of Chaos in your hand. Do you?<br>
-<a action="bypass -h Quest 61_LawEnforcement 32469-03.htm">"I have the Seeds of Chaos in my hand."</a>
+<a action="bypass -h Quest Q00061_LawEnforcement 32469-03.html">"I have the Seeds of Chaos in my hand."</a>
 </body></html>

+ 2 - 2
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32469-03.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-03.html

@@ -1,6 +1,6 @@
 <html><body>Vice Hierarch Eindburgh:<br>
 I thought so. Since the Seeds of Chaos contain order out of chaos, only one child in a generation is born with the power.<br>
-It is similar to a Magic Sword or Blood Sword... <br>
+It is similar to a Magic Sword or Blood Sword...<br>
 But now, with the expansion of our race's power and its spread throughout the continent, that power may likewise be spreading.<br>
-<a action="bypass -h Quest 61_LawEnforcement 32469-04.htm">Ask about the Seeds of Chaos.</a>
+<a action="bypass -h Quest Q00061_LawEnforcement 32469-04.html">Ask about the Seeds of Chaos.</a>
 </body></html>

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32469-04.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-04.html

@@ -3,5 +3,5 @@ The Seeds of Chaos were planted by the King of Chaos to enable their recipients
 This is why the wielders of Enuma Elish can still live, despite being cursed by the gods.<br>
 If this power is manifested, we Kamael can finally free ourselves from our fate as warriors who live only for battle. One who walks this other path is the Inspector.<br>
 It is a possibility that even our creators couldn't imagine.<br>
-<a action="bypass -h Quest 61_LawEnforcement 32469-05.htm">Ask about the possibility.</a>
+<a action="bypass -h Quest Q00061_LawEnforcement 32469-05.html">Ask about the possibility.</a>
 </body></html>

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32469-05.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-05.html

@@ -2,5 +2,5 @@
 Kamael Warriors. Perfect soldiers! But even the sharpest sword is useless without a skilled wielder.<br>
 I know Kekropus has said, in the hopes that our power will not be abused, that the blade is enough for us -- but a sword is of no use unless someone draws it. We need more than simply <font color="LEVEL">a leader who keeps the blade sharp for some undetermined future</font> -- we need one unafraid to lead us into that future.<br>
 Only through decisive action can we finally become the blade of chaos our creators intended us to be, and achieve our true destiny.<br>
-<a action="bypass -h Quest 61_LawEnforcement 32469-06.htm">Ask about that destiny.</a>
+<a action="bypass -h Quest Q00061_LawEnforcement 32469-06.html">Ask about that destiny.</a>
 </body></html>

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32469-06.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-06.html

@@ -3,5 +3,5 @@ I think you know -- it is what we Kamael were created to fight against: the gods
 The power of today's adventurers is not even remotely comparable to their power. Even the strongest race on the earth, the Giants, who once controlled all the creatures and even unlocked the secrets of life, suffered defeated at their hands.<br>
 Nornil set his last hope on us, but... Can we really hope to fight the gods and <font color="LEVEL">win</font>?<br>
 I do not think so, and I speak with all the knowledge and insight inherited by the Hierarchs of Metucela since the time of Nostra, the father of the Inspectors. We Kamael were created to achieve an inherently impossible proposition. But what if, as Nostra theorized, something completely unexpected  were to happen?<br>
-<a action="bypass -h Quest 61_LawEnforcement 32469-07.htm">......</a>
+<a action="bypass -h Quest Q00061_LawEnforcement 32469-07.html">......</a>
 </body></html>

+ 4 - 4
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32469-07.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-07.html

@@ -1,8 +1,8 @@
 <html><body>Vice Hierarch Eindburgh:<br>
 Yes. An Inspector searches and judges, but a Judicator is required to make an unexpected leap in judgment. In so doing, he opens the path to the future development of the Kamael.<br>
 In the past, when this island was sealed, it was enough for us merely to maintain the edge of the sword, but now that sword has been unsheathed and we must decide where and how to wield it.<br>
-To lead our race effectively, our <font color="LEVEL">power</font> must now be spread throughout the world. rallying, leading, advising, helping.<br>
-The true strength of our power is not our skill with the blade or ability in battle. It is, rather, the self-awareness to transcend the limits imposed on us so long ago. Do you understand? <br>
-<a action="bypass -h Quest 61_LawEnforcement 32469-08.htm">Nod your head yes.</a><br>
-<a action="bypass -h Quest 61_LawEnforcement 32469-09.htm">Shake your head no.</a>
+To lead our race effectively, our <font color="LEVEL">power</font>must now be spread throughout the world. rallying, leading, advising, helping.<br>
+The true strength of our power is not our skill with the blade or ability in battle. It is, rather, the self-awareness to transcend the limits imposed on us so long ago. Do you understand?<br>
+<a action="bypass -h Quest Q00061_LawEnforcement 32469-08.html">Nod your head yes.</a><br>
+<a action="bypass -h Quest Q00061_LawEnforcement 32469-09.html">Shake your head no.</a>
 </body></html>

+ 0 - 0
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32469-08.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-08.html


+ 1 - 1
L2J_DataPack/dist/game/data/scripts/quests/61_LawEnforcement/32469-09.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/32469-09.html

@@ -4,4 +4,4 @@ But you cannot allow others to make the decision for you.<br>
 Don't you see? All you have seen, all you have experienced, show that we are heading for the final conflict and destruction.<br>
 But take heart! Execute the laws you believe should be executed. That will become one of the factors of chaos -- a variable that may yet influence that final battle.<br>
 In your soul, you are already a Judicator...
-</body></html>
+</body></html>

+ 239 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00061_LawEnforcement/Q00061_LawEnforcement.java

@@ -0,0 +1,239 @@
+/*
+ * 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.Q00061_LawEnforcement;
+
+import com.l2jserver.gameserver.model.actor.L2Npc;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.model.base.ClassId;
+import com.l2jserver.gameserver.model.quest.Quest;
+import com.l2jserver.gameserver.model.quest.QuestState;
+
+/**
+ * Law Enforcement (61)
+ * @author Adry_85
+ */
+public final class Q00061_LawEnforcement extends Quest
+{
+	// NPCs
+	private static final int LIANE = 32222;
+	private static final int KEKROPUS = 32138;
+	private static final int EINDBURGH = 32469;
+	// Misc
+	private static final int MIN_LEVEL = 76;
+	
+	public Q00061_LawEnforcement()
+	{
+		super(61, Q00061_LawEnforcement.class.getSimpleName(), "Law Enforcement");
+		addStartNpc(LIANE);
+		addTalkId(LIANE, KEKROPUS, EINDBURGH);
+	}
+	
+	@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 "32222-02.htm":
+			{
+				htmltext = event;
+				break;
+			}
+			case "32222-03.htm":
+			{
+				qs.setMemoState(1);
+				qs.startQuest();
+				htmltext = event;
+				break;
+			}
+			case "32138-01.html":
+			case "32138-02.html":
+			{
+				if (qs.isMemoState(1))
+				{
+					htmltext = event;
+				}
+				break;
+			}
+			case "32138-03.html":
+			{
+				if (qs.isMemoState(1))
+				{
+					qs.setMemoState(2);
+					htmltext = event;
+				}
+				break;
+			}
+			case "32138-04.html":
+			case "32138-05.html":
+			case "32138-06.html":
+			case "32138-07.html":
+			{
+				if (qs.isMemoState(2) || qs.isMemoState(3))
+				{
+					htmltext = event;
+				}
+				break;
+			}
+			case "32138-08.html":
+			{
+				if (qs.isMemoState(2) || qs.isMemoState(3))
+				{
+					qs.setMemoState(4);
+					qs.setCond(2, true);
+					htmltext = event;
+				}
+				break;
+			}
+			case "32138-09.html":
+			{
+				if (qs.isMemoState(1))
+				{
+					qs.setMemoState(3);
+					htmltext = event;
+				}
+				break;
+			}
+			case "32469-02.html":
+			{
+				if (qs.isMemoState(4))
+				{
+					qs.setMemoState(5);
+					htmltext = event;
+				}
+				break;
+			}
+			case "32469-03.html":
+			case "32469-04.html":
+			case "32469-05.html":
+			case "32469-06.html":
+			case "32469-07.html":
+			{
+				if (qs.isMemoState(5))
+				{
+					htmltext = event;
+				}
+				break;
+			}
+			case "32469-08.html":
+			case "32469-09.html":
+			{
+				if (qs.isMemoState(5))
+				{
+					player.setClassId(136);
+					// SystemMessage and cast skill is done by setClassId
+					player.broadcastUserInfo();
+					giveAdena(player, 26000, true);
+					qs.exitQuest(false, true);
+					htmltext = event;
+				}
+				break;
+			}
+		}
+		return htmltext;
+	}
+	
+	@Override
+	public String onTalk(L2Npc npc, L2PcInstance player)
+	{
+		QuestState qs = getQuestState(player, true);
+		String htmltext = getNoQuestMsg(player);
+		if (qs.isCompleted() && (npc.getId() == LIANE))
+		{
+			htmltext = getAlreadyCompletedMsg(player);
+		}
+		else if (qs.isCreated())
+		{
+			if (player.getLevel() >= MIN_LEVEL)
+			{
+				if (player.getClassId() == ClassId.inspector)
+				{
+					final String html = getHtm(player.getHtmlPrefix(), "32222-01.htm");
+					return html.replace("%name%", player.getName());
+				}
+				htmltext = "32222-04.htm";
+			}
+			else
+			{
+				htmltext = "32222-05.htm";
+			}
+		}
+		else if (qs.isStarted())
+		{
+			switch (npc.getId())
+			{
+				case LIANE:
+				{
+					if (qs.isMemoState(1))
+					{
+						htmltext = "32222-06.html";
+					}
+					break;
+				}
+				case KEKROPUS:
+				{
+					switch (qs.getMemoState())
+					{
+						case 1:
+						{
+							htmltext = "32138-01.html";
+							break;
+						}
+						case 2:
+						{
+							htmltext = "32138-03.html";
+							break;
+						}
+						case 3:
+						{
+							htmltext = "32138-10.html";
+							break;
+						}
+						case 4:
+						{
+							htmltext = "32138-10.html";
+							break;
+						}
+					}
+					break;
+				}
+				case EINDBURGH:
+				{
+					if (qs.isMemoState(4))
+					{
+						final String html = getHtm(player.getHtmlPrefix(), "32469-01.html");
+						return html.replace("%name%", player.getName());
+					}
+					else if (qs.isMemoState(5))
+					{
+						htmltext = "32469-02.html";
+					}
+					break;
+				}
+			}
+		}
+		return htmltext;
+	}
+}

+ 2 - 0
L2J_DataPack/dist/game/data/scripts/quests/QuestMasterHandler.java

@@ -70,6 +70,7 @@ import quests.Q00050_LanoscosSpecialBait.Q00050_LanoscosSpecialBait;
 import quests.Q00051_OFullesSpecialBait.Q00051_OFullesSpecialBait;
 import quests.Q00052_WilliesSpecialBait.Q00052_WilliesSpecialBait;
 import quests.Q00053_LinnaeusSpecialBait.Q00053_LinnaeusSpecialBait;
+import quests.Q00061_LawEnforcement.Q00061_LawEnforcement;
 import quests.Q00062_PathOfTheTrooper.Q00062_PathOfTheTrooper;
 import quests.Q00063_PathOfTheWarder.Q00063_PathOfTheWarder;
 import quests.Q00064_CertifiedBerserker.Q00064_CertifiedBerserker;
@@ -467,6 +468,7 @@ public class QuestMasterHandler
 		Q00051_OFullesSpecialBait.class,
 		Q00052_WilliesSpecialBait.class,
 		Q00053_LinnaeusSpecialBait.class,
+		Q00061_LawEnforcement.class,
 		Q00062_PathOfTheTrooper.class,
 		Q00063_PathOfTheWarder.class,
 		Q00064_CertifiedBerserker.class,

+ 1 - 0
L2J_DataPack/dist/sql/game/updates/20141102update.sql

@@ -0,0 +1 @@
+UPDATE character_quests SET name='Q00061_LawEnforcement' WHERE name='61_LawEnforcement';