Ver Fonte

BETA: '''Meeting the Elroki''' Quest from Jython to Java.

Adry_85 há 12 anos atrás
pai
commit
1f00c281de
46 ficheiros alterados com 401 adições e 189 exclusões
  1. 1 1
      L2J_DataPack_BETA/dist/game/data/scripts.cfg
  2. 0 4
      L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32113-01a.htm
  3. 0 7
      L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32113-02.htm
  4. 0 5
      L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32114-01.htm
  5. 0 3
      L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32114-02.htm
  6. 0 6
      L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32115-01.htm
  7. 0 5
      L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32117-01.htm
  8. 0 6
      L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32117-02.htm
  9. 0 5
      L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32117-03.htm
  10. 0 3
      L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32117-03a.htm
  11. 0 3
      L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32117-04.htm
  12. 0 4
      L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32118-01.htm
  13. 0 115
      L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/__init__.py
  14. 4 3
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-01.htm
  15. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-01a.htm
  16. 8 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-02.htm
  17. 4 3
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-03.html
  18. 3 2
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-04.html
  19. 7 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-05.html
  20. 3 2
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-06.html
  21. 5 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-07.html
  22. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32114-01.html
  23. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32114-02.html
  24. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32114-03.html
  25. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32114-04.html
  26. 5 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-01.html
  27. 7 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-02.html
  28. 7 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-03.html
  29. 5 3
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-04.html
  30. 4 3
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-05.html
  31. 5 3
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-06.html
  32. 5 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-07.html
  33. 5 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-08.html
  34. 3 2
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-09.html
  35. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32117-01.html
  36. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32117-02.html
  37. 7 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32117-03.html
  38. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32117-04.html
  39. 6 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32117-05.html
  40. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32117-06.html
  41. 5 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32117-07.html
  42. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32118-01.html
  43. 4 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32118-02.html
  44. 5 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32118-03.html
  45. 2 1
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32118-04.html
  46. 241 0
      L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/Q124_MeetingTheElroki.java

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/scripts.cfg

@@ -341,7 +341,7 @@ quests/120_PavelsResearch/__init__.py
 quests/121_PavelTheGiants/__init__.py
 quests/122_OminousNews/__init__.py
 quests/123_TheLeaderAndTheFollower/__init__.py
-quests/124_MeetingTheElroki/__init__.py
+quests/Q124_MeetingTheElroki/Q124_MeetingTheElroki.java
 quests/125_TheNameOfEvil1/__init__.py
 quests/Q126_TheNameOfEvil2/Q126_TheNameOfEvil2.java
 quests/130_PathToHellbound/__init__.py

+ 0 - 4
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32113-01a.htm

@@ -1,4 +0,0 @@
-<html><body>Marquez:<br>
-I don't think you're ready.<br>
-(This quest can only be undertaken by a character of level 75 or above.)
-</body></html>

+ 0 - 7
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32113-02.htm

@@ -1,7 +0,0 @@
-<html><body>Marquez:<br>
-The conflict between Humans and Elrokhians began when the explorers built this wharf and maintained a presence here.<br>
-Our two races are divided by differences in culture and language. What seems normal to one is often strange, even offensive, to the other. Despite my efforts to teach both sides to live together in harmony, misunderstandings are common. Blood has been spilled on more than one occasion, and the peace that now exist is fragile at best.<br>
-The Humans see the Elroki tribe as nothing more than violent savages, while the Elrokhians see Humans as invaders. How can either side learn to respect the other?<br>
-I tell you this because you seem to have no prejudice against the Elroki tribe -- will you help me help them?<br>
-<a action="bypass -h Quest 124_MeetingTheElroki 32113-03.htm">Tell him that you will help.</a>
-</body></html>

+ 0 - 5
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32114-01.htm

@@ -1,5 +0,0 @@
-<html><body>Mushika:<br>
-Uh... Shilen, our mother... Do not abandon your chosen people, the Elroki tribe...<br>
-Elroki! Bestow on us your mighty power...<br>
-<a action="bypass -h Quest 124_MeetingTheElroki 32114-02.htm">He seems to be delirious because of fever. Tell him that you are here at Marquez' request.</a>
-</body></html>

+ 0 - 3
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32114-02.htm

@@ -1,3 +0,0 @@
-<html><body>Mushika:<br>
-Ma...Marquez! My friend...(coughing)...I'm sorry. Before...your book...is...finished...I, Mushika...musto...go to...Shilen's side. Please, call my...son...Asamah...(coughing)...
-</body></html>

+ 0 - 6
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32115-01.htm

@@ -1,6 +0,0 @@
-<html><body>Asamah:<br>
-Perhaps you should listen to this story to better understand the situation. You have already heard the tale of how my father and Marquez met, haven't you?<br>
-The<font color="LEVEL"> Lost Nest</FONT> where they met is a very important place for the Elroki tribe.<br>
-According to legend, it is the place where the goddess of water, Shilen, the mother and founder of this primitive island, blessed the Elrokians, transforming them into the bravest warriors the world has ever known.<br>
-<a action="bypass -h Quest 124_MeetingTheElroki 32115-02.htm">"Tell me more about the Elroki tribe."</a>
-</body></html>

+ 0 - 5
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32117-01.htm

@@ -1,5 +0,0 @@
-<html><body>Karakawei:<br>
-Friend of the Elroki, be welcome here. You need not tell me who you are or why you are -- the ancestors surrounding me have already told me that you are the outsider destined by fate to save the Elroki tribe from the evil facing it.<br>
-Outsider, my ancestors wish to convey a message to you through me. Are you ready to hear it?<br>
-<a action="bypass -h Quest 124_MeetingTheElroki 32117-02.htm">Say that you are ready.</a>
-</body></html>

+ 0 - 6
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32117-02.htm

@@ -1,6 +0,0 @@
-<html><body>Karakawei:<br>
-Alas, our chief, Mushika, should have never begun the exploration. His arrogance aroused the wrath of our ancestors and brought on his illnes. But Shilen has promised that Mushika would not perish, and will soon recover to help save the Elroki tribe. The key to his recovery lies in your willingness, fated outsider, to help our people.<br>
-Wait! One of my departed ancestors wishes to speak with you through me.<br>
-<a action="bypass -h Quest 124_MeetingTheElroki 32117-03a.htm">Talk to Karakawei while he is chanting a spell of invocation.</a><br>
-<a action="bypass -h Quest 124_MeetingTheElroki 32117-03.htm">Talk to Karakawei after the spirit of his Elrokian ancestor enters him.</a>
-</body></html>

+ 0 - 5
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32117-03.htm

@@ -1,5 +0,0 @@
-<html><body>Karakawei:<br>
-Lost to my people's memory, unremembered and unknown, I, Elrokian of old, speak with you!<br>
-The wisdom of the ancestors is this: find the egg laid by the dinosaur Mantarasa. The love of the gods has bestowed it with the gift of immortality and healing. Make your mind light as the bird's feather and clean as the morning sun, and go north.<br>
-The<font color="LEVEL"> Mantarasa Egg</FONT> is on<font color="LEVEL"> the border between the Primeval Plains and the Lost Nest</FONT>. Only the Mantarasa Egg can save these poor children of the Elroki. May their glory return to them!
-</body></html>

+ 0 - 3
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32117-03a.htm

@@ -1,3 +0,0 @@
-<html><body>Karakawei:<br>
-Wait! One of my departed ancestors wishes to speak with you through me.
-</body></html>

+ 0 - 3
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32117-04.htm

@@ -1,3 +0,0 @@
-<html><body>Karakawei:<br>
-The<font color="LEVEL"> Mantarasa Egg</FONT> is on<font color="LEVEL"> the border between the Primeval Plains and the Lost Nest</FONT>. Only the Mantarasa Egg can save these poor children of the Elroki. May their glory return to them!
-</body></html>

+ 0 - 4
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32118-01.htm

@@ -1,4 +0,0 @@
-<html><body>Mantarasa Egg:<br>
-It may be the Mantarasa Egg. Its shell resembles that of a giant tortoise. When you touch it, it feels suprisingly warm.<br>
-<a action="bypass -h Quest 124_MeetingTheElroki 32118-02.htm">Take the egg.</a>
-</body></html>

+ 0 - 115
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/__init__.py

@@ -1,115 +0,0 @@
-#Made by Kerb
-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 = "124_MeetingTheElroki"
-
-#Npc
-MARQUEZ = 32113
-MUSHIKA = 32114
-ASAMAH = 32115
-KARAKAWEI = 32117
-MANTARASA = 32118
-#Items
-M_EGG = 8778
-
-class Quest (JQuest) :
-
- def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
-
- def onAdvEvent (self,event,npc, player) :
-     st = player.getQuestState(qn)
-     if not st : return
-     cond = st.getInt("cond")
-     htmltext = event
-
-     if event == "32113-02.htm" :
-       st.setState(State.STARTED) 
-     if event == "32113-03.htm" :
-       if cond == 0 :
-         st.set("cond","1")
-         st.playSound("ItemSound.quest_accept")
-     if event == "32113-04.htm" :
-       if cond == 1 :
-         st.set("cond","2")
-         st.playSound("ItemSound.quest_middle")
-     if event == "32114-02.htm" :
-       if cond == 2 :
-         st.set("cond","3")
-         st.playSound("ItemSound.quest_itemget")
-     if event == "32115-04.htm" :
-       if cond == 3 :
-         st.set("cond","4")
-         st.playSound("ItemSound.quest_itemget")
-     if event == "32117-02.htm" :
-       if cond == 4 :
-         st.set("progress","MIDDLE")
-     if event == "32117-03.htm" :
-       if cond == 4 :
-         st.set("cond","5")
-         st.playSound("ItemSound.quest_itemget")
-     if event == "32118-02.htm" :
-       if cond == 5 :
-         st.giveItems(M_EGG,1)
-         st.set("cond","6")
-         st.playSound("ItemSound.quest_middle")
-     return htmltext
-
-
- def onTalk (self,npc,player):
-     htmltext = Quest.getNoQuestMsg(player)
-     st = player.getQuestState(qn)
-     if not st : return htmltext
-     npcId = npc.getNpcId()
-     id = st.getState()
-     cond = st.getInt("cond")
-
-     if id == State.COMPLETED :
-         htmltext = Quest.getAlreadyCompletedMsg(player)
-     elif npcId == MARQUEZ:
-         if id == State.CREATED :
-             if player.getLevel() < 75 :
-                 htmltext = "32113-01a.htm"
-                 st.exitQuest(1)
-             else :
-                 htmltext = "32113-01.htm"
-         elif cond == 1 :
-             htmltext = "32113-03.htm"
-         elif cond == 2 :
-             htmltext = "32113-04a.htm"
-     elif npcId == MUSHIKA and cond == 2 :
-         htmltext = "32114-01.htm"
-     elif npcId == ASAMAH :
-         if cond == 3 :
-             htmltext = "32115-01.htm"
-         elif cond == 6 :
-            htmltext = "32115-05.htm"
-            st.takeItems(M_EGG,1)
-            st.giveItems(57,100013)
-            st.addExpAndSp(301922,30294)
-            st.exitQuest(False)
-            st.set("cond","0")
-            st.playSound("ItemSound.quest_finish")
-     elif npcId == KARAKAWEI :
-         if cond == 4 :
-             htmltext = "32117-01.htm"
-             if st.get("progress") : #check if the variable has been set
-                 if st.get("progress")== "MIDDLE": #if set, check its value...
-                     htmltext = "32117-02.htm"
-         elif cond == 5 :
-            htmltext = "32117-04.htm"
-     elif npcId == MANTARASA and cond == 5 :
-         htmltext = "32118-01.htm"
-     return htmltext
-
-QUEST       = Quest(124,qn,"Meeting The Elroki")
-
-QUEST.addStartNpc(MARQUEZ)
-QUEST.addTalkId(MARQUEZ)
-QUEST.addTalkId(MUSHIKA)
-QUEST.addTalkId(ASAMAH)
-QUEST.addTalkId(KARAKAWEI)
-QUEST.addTalkId(MANTARASA)

+ 4 - 3
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32113-01.htm → L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-01.htm

@@ -1,6 +1,7 @@
-<html><body>Marquez:<br>
+<html><body>
+Marquez:<br>
 Have you heard of the natives of this island, the Elroki tribe? Perhaps you've heard the common drivel about an uncivilized race abandoned by the gods, beset by primitive and ferocious creatures. Hogwash!<br>
-Those rumors are spread by people ignorant of the truth. The Elrokhians I know are different than us, but no less intelligent. Their culture is steeped in tradition, in fact.<br>
+Those rumors are spread by people ignorant of the truth. The Elrokians I know are different than us, but no less intelligent. Their culture is steeped in tradition, in fact.<br>
 And I will never forget the aid they gave me and my expedition.<br>
-<a action="bypass -h Quest 124_MeetingTheElroki 32113-02.htm">Ask when the conflict between humans and Elrokhians began.</a>
+<a action="bypass -h Quest 124_MeetingTheElroki 32113-02.htm">Ask when the conflict between humans and Elrokians began.</a>
 </body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-01a.htm

@@ -0,0 +1,6 @@
+<html><body>
+Marquez:<br>
+Do not judge the Primeval Isle by only looking at this wharf. It is a dangerous place where primitive dinosaurs hide in the thick jungle, waiting for weak ones like you to wander by unawares! I've seen many like you who came to a bad end here!<br>
+Exploring this island is not something to be done on a whim, mark my words. One day, when you are more experienced, you may be ready to explore its mysteries.<br>
+(Only characters level 75 and above are permitted to take on this quest.)
+</body></html>

+ 8 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-02.htm

@@ -0,0 +1,8 @@
+<html><body>
+Marquez:<br>
+The conflict between Humans and Elrokians began when the explorers built this wharf and maintained a presence here.<br>
+Our two races are divided by differences in culture and language; what seems normal to one is often strange, even offensive, to the other. Despite my efforts to teach both sides to live together in harmony, misunderstandings are common. Blood has been spilled on more than one occasion, and the peace that now exists here is fragile at best.<br>
+The Humans see the Elroki tribe as nothing more than violent savages, while the Elrokians see Humans as invaders. How can either side learn to respect the other?<br>
+I tell you this because you seem to have no prejudice against the Elroki tribe -- will you help me help them?<br>
+<a action="bypass -h Quest 124_MeetingTheElroki 32113-03.html">Tell him that you will help.</a>
+</body></html>

+ 4 - 3
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32113-03.htm → L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-03.html

@@ -1,6 +1,7 @@
-<html><body>Marquez:<br>
-Thank you! Then listen carefully.<font color="LEVEL"> I have received news of the Elrokian chief, Mushika,</FONT> the leader of his tribe.<br>
+<html><body>
+Marquez:<br>
+Thank you! Then listen carefully. <font color="LEVEL">I have received news of the Elrokian chief, Mushika,</font> the leader of his tribe.<br>
 In his youth, he ventured into the Lost Nest in search of relics that could shed light on his people's history. During that time, I led an expedition to the Lost Nest which nearly met with disaster. Only Mushika's intervention saved us, and he and I became good friends.<br>
 But I recently received a letter from him in which he tells me that he is dying from some disease. The pain must be unbearable, since it seems that his son Asamah had to finish the letter for him.<br>
-<a action="bypass -h Quest 124_MeetingTheElroki 32113-04.htm">"What kind of disease?"</a>
+<a action="bypass -h Quest 124_MeetingTheElroki 32113-04.html">"What kind of disease?"</a>
 </body></html>

+ 3 - 2
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32113-04.htm → L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-04.html

@@ -1,5 +1,6 @@
-<html><body>Marquez:<br>
+<html><body>
+Marquez:<br>
 I don't know... His son Asamah wrote that he thinks he has found a cure, but needs a strong young adventurer to obtain it.<br>
 Were I younger, I would go myself...but I know in my heart that this is a task for another. If I cannot go, though, I will at least send someone worthy of this trust, one who can help me repay the life-debt I owe Mushika.<br>
-Will you go and help? You will find Mushika and his son Asamah in the Elrokian tribal chief barracks located southeast of the Primeval Plains. To get there, though, you will need help of a native warrior named<font color="LEVEL"> Orahochin</FONT> who lives near the foot of the mountain that lies between the southern shore of the Primeval Plains and the Lost Nest. When you get to the Elroki camp, visit<font color="LEVEL"> Mushika</FONT> first if possible, but do not forget to speak with<font color="LEVEL"> Asamah</FONT> as well.
+Will you go and help? You will find Mushika and his son Asamah in the Elrokian tribal chief barracks located southeast of the Primeval Plains. To get there, though, you will need the help of a native warrior named <font color="LEVEL">Orahochin</font> who lives near the foot of the mountain that lies between the southern shore of the Primeval Plains and the Lost Nest. When you get to the Elroki camp, visit <font color="LEVEL">Mushika</font> first if possible, but do not forget to speak with <font color="LEVEL">Asamah</font> as well.
 </body></html>

+ 7 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-05.html

@@ -0,0 +1,7 @@
+<html><body>
+Marquez:<br>
+<font color="LEVEL">I have received news of the Elrokian chief, Mushika,</font> the leader of his tribe.<br>
+In his youth, he ventured into the Lost Nest in search of relics that could shed light on his people's history. During that time, I led an expedition to the Lost Nest which nearly met with disaster. Only Mushika's intervention saved us, and he and I became good friends.<br>
+But I recently received a letter from him in which he tells me that he is dying from some disease. The pain must be unbearable, since it seems that his son Asamah had to finish the letter for him.<br>
+<a action="bypass -h Quest 124_MeetingTheElroki 32113-04.html">"What kind of disease?"</a>
+</body></html>

+ 3 - 2
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32113-04a.htm → L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-06.html

@@ -1,4 +1,5 @@
-<html><body>Marquez:<br>
-Are you afraid to face Elroki tribe? My friend, Mushika's life is a stake!<br>
+<html><body>
+Marquez:<br>
+Are you afraid to face the Elroki tribe? My friend, Mushika's life is at stake!<br>
 Every moment of hesitation is another moment lost. I beg you, travel immediately to the Elroki tribal barracks located southeast of the Primeval Plains and there meet Mushika.
 </body></html>

+ 5 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32113-07.html

