Skip to content
Snippets Groups Projects
Commit 1f00c281 authored by Adry_85's avatar Adry_85
Browse files

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

parent 144ec4c5
No related branches found
No related tags found
No related merge requests found
Showing
with 64 additions and 144 deletions
...@@ -341,7 +341,7 @@ quests/120_PavelsResearch/__init__.py ...@@ -341,7 +341,7 @@ quests/120_PavelsResearch/__init__.py
quests/121_PavelTheGiants/__init__.py quests/121_PavelTheGiants/__init__.py
quests/122_OminousNews/__init__.py quests/122_OminousNews/__init__.py
quests/123_TheLeaderAndTheFollower/__init__.py quests/123_TheLeaderAndTheFollower/__init__.py
quests/124_MeetingTheElroki/__init__.py quests/Q124_MeetingTheElroki/Q124_MeetingTheElroki.java
quests/125_TheNameOfEvil1/__init__.py quests/125_TheNameOfEvil1/__init__.py
quests/Q126_TheNameOfEvil2/Q126_TheNameOfEvil2.java quests/Q126_TheNameOfEvil2/Q126_TheNameOfEvil2.java
quests/130_PathToHellbound/__init__.py quests/130_PathToHellbound/__init__.py
......
<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>
\ No newline at end of file
<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>
\ No newline at end of file
<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>
\ No newline at end of file
<html><body>Karakawei:<br>
Wait! One of my departed ancestors wishes to speak with you through me.
</body></html>
\ No newline at end of file
<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>
\ No newline at end of file
#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)
\ No newline at end of file
<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> 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> 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> </body></html>
\ No newline at end of file
<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>
\ No newline at end of file
<html><body>Marquez:<br> <html><body>
The conflict between Humans and Elrokhians began when the explorers built this wharf and maintained a presence here.<br> Marquez:<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 conflict between Humans and Elrokians began when the explorers built this wharf and maintained a presence here.<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> 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> 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> <a action="bypass -h Quest 124_MeetingTheElroki 32113-03.html">Tell him that you will help.</a>
</body></html> </body></html>
\ No newline at end of file
<html><body>Marquez:<br> <html><body>
Thank you! Then listen carefully.<font color="LEVEL"> I have received news of the Elrokian chief, Mushika,</FONT> the leader of his tribe.<br> 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> 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> 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> </body></html>
\ No newline at end of file
<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> 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> 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> </body></html>
\ No newline at end of file
<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>
\ No newline at end of file
<html><body>Marquez:<br> <html><body>
Are you afraid to face Elroki tribe? My friend, Mushika's life is a stake!<br> 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. 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> </body></html>
\ No newline at end of file
<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>
\ No newline at end of file
<html><body>
Mushika:<br>
Invader...(coughing)...invader!
</body></html>
\ No newline at end of file
<html><body>Mushika:<br> <html><body>
Mushika:<br>
Uh... Shilen, our mother... Do not abandon your chosen people, the Elroki tribe...<br> Uh... Shilen, our mother... Do not abandon your chosen people, the Elroki tribe...<br>
Elroki! Bestow on us your mighty power...<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> <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> </body></html>
\ No newline at end of file
<html><body>
Mushika:<br>
My son...Asamah...(coughing)... Do you not...see...him...there?
</body></html>
\ No newline at end of file
<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>
\ No newline at end of file
<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>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment