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

BETA: Retail like quest '''Elrokian Hunter's Proof''' (111).

	Reviewed by: !UnAfraid
parent 1624529c
No related branches found
No related tags found
No related merge requests found
Showing
with 28 additions and 164 deletions
......@@ -282,7 +282,7 @@ quests/107_MercilessPunishment/__init__.py
quests/Q00108_JumbleTumbleDiamondFuss/Q00108_JumbleTumbleDiamondFuss.java
quests/Q00109_InSearchOfTheNest/Q00109_InSearchOfTheNest.java
quests/Q00110_ToThePrimevalIsle/Q00110_ToThePrimevalIsle.java
quests/111_Elrokian_Hunters_Proof/__init__.py
quests/Q00111_ElrokianHuntersProof/Q00111_ElrokianHuntersProof.java
quests/Q00112_WalkOfFate/Q00112_WalkOfFate.java
quests/Q00113_StatusOfTheBeaconTower/Q00113_StatusOfTheBeaconTower.java
quests/Q00114_ResurrectionOfAnOldManager/Q00114_ResurrectionOfAnOldManager.java
......
<html><body>Go find Mushika, the leader of the Elroki tribe on an island further south in the Primeval Plains region, I think he can help you in your quest.</body></html>
\ No newline at end of file
<html><body>There was a man in my expedition who was searching for clues about the old Elroki warrior song, I think this song could help you win the Elroki's friendship... well, this man had a journal, and in it were the clues, but he was killed by velociraptors. Now his journal is spread amongst the velociraptors. Go kill them and bring me back the 50 pages of his journal.</body></html>
\ No newline at end of file
<html><body>Very good! Now now let me see here... It says that there might be an old Elroki willing to teach the song to outsiders somewhere close to the middle tunnel. Here, there is a letter too. Take it to the Elroki Kirikashin, he might accept to teach you the old Elroki song.</body></html>
\ No newline at end of file
<html><body>I am gravely hill, speak with my son Ashamah.</body></html>
\ No newline at end of file
<html><body>I do not know or trust you, go away.</body></html>
\ No newline at end of file
<html><body>Well, thank you. This is my favorite song.</body></html>
\ No newline at end of file
<html><body>Very well, if you wish to learn our art, I will need to craft you the perfect trap. To do so, I will need 10 Ornithomimus claws, 10 Pachycephalosaurus skins and 10 Deinonychus bones. Go hunt these beasts and bring me back the items I need.</body></html>
\ No newline at end of file
<html><body>Very well, if you wish to learn our art, I will need to craft you the perfect trap. To do so, I will need 10 Ornithomimus claws, 10 Pachycephalosaurus skins and 10 Deinonychus bones. Go hunt these beasts and bring me back the items I need.</body></html>
\ No newline at end of file
<html><body>I see that you and your friends have proven yourselves to be good hunters. Let me see here... I have all the parts necessary to make you the perfect trap. Here is your Elrokian trap! Go see Kirikachin, he will show you how to use it.</body></html>
\ No newline at end of file
<html><body>Hello there! What is this?... a letter from my old friend? Well then let me teach you an old warrior song as a thank you for bringing me this.</body></html>
\ No newline at end of file
<html><body>So here is how it's done...<br>(Kirikashin shows you how to use the trap)<br><br>If you loose this one, see Ashamah to buy another one.</body></html>
\ No newline at end of file
# 111 Elrokian Hunter's Proof by TheOne
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
from com.l2jserver.gameserver.network.serverpackets import PlaySound
qn = "111_Elrokian_Hunters_Proof"
#NPCS
MARQUEZ,MUSHIKA,ASHAMAH,KIRIKASHIN = xrange(32113,32117)
CHANCE = 25
CHANCE2 = 75
#QUEST ITEM
FRAGMENT = 8768
ADENA = 57
MOBS1 = [22196,22197,22198,22218]
MOBS2 = [22200,22201,22202,22219]
MOBS3 = [22208,22209,22210,22221]
MOBS4 = [22203,22204,22205,22220]
class Quest (JQuest) :
def __init__(self,id,name,descr):
JQuest.__init__(self,id,name,descr)
self.Party = []
self.questItemIds = [FRAGMENT]
def onTalk (self,npc,player):
htmltext = "<html><body>This quest can only be undertaken by a party of level 75 or higher. Only the party leader may talk to the quest NPCs.</body></html>"
st = player.getQuestState(qn)
if not st : return htmltext
npcId = npc.getId()
id = st.getState()
cond = st.getInt("cond")
if id == State.COMPLETED :
htmltext = Quest.getAlreadyCompletedMsg(player)
else :
party = st.getPlayer().getParty()
if party :
level = st.getPlayer().getLevel()
partyleader = st.getPlayer().getParty().getLeader()
self.PartyLeader = partyleader
if level >= 75 and partyleader == player:
if npcId == MARQUEZ :
if cond == 0 :
st.set("cond","1")
st.playSound("ItemSound.quest_accept")
st.setState(State.STARTED)
htmltext = "32113-1.htm"
elif cond == 3 :
st.set("cond","4")
st.playSound("ItemSound.quest_middle")
htmltext = "32113-2.htm"
elif cond == 5 :
if st.getQuestItemsCount(FRAGMENT) >= 50 :
st.takeItems(FRAGMENT,-1)
st.set("cond","6")
st.playSound("ItemSound.quest_middle")
htmltext = "32113-3.htm"
elif npcId == KIRIKASHIN :
if cond == 6 :
st.set("cond","8")
st.playSound("EtcSound.elcroki_song_full")
htmltext = "32116-1.htm"
elif cond == 12 :
if st.getQuestItemsCount(8773) >= 1 :
st.takeItems(8773,1)
st.giveItems(8763,1)
st.giveItems(8764,100)
st.giveItems(ADENA,1071691)
st.addExpAndSp(553524,55538)
st.playSound("ItemSound.quest_finish")
st.exitQuest(False)
htmltext = "32116-2.htm"
elif npcId == MUSHIKA :
if cond == 1 :
st.set("cond","2")
st.playSound("ItemSound.quest_middle")
htmltext = "32114-1.htm"
elif npcId == ASHAMAH :
if cond == 2 :
st.set("cond","3")
st.playSound("ItemSound.quest_middle")
htmltext = "32115-1.htm"
elif cond == 8 :
st.set("cond","9")
st.playSound("ItemSound.quest_middle")
htmltext = "32115-2.htm"
elif cond == 9 :
st.set("cond","10")
st.playSound("ItemSound.quest_middle")
htmltext = "32115-3.htm"
elif cond == 11 :
st.set("cond","12")
st.playSound("ItemSound.quest_middle")
st.giveItems(8773,1)
htmltext = "32115-5.htm"
return htmltext
def onKill(self,npc,player,isPet):
party = player.getParty()
if not party : return
partyleader = party.getLeader()
st = partyleader.getQuestState(qn)
if not st : return
state = st.getState()
if state != State.STARTED : return
cond = st.getInt("cond")
npcId = npc.getId()
if npcId in MOBS1 and cond == 4 :
if self.getRandom(100) < CHANCE:
st.giveItems(FRAGMENT,1)
if st.getQuestItemsCount(FRAGMENT) <= 49:
st.playSound("ItemSound.quest_itemget")
else:
st.set("cond","5")
st.playSound("ItemSound.quest_middle")
elif cond == 10 :
if npcId in MOBS2 :
if self.getRandom(100) < CHANCE2:
st.giveItems(8770,1)
if st.getQuestItemsCount(8770) <= 9:
st.playSound("ItemSound.quest_itemget")
elif npcId in MOBS3:
if self.getRandom(100) < CHANCE2:
st.giveItems(8772,1)
if st.getQuestItemsCount(8772) <= 9:
st.playSound("ItemSound.quest_itemget")
elif npcId in MOBS4:
if self.getRandom(100) < CHANCE2:
st.giveItems(8771,1)
if st.getQuestItemsCount(8771) <= 9:
st.playSound("ItemSound.quest_itemget")
if st.getQuestItemsCount(8770) >= 10 and st.getQuestItemsCount(8771) >= 10 and st.getQuestItemsCount(8772) >= 10:
st.set("cond","11")
st.playSound("ItemSound.quest_middle")
return
QUEST = Quest(111,qn,"Elrokian Hunter's Proof")
QUEST.addStartNpc(32113)
for i in xrange(32113,32117) :
QUEST.addTalkId(i)
for i in MOBS1+MOBS2+MOBS3+MOBS4:
QUEST.addKillId(i)
\ No newline at end of file
<html><body>Marquez:<br>
Ah, my young adventurer... So, did you have a look around this Primeval Isle? As you probably know already, there are many unique creatures on this island. There is also an ancient race of men, the Elroki tribe. Though they may seem primitive to your eyes in some respects, do not underestimate them! Theirs is a culture rich in history and tradition, and they have skills unknown to more "civilized" races. How else could they have survived all these years surrounded by these vicious dinosaurs?<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-02.htm">Ask how the Elrokhians manage the dinosaurs.</a>
</body></html>
\ No newline at end of file
<html><body>Marquez:<br>
Once, I accompanied the Elrokians on a dinosaur hunt... It was a remarkable experience!<br>The Elrokhians first weaken the creatures by wielding a strange-looking device unique to their tribe. Are you by chance interested in learning the skill?<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-03.html">Oh yes! I certainly wish to learn the skill.</a><br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-05.htm">No thank you, I'm really not interested in learning any "primitive" skills.</a>
</body></html>
\ No newline at end of file
<html><body>Marquez:<br>
Ah, then you must seek out the leader of the Elroki tribe, Chief Mushika, who once explored with me. Tell him that I sent you and perhaps he will more readily accept you.<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-04.html">"Where is the chief?"</a>
</body></html>
\ No newline at end of file
<html><body>Marquez:<br>
The chief lives in the Elroki village on the southern Primeval Plains. His people shun outsiders, but you may have some luck if you first contact a native warrior I know, <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.
</body></html>
\ No newline at end of file
<html><body>Marquez:<br>
Bah! Only the ignorant would think such a thing! Keep company with the dinosaurs themselves, then, for all I care! Fool!
</body></html>
\ No newline at end of file
<html><body>Marquez:<br>
Ah, my young adventurer... So, did you have a look around this Primeval Isle? As you probably know already, there are many unique creatures on this island. There is also an ancient race of men, the Elroki tribe. Though they may seem primitive to your eyes in some respects, do not underestimate them! Theirs is a culture rich in history and tradition, and they have skills unknown to more "civilized" races. How else could they have survived all these years surrounded by these vicious dinosaurs? We could learn much from them...<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>
Hurry, then, and visit Mushika, chief of the Elroki tribe.<br>
<a action="bypass -h Quest Q00111_ElrokianHuntersProof 32113-04.html">"Where is the chief?"</a>
</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