@@ -0,0 +1,5 @@
+<html><body>
+Marquez:<br>
+You! Haven't you already left for the Primeval Isle? You haven't been at the wharf, have you? I don't know why you've come back here, but please -- go now! My friend, Mushika, is dying; any delay might be fatal to him.<br>
+I have been visiting the wharf every day in the hope that news will come from the island that he has been cured. Don't disappoint me!
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32114-01.html

@@ -0,0 +1,4 @@
+<html><body>
+Mushika:<br>
+Invader...(coughing)...invader!
+</body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32114-02.html

@@ -0,0 +1,6 @@
+<html><body>
+Mushika:<br>
+Uh... Shilen, our mother... Do not abandon your chosen people, the Elroki tribe...<br>
+Elroki! Bestow on us your mighty power...<br>
+<a action="bypass -h Quest 124_MeetingTheElroki 32114-04.html">He seems to be delirious because of fever. Tell him that you are here at Marquez' request.</a>
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32114-03.html

@@ -0,0 +1,4 @@
+<html><body>
+Mushika:<br>
+My son...Asamah...(coughing)... Do you not...see...him...there?
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32114-04.html

@@ -0,0 +1,4 @@
+<html><body>
+Mushika:<br>
+Ma...Marquez! My friend...(coughing)...I'm sorry. Before... your book...is...finished...I, Mushika...must...go to...Shilen's side. Please, call my...son...Asamah...(coughing)...
+</body></html>

+ 5 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-01.html

@@ -0,0 +1,5 @@
+<html><body>
+Asamah:<br>
+It is no easy task for any outsider to come and find the Elroki tribe these days. Personally, I have no quarrel with outsiders, but I can't say that our warriors share that sentiment.<br>
+In any event, you have invaded the chief's barracks, and that is an insult for which they will wish to punish you... perhaps harshly. This is your last chance -- leave here quietly before the guard returns!
+</body></html>

+ 7 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-02.html

@@ -0,0 +1,7 @@
+<html><body>
+Asamah:<br>
+Marquez sent you? Thanks be to Shilen! I am Asamah, who asked Marquez to send an adventurer to help us.<br>
+You spoke a little while ago with my father, Chief Mushika. He is only a shadow of his former self, tied to this life only by his will and his warrior pride. He is in such agony of body and spirit that the people are frightened out of their wits!<br>
+We have never seen such an illness and do not know how to cure it. We are powerless even to soothe some of his pain! But with your coming I have hope at last! It is as if Shilen herself has answered my prayers.<br>
+<a action="bypass -h Quest 124_MeetingTheElroki 32115-03.html">Ask him to provide more details regarding the situation.</a>
+</body></html>

+ 7 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-03.html

@@ -0,0 +1,7 @@
+<html><body>
+Asamah:<br>
+Perhaps you should listen to this story to better understand the situation. You have already heard the tale of how my father and Marquez met, haven't you?<br>
+The <font color="LEVEL">Lost Nest</font> where they met is a very important place for the Elroki tribe.<br>
+According to legend, it is the place where the goddess of water, Shilen, the mother and founder of this Primeval Island, blessed the Elrokians, transforming them into the bravest warriors the world has ever known.<br>
+<a action="bypass -h Quest 124_MeetingTheElroki 32115-04.html">"Tell me more about the Elroki tribe."</a>
+</body></html>

+ 5 - 3
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32115-02.htm → L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-04.html

@@ -1,6 +1,8 @@
-<html><body>Asamah:<br>
-If we had more time, I could tell you fantastic tales about the ancient Elrokian warriors, whose courage and skill awed even the mighty-limbed dinosaurus.<br>
+<html><body>
+Asamah:<br>
+Long, long ago, Shilen placed ancient creatures on the Primeval Isle. While her power kept these dangerous beings known as dinosaurs in check, she also, in her wisdom, allowed our ancestors to govern them.<br>
+If we had more time, I could tell you fantastic tales about the ancient Elrokian warriors, whose courage and skill awed even the mighty-limbed dinosaurs.<br>
 But now, we have fallen so far from those heights that the world refuses to believe we are even descended from that heroic race.<br>
 My father always said that the first and most important duty of the Elrokian chief is to bring forth to our people the lost truth of our heritage, that we are the descendants of the Elrokians and chosen by the goddess herself. He believed we would find that proof in the Lost Nest, deep in the island's wild interior.<br>
-<a action="bypass -h Quest 124_MeetingTheElroki 32115-03.htm">Ask if his father's illness has anything to do with the Lost Nest.</a>
+<a action="bypass -h Quest 124_MeetingTheElroki 32115-05.html">Ask if his father's illness has anything to do with the Lost Nest.</a>
 </body></html>

+ 4 - 3
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32115-03.htm → L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-05.html

