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

BETA: Quest '''Trial of the Challenger''' (211) in Java.

	Patch by: Pandragon
	Reviewed by: Adry_85, janiko, jurchiks
	Tested by: Adry_85
parent c1079067
No related branches found
No related tags found
No related merge requests found
Showing
with 48 additions and 242 deletions
<html><body>Raldo:<br>
What the hell are you talking about? I know everything that's going on in the town of Floran! Tell me the truth. Who sent you here?<br>
<a action="bypass -h Quest 211_TrialOfChallenger 30646_2">Tell him about the Mark of Challenger and Martien</a>
</body></html>
\ No newline at end of file
<html><body>Raldo:<br>
You fool! The two devils completely took advantage of you! They have no right to receive the Mark of Challenger. The only person who has the qualifications is me, Raldo!<br>
You have some fault in the weakening of the magic field, so you are responsible for it also.<br>
<a action="bypass -h Quest 211_TrialOfChallenger 30646_3">Say you will help</a><br>
<a action="bypass -h Quest 211_TrialOfChallenger 30646_4">Say that it's none of my business.</a>
</body></html>
\ No newline at end of file
<html><body>Raldo:<br>
Good! I shall go and look at the other magic fields, meanwhile you should to to the<font color="LEVEL"> Dwarven Village</font>. It is likely that it is their next destination.<br>
Ask the<font color="LEVEL"> Elder Filaur</font> of the Dwarven Village about the location of the magic field. I suppose they sent the succubus flock to break down the magic field. Keep watching the place and when the evil creatures show up, kill them all! Perhaps this is the last chance! If the magic field is destroyed as well, 'the thing' will revive!
</body></html>
\ No newline at end of file
<html><body>Raldo:<br>
So that means that you'll give up the Mark of the Challenger... Damn you! I see! So you have no intention of going to the Dwarven Village to meet Elder Filaur, or to protect the last seal?
</body></html>
\ No newline at end of file
<html><body>Raldo:<br>
What are you doing here? Set off for the<font color="LEVEL"> Dwarven Village</font> right now! Confirm the location of the magic field from<font color="LEVEL"> Elder Philar</font> and kill all the succubus so that they cannot destroy the magic field!
</body></html>
\ No newline at end of file
<html><body>Raldo:<br>
That chick is the leader, I think. Don't bother with the small fry,that's my motto! Oh, don't worry about my friends. They're off guarding other places, and honestly they'd dust the floor with you, anyway. But they, no hard feelings, right? You were a big help in protecting this place, and no one can say that Raldo doesn't know how to replay bravery when he sees it.<br>
Here, take this! It's a gift for your efforts. In fact, it's the<font color="LEVEL"> Mark of the Challenger</font>, the one you were looking for. Well, enough talk -- I'd best get out there and slay them all before they get away. Excelsior!
</body></html>
\ No newline at end of file
# Fix by Cromir for Kilah
# Quest: Trial Of Challenger
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 = "211_TrialOfChallenger"
LETTER_OF_KASH = 2628
SCROLL_OF_SHYSLASSY = 2631
WATCHERS_EYE1 = 2629
BROKEN_KEY = 2632
MITHRIL_SCALE_GAITERS_MATERIAL = 2918
BRIGANDINE_GAUNTLET_PATTERN = 2927
MANTICOR_SKIN_GAITERS_PATTERN = 1943
GAUNTLET_OF_REPOSE_OF_THE_SOUL_PATTERN = 1946
IRON_BOOTS_DESIGN = 1940
TOME_OF_BLOOD_PAGE = 2030
ELVEN_NECKLACE_BEADS = 1904
WHITE_TUNIC_PATTERN = 1936
ADENA = 57
MARK_OF_CHALLENGER = 2627
WATCHERS_EYE2 = 2630
class Quest (JQuest) :
def __init__(self,id,name,descr):
JQuest.__init__(self,id,name,descr)
self.questItemIds = [SCROLL_OF_SHYSLASSY, LETTER_OF_KASH, WATCHERS_EYE1, BROKEN_KEY, WATCHERS_EYE2]
def onAdvEvent (self,event,npc, player) :
htmltext = event
st = player.getQuestState(qn)
if not st : return
if event == "1" :
htmltext = "30644-05.htm"
st.set("cond","1")
st.setState(State.STARTED)
st.playSound("ItemSound.quest_accept")
elif event == "30644_1" :
htmltext = "30644-04.htm"
elif event == "30645_1" :
htmltext = "30645-02.htm"
st.takeItems(LETTER_OF_KASH,1)
st.set("cond","4")
st.playSound("ItemSound.quest_middle")
elif event == "30647_1" :
if st.getQuestItemsCount(BROKEN_KEY) == 1 :
st.giveItems(SCROLL_OF_SHYSLASSY,1)
st.playSound("ItemSound.quest_middle")
if self.getRandom(10) < 2 :
htmltext = "30647-03.htm"
st.takeItems(BROKEN_KEY,1)
st.playSound("ItemSound.quest_jackpot")
n = self.getRandom(100)
if n > 90 :
st.giveItems(MITHRIL_SCALE_GAITERS_MATERIAL,1)
st.giveItems(BRIGANDINE_GAUNTLET_PATTERN,1)
st.giveItems(MANTICOR_SKIN_GAITERS_PATTERN,1)
st.giveItems(GAUNTLET_OF_REPOSE_OF_THE_SOUL_PATTERN,1)
st.giveItems(IRON_BOOTS_DESIGN,1)
st.playSound("ItemSound.quest_middle")
elif n > 70 :
st.giveItems(TOME_OF_BLOOD_PAGE,1)
st.giveItems(ELVEN_NECKLACE_BEADS,1)
st.playSound("ItemSound.quest_middle")
elif n > 40 :
st.giveItems(WHITE_TUNIC_PATTERN,1)
st.playSound("ItemSound.quest_middle")
else:
st.giveItems(IRON_BOOTS_DESIGN,1)
st.playSound("ItemSound.quest_middle")
else:
htmltext = "30647-02.htm"
n = self.getRandom(1000)+1
st.takeItems(BROKEN_KEY,1)
st.giveItems(ADENA,n)
st.playSound("ItemSound.quest_middle")
else:
htmltext = "30647-04.htm"
st.takeItems(BROKEN_KEY,1)
elif event == "30646_1" :
htmltext = "30646-02.htm"
elif event == "30646_2" :
htmltext = "30646-03.htm"
elif event == "30646_3" :
htmltext = "30646-04.htm"
st.set("cond","8")
st.takeItems(WATCHERS_EYE2,1)
elif event == "30646_4" :
htmltext = "30646-06.htm"
st.set("cond","8")
st.takeItems(WATCHERS_EYE2,1)
return htmltext
def onTalk (self,npc,player):
htmltext = Quest.getNoQuestMsg(player)
st = player.getQuestState(qn)
if not st : return htmltext
npcId = npc.getId()
id = st.getState()
if npcId != 30644 and id != State.STARTED : return htmltext
cond=st.getInt("cond")
if id == State.CREATED :
if npcId == 30644 :
if player.getClassId().ordinal() in [0x01,0x13,0x20,0x2d,0x2f] :
if player.getLevel() >= 35 :
htmltext = "30644-03.htm"
else :
htmltext = "30644-01.htm"
st.exitQuest(1)
else :
htmltext = "30644-02.htm"
st.exitQuest(1)
elif npcId == 30644 and id == State.COMPLETED :
htmltext = Quest.getAlreadyCompletedMsg(player)
elif npcId == 30644 and cond == 1 :
htmltext = "30644-06.htm"
elif npcId == 30644 and cond == 2 and st.getQuestItemsCount(SCROLL_OF_SHYSLASSY) == 1 :
htmltext = "30644-07.htm"
st.takeItems(SCROLL_OF_SHYSLASSY,1)
st.giveItems(LETTER_OF_KASH,1)
st.set("cond","3")
st.playSound("ItemSound.quest_middle")
elif npcId == 30644 and cond == 1 and st.getQuestItemsCount(LETTER_OF_KASH) == 1 :
htmltext = "30644-08.htm"
elif npcId == 30644 and cond >= 7 :
htmltext = "30644-09.htm"
elif npcId == 30645 and cond == 3 and st.getQuestItemsCount(LETTER_OF_KASH) == 1 :
htmltext = "30645-01.htm"
elif npcId == 30645 and cond == 4 and st.getQuestItemsCount(WATCHERS_EYE1) == 0 :
htmltext = "30645-03.htm"
elif npcId == 30645 and cond == 5 and st.getQuestItemsCount(WATCHERS_EYE1) :
htmltext = "30645-04.htm"
st.takeItems(WATCHERS_EYE1,1)
st.set("cond","6")
st.playSound("ItemSound.quest_middle")
elif npcId == 30645 and cond == 6 :
htmltext = "30645-05.htm"
elif npcId == 30645 and cond >= 7 :
htmltext = "30645-06.htm"
elif npcId == 30647 and cond == 2 :
htmltext = "30647-01.htm"
elif npcId == 30646 and cond == 7 and st.getQuestItemsCount(WATCHERS_EYE2) :
htmltext = "30646-01.htm"
elif npcId == 30646 and cond == 7 :
htmltext = "30646-06a.htm"
elif npcId == 30646 and cond == 10 :
st.takeItems(BROKEN_KEY,1)
st.addExpAndSp(1067606,69242)
st.giveItems(57,194556)
st.giveItems(7562,8)
st.giveItems(MARK_OF_CHALLENGER,1)
htmltext = "30646-07.htm"
st.exitQuest(False)
st.playSound("ItemSound.quest_finish")
st.set("cond","0")
elif npcId == 30535 and cond == 7 :
if player.getLevel() >= 35 :
htmltext = "30535-01.htm"
st.addRadar(176560,-184969,-3729);
st.set("cond","8")
st.playSound("ItemSound.quest_middle")
else:
htmltext = "30535-03.htm"
elif npcId == 30535 and cond == 8 :
htmltext = "30535-02.htm"
st.addRadar(176560,-184969,-3729);
st.set("cond","9")
st.playSound("ItemSound.quest_middle")
return htmltext
def onKill(self,npc,player,isPet):
st = player.getQuestState(qn)
if not st : return
if st.getState() != State.STARTED : return
cond = st.getInt("cond")
npcId = npc.getId()
if npcId == 27110 and cond == 1 and not st.getQuestItemsCount(BROKEN_KEY) :
st.giveItems(BROKEN_KEY,1)
st.addSpawn(30647,npc,True,0)
st.playSound("ItemSound.quest_middle")
st.set("cond","2")
elif npcId == 27112 and cond == 4 and not st.getQuestItemsCount(WATCHERS_EYE1) :
st.giveItems(WATCHERS_EYE1,1)
st.set("cond","5")
st.playSound("ItemSound.quest_middle")
elif npcId == 27113 and cond == 6 and not st.getQuestItemsCount(WATCHERS_EYE2) :
st.giveItems(WATCHERS_EYE2,1)
st.playSound("ItemSound.quest_middle")
st.set("cond","7")
st.addSpawn(30646,npc,0,300000)
elif npcId == 27114 and cond == 9 :
st.set("cond","10")
st.playSound("ItemSound.quest_middle")
st.addSpawn(30646,npc,0,300000)
return
QUEST = Quest(211,qn,"Trial Of Challenger")
QUEST.addStartNpc(30644)
QUEST.addTalkId(30535)
QUEST.addTalkId(30644)
QUEST.addTalkId(30645)
QUEST.addTalkId(30646)
QUEST.addTalkId(30647)
QUEST.addKillId(27110)
QUEST.addKillId(27112)
QUEST.addKillId(27113)
QUEST.addKillId(27114)
\ No newline at end of file
<html><body>Elder Filaur:<br>
Ah, it was you!<br>
I have recently received reports that dark energies have been felt emanating from the <font color="LEVEL">Abandoned Coal Mine</font>. It's because you weakened the force field's power, isn't it?<br>
The investigators I dispatched found the <font color="LEVEL">Succubus Queen</font> there. This monster must be the leader of group which tried to break the force field. You must stop them. Hurry!
</body></html>
\ No newline at end of file
<html><body>Elder Filaur:<br>
Fool! Why are you still here? Are you saying you cannot accomplish even such a simple thing without my help? How will you ever prove your bravery to Champion Raldo?<br>
Go to the <font color="LEVEL">Abandoned Coal Mine</font> and there defeat the monsters trying to break the force field. Hurry!
</body></html>
\ No newline at end of file
<html><body>Elder Filaur:<br>
I thought anyone Raldo sent would have excellent skills. You, however, are clearly incompetent. If you go there again, you will only die a useless death.<font color="LEVEL">Come back only after devoting yourself to improving your abilities!</font>
</body></html>
\ No newline at end of file
<html><body>Elder Filaur:<br>
You there! <font color="LEVEL">Champion Raldo</font> is looking for you. He said he wants to give you some sort of "Mark of the Challenger" or somesuch.<br>
He went to the <font color="LEVEL">Abandoned Mine</font> in case the Succubus Queen appears again. You should go there.
</body></html>
\ No newline at end of file
<html><body>Kash:<br>
You wish to earn the <font color="LEVEL">Mark of the Challenger</font>? You are certainly aware of the difficulty of this task... It is not to be taken lightly, especially by an unskilled person like yourself... You must realistically assess your abilities!<br>
(This quest may only be performed by Warriors, Elven Knights, Palus Knights, Orc Raiders, or Monks of level 35 or higher.)
</body></html>
\ No newline at end of file
<html><body>Kash:<br>
You seek the Mark of the Challenger? You must be mistaken. That mark is out of your league.<br>
(This quest may only be performed by Warriors, Elven Knights, Palus Knights, Orc Raiders, or Monks of level 35 or higher.)
</body></html>
\ No newline at end of file
<html><body>Kash:<br>
You wish to earn the <font color="LEVEL">Mark of the Challenger</font>? You are certainly aware of the difficulty of this task... I don't have the mark, but I can tell you where it is... if you will you do something for me...<br>
<a action="bypass -h Quest Q00211_TrialOfTheChallenger 30644-04.htm">Ask what kind of adventure it is.</a>
</body></html>
\ No newline at end of file
<html><body>Kash:<br> <html><body>Kash:<br>
Are you familiar with the Neutral Zone between the lands of the Elves and the Dark Elves?<font color="LEVEL"> Shyslyssys</font>, an ancient medusa, makes her home there. Of course, these stories always include an extraordinary amount of treasure. You must go to her cave and kill everyone there. You may keep all the treasure you find, all I ask is that you bring back any<font color="LEVEL"> old parchment</font> that is there. Will you accept?<br> Are you familiar with the Neutral Zone between the lands of the Elves and the Dark Elves? <font color="LEVEL">Shyslyssys</font>, an ancient medusa, makes her home there. Of course, these stories always include an extraordinary amount of treasure. You must go to her cave and kill everyone there. You may keep all the treasure you find, all I ask is that you bring back any <font color="LEVEL">old parchment</font> that is there. Will you accept?<br>
<a action="bypass -h Quest 211_TrialOfChallenger 1">I accept.</a> <a action="bypass -h Quest Q00211_TrialOfTheChallenger 30644-06.htm">I accept.</a>
</body></html> </body></html>
\ No newline at end of file
<html><body>Kash:<br>
Your bravery is impressive, my young friend, but you must not go alone. Not that I don't trust your abilities... But this is a medusa that has lived for hundreds of years! She must be guarding something important...<font color="LEVEL"> It would be best to gather some friends to go with you.</font>
</body></html>
\ No newline at end of file
<html><body>Kash:<br>
Ha! You get points for courage, if nothing else! But I wouldn't advise that you hunt there all by yourself. Courage alone won't get you very far against a centuries-old Medusa, youngster! That thing must have learned a few tricks over the years, eh? <font color="LEVEL">I think you'd best round up a group of your friends before trying your luck against the stone-looker.</font><br>
Here, take this <font color="LEVEL">Dimension Diamond</font> and hold on to it. You can trade it to the village gatekeeper for something special that may help you on your journey.
</body></html>
\ No newline at end of file
<html><body>Kash:<br>
The medusa has feasted on many warriors in its hundreds of years of existence. Not to dismiss your skills lightly, but better warriors than you have ended up as this creature's lunch. By the way, I have learned that it lives in the <font color="LEVEL">cave near the waterfalls</font>.
</body></html>
\ No newline at end of file
<html><body>Kash:<br>
You are true to your word. Ha, only one more to go... Oh, don't pay any attention to me. I am just talking to myself.<br>
Yes, <font color="LEVEL">the Mark of the Challenger</font>. I have entrusted it to <font color="LEVEL">Martien</font>, a friend living in <font color="LEVEL">the Town of Giran</font>. Take him this Letter of Introduction and he will give you the mark.
</body></html>
\ No newline at end of file
<html><body>Kash:<br>
<font color="LEVEL">Martien</font> is a very influential person in <font color="LEVEL">the Town of Giran</font>. It is hard to meet him without a Letter of Introduction!
</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