@@ -1,6 +1,7 @@
-<html><body>Asamah:<br>
+<html><body>
+Asamah:<br>
 Yes, or so the shaman Karakawei and I believe. My father is the only Elrokian to have explored the Lost Nest, bringing back the ancient relic. He has truly devoted his entire life to restoring the lost stature of the Elroki tribe.<br>
 Despite his efforts, some malcontents accused him of dwelling on the past while neglecting the present. Now their influence has spread like a grass fire in summer.<br>
-Amidst all this chaos, my father fell ill, and I have searched everywhere for a cure. Eventually, I found references in the ancient tomes about a mysterious medicine capable of healing any illness. It was know to the ancient Elrokians back when they inhabited the Lost Nest.<br>
-<a action="bypass -h Quest 124_MeetingTheElroki 32115-04.htm">Ask about the mysterious medicine in detail.</a>
+Amidst all this chaos, my father fell ill, and I have searched everywhere for a cure. Eventually, I found references in the ancient tomes about a mysterious medicine capable of healing any illness. It was known to the ancient Elrokians back when they inhabited the Lost Nest.<br>
+<a action="bypass -h Quest 124_MeetingTheElroki 32115-06.html">Ask about the mysterious medicine in detail.</a>
 </body></html>

+ 5 - 3
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32115-04.htm → L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-06.html

@@ -1,5 +1,7 @@
-<html><body>Asamah:<br>
+<html><body>
+Asamah:<br>
 Unfortunately, all I could discover was when the medicine existed. So I asked the shaman Karakawei to summon the spirits of the Elrokians of that time and ask them where the medicine is.<br>
-Karakawei knew the risk, but for my sake he attempted to summon our ancestors' spirit. For many days, his efforts were in vain, but finally he was able to contact a spirit who possessed knowledge of the medicine's whereabouts. Since then we've been anxiously waiting for an adventurer with the courage and skill to recover it for us.<br>
-There is not a moment to spare! Please go straight to Karakawei -- you'll probably find him praying around the barracks. After you've obtained the medicine, please return to me at once. In the meantime, I will attempt to discover the cause of this illness while protecting my father from the riots.
+Karakawei knew the risks, but for my sake he attempted to summon our ancestors' spirits. For many days, his efforts were in vain, but finally he was able to contact a spirit who possessed knowledge of the medicine's whereabouts. Since then we've been anxiously waiting for an adventurer with the courage and skill to recover it for us.<br>
+There is not a moment to spare! Please go straight to Karakawei -- you'll probably find him praying around the barracks. After you've obtained the medicine, please return to me at once. In the meantime, I will attempt to discover the cause of this illness while protecting my father from the riots.<br>
+May Shilen guard your steps!
 </body></html>

+ 5 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-07.html

@@ -0,0 +1,5 @@
+<html><body>
+Asamah:<br>
+We cannot waste any more time! Please go straight to Karakawei and ask for his help.<br>
+I suspect that you will likely find him praying near the barracks.
+</body></html>

+ 5 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-08.html

@@ -0,0 +1,5 @@
+<html><body>
+Asamah:<br>
+You received no help from Karakawei? Or were you simply too frightened to take the medicine?<br>
+Courage! You are under the protection of Shilen and the ancient Elrokians. Simply listen to your instincts and fate will guide your course. Calm your worries and concentrate on finding the medicine, I beg you!
+</body></html>

+ 3 - 2
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32115-05.htm → L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32115-09.html

@@ -1,5 +1,6 @@
-<html><body>Asamah:<br>
+<html><body>
+Asamah:<br>
 Is this the mysterious medicine? Blessed are you, Shilen! Thank you, my friend. Now we must wait to see if it is Shilen's will whether my father recovers or perishes.<br>
-Whatever the result, you will be a friend of the Elroki forever, always present in our hearts and welcome at our hearts.<br>
+Whatever the result, you will be a friend of the Elroki forever, always present in our hearts and welcome at our hearths.<br>
 If my father's health does improve, as I believe it will, I know he will wish to speak with you again.
 </body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32117-01.html

@@ -0,0 +1,6 @@
+<html><body>
+Karakawei:<br>
+You, outsider! Are you lost?<br>
+Fate has not decreed that we should meet yet. Hasten back to where you belong; there wise Elrokians will awaken you.<br>
+Be patient and the ancestors will speak to you in time. 
+</body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32117-02.html

@@ -0,0 +1,6 @@
+<html><body>
+Karakawei:<br>
+Friend of the Elroki, be welcome here. You need not tell me who you are or why are you here -- the ancestors surrounding me have already told me that you are the outsider destined by fate to save the Elroki tribe from the evil facing it.<br>
+Outsider, my ancestors wish to convey a message to you through me. Are you ready to hear it?<br>
+<a action="bypass -h Quest 124_MeetingTheElroki 32117-03.html">Say that you are ready.</a>
+</body></html>

+ 7 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32117-03.html

@@ -0,0 +1,7 @@
+<html><body>
+Karakawei:<br>
+Alas, our chief, Mushika, should have never begun the exploration. His arrogance aroused the wrath of our ancestors and brought on his illness. But Shilen has promised that Mushika would not perish, and will soon recover to help save the Elroki tribe. The key to his recovery lies in your willingness, fated outsider, to help our people.<br>
+Wait! One of my departed ancestors wishes to speak with you through me.<br>
+<a action="bypass -h Quest 124_MeetingTheElroki 32117-04.html">Talk to Karakawei while he is chanting a spell of invocation.</a><br>
+<a action="bypass -h Quest 124_MeetingTheElroki 32117-05.html">Talk to Karakawei after the spirit of his Elrokian ancestor enters him.</a>
+</body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32117-04.html

@@ -0,0 +1,6 @@
+<html><body>
+Karakawei:<br>
+Such disrespect! Do you not know that I am readying myself to enter the sacred space where life and death coexist?<br>
+Though you are the outsider of fate, you must not trifle with these matters. They are beyond your comprehension. Be still and watch!<br>
+<a action="bypass -h Quest 124_MeetingTheElroki 32117-03.html">Return.</a>
+</body></html>

+ 6 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32117-05.html

@@ -0,0 +1,6 @@
+<html><body>
+Karakawei:<br>
+Lost to my people's memory, unremembered and unknown, I, Elrokian of old, speak with you!<br>
+The wisdom of the ancestors is this: find the egg laid by the Mantarasa dinosaur. The gods have bestowed upon it the gift of healing. To find it, make your mind as light as an eagle's feather and as clean as the morning dew and travel north.<br>
+You will find the <font color="LEVEL">Mantarasa Egg</font> on the <font color="LEVEL">border between the Primeval Plains and the Lost Nest</font>. Only the Mantarasa Egg can save these poor children of the Elroki. May their former glory be restored to them!
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32117-06.html

@@ -0,0 +1,4 @@
+<html><body>
+Karakawei:<br>
+Did you forget where to take the Mantarasa Egg? Shame! The egg was supposed to be used to save the life of Mushika, our sick chief. Take the egg to Asamah, his son, immediately. Make haste!
+</body></html>

+ 5 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32117-07.html

@@ -0,0 +1,5 @@
+<html><body>
+Karakawei:<br>
+I am Elroki... Kuk... Karakawei is returning from the spirit world. This Elrokian is telling you one last time...<br>
+Outsider, <font color="LEVEL">please find the Mantarasa Egg... on the border of the Primeval Plains and the Lost Nest...</font> Shilen's divine protection be with you always!
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32118-01.html

@@ -0,0 +1,4 @@
+<html><body>
+Mantarasa Egg:<br>
+Upon closer examination, it appears to be rooted to the ground almost like a large old tree. You think it must be some kind of sentient being, but can only wonder at its abilities right now.
+</body></html>

+ 4 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32118-02.html

@@ -0,0 +1,4 @@
+<html><body>
+Mantarasa Egg:<br>
+You've finally found the egg! Looking closer, it appears to be only a shell, however. What's happened to whatever was inside?
+</body></html>

+ 5 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32118-03.html

@@ -0,0 +1,5 @@
+<html><body>
+Mantarasa Egg:<br>
+It may be the Mantarasa Egg. Its shell resembles that of a giant tortoise. When you touch it, it feels surprisingly warm.<br>
+<a action="bypass -h Quest 124_MeetingTheElroki 32118-04.html">Take the egg.</a>
+</body></html>

+ 2 - 1
L2J_DataPack_BETA/dist/game/data/scripts/quests/124_MeetingTheElroki/32118-02.htm → L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/32118-04.html

@@ -1,3 +1,4 @@
-<html><body>Mantarasa Egg:<br>
+<html><body>
+Mantarasa Egg:<br>
 You carefully pick up the egg and place it in your bag.
 </body></html>

+ 241 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q124_MeetingTheElroki/Q124_MeetingTheElroki.java

@@ -0,0 +1,241 @@
+/*
+ * 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.Q124_MeetingTheElroki;
+
+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;
+
+/**
+ * Meeting the Elroki (124)<br>
+ * Original Jython script by Kerb.
+ * @author Adry_85
+ */
+public class Q124_MeetingTheElroki extends Quest
+{
+	private static final String qn = "124_MeetingTheElroki";
+	
+	// NPC
+	private static final int MARQUEZ = 32113;
+	private static final int MUSHIKA = 32114;
+	private static final int ASAMAH = 32115;
+	private static final int KARAKAWEI = 32117;
+	private static final int MANTARASA = 32118;
+	
+	// Quest Item
+	private static final int MANTARASA_EGG = 8778;
+	
+	@Override
+	public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
+	{
+		QuestState st = player.getQuestState(getName());
+		if (st == null)
+		{
+			return getNoQuestMsg(player);
+		}
+		
+		switch (event)
+		{
+			case "32113-03.html":
+				st.startQuest();
+				break;
+			case "32113-04.html":
+				if (st.isCond(1))
+				{
+					st.setCond(2, true);
+				}
+				break;
+			case "32114-04.html":
+				if (st.isCond(2))
+				{
+					st.setCond(3, true);
+				}
+				break;
+			case "32115-06.html":
+				if (st.isCond(3))
+				{
+					st.setCond(4, true);
+				}
+				break;
+			case "32117-05.html":
+				if (st.isCond(4))
+				{
+					st.setCond(5, true);
+				}
+				break;
+			case "32118-04.html":
+				if (st.isCond(5))
+				{
+					st.giveItems(MANTARASA_EGG, 1);
+					st.setCond(6, true);
+				}
+				break;
+		}
+		
+		return event;
+	}
+	
+	@Override
+	public String onTalk(L2Npc npc, L2PcInstance player)
+	{
+		String htmltext = getNoQuestMsg(player);
+		QuestState st = player.getQuestState(getName());
+		if (st == null)
+		{
+			return htmltext;
+		}
+		
+		switch (npc.getNpcId())
+		{
+			case MARQUEZ:
+				switch (st.getState())
+				{
+					case State.CREATED:
+						htmltext = (player.getLevel() < 75) ? "32113-01a.htm" : "32113-01.htm";
+						break;
+					case State.STARTED:
+						switch (st.getInt("cond"))
+						{
+							case 1:
+								htmltext = "32113-05.html";
+								break;
+							case 2:
+								htmltext = "32113-06.html";
+								break;
+							case 3:
+							case 4:
+							case 5:
+								htmltext = "32113-07.html";
+								break;
+						}
+						break;
+					case State.COMPLETED:
+						htmltext = getAlreadyCompletedMsg(player);
+						break;
+				}
+				break;
+			case MUSHIKA:
+				if (st.isStarted())
+				{
+					switch (st.getInt("cond"))
+					{
+						case 1:
+							htmltext = "32114-01.html";
+							break;
+						case 2:
+							htmltext = "32114-02.html";
+							break;
+						default:
+							htmltext = "32114-03.html";
+							break;
+					}
+					break;
+				}
+				break;
+			case ASAMAH:
+				if (st.isStarted())
+				{
+					switch (st.getInt("cond"))
+					{
+						case 1:
+						case 2:
+							htmltext = "32115-01.html";
+							break;
+						case 3:
+							htmltext = "32115-02.html";
+							break;
+						case 4:
+							htmltext = "32115-07.html";
+							break;
+						case 5:
+							htmltext = "32115-08.html";
+							break;
+						case 6:
+							if (st.hasQuestItems(MANTARASA_EGG))
+							{
+								htmltext = "32115-09.html";
+								st.giveAdena(100013, true);
+								st.addExpAndSp(301922, 30294);
+								st.exitQuest(false, true);
+							}
+							break;
+					}
+				}
+				break;
+			case KARAKAWEI:
+				if (st.isStarted())
+				{
+					switch (st.getInt("cond"))
+					{
+						case 1:
+						case 2:
+						case 3:
+							htmltext = "32117-01.html";
+							break;
+						case 4:
+							htmltext = "32117-02.html";
+							break;
+						case 5:
+							htmltext = "32117-07.html";
+							break;
+						case 6:
+							htmltext = "32117-06.html";
+							break;
+					}
+				}
+				break;
+			case MANTARASA:
+				if (st.isStarted())
+				{
+					switch (st.getInt("cond"))
+					{
+						case 1:
+						case 2:
+						case 3:
+						case 4:
+							htmltext = "32118-01.html";
+							break;
+						case 5:
+							htmltext = "32118-03.html";
+							break;
+						case 6:
+							htmltext = "32118-02.html";
+							break;
+					}
+				}
+				break;
+		}
+		return htmltext;
+	}
+	
+	public Q124_MeetingTheElroki(int id, String name, String descr)
+	{
+		super(id, name, descr);
+		
+		addStartNpc(MARQUEZ);
+		addTalkId(MARQUEZ, MUSHIKA, ASAMAH, KARAKAWEI, MANTARASA);
+		questItemIds = new int[]
+		{
+			MANTARASA_EGG
+		};
+	}
+	
+	public static void main(String[] args)
+	{
+		new Q124_MeetingTheElroki(124, qn, "Meeting the Elroki");
+	}
+}