Skip to content
Snippets Groups Projects
Commit 6ad8ad63 authored by ivantotov's avatar ivantotov
Browse files

Quest: Test Of The Maestro (231)

Reviewed by: @Zoey76 
parent 6030d983
No related branches found
No related tags found
No related merge requests found
Showing
with 1 addition and 311 deletions
......@@ -223,7 +223,6 @@ quests/216_TrialOfGuildsman/__init__.py
quests/222_TestOfDuelist/__init__.py
quests/227_TestOfReformer/__init__.py
quests/230_TestOfSummoner/__init__.py
quests/231_TestOfMaestro/__init__.py
quests/233_TestOfWarspirit/__init__.py
quests/234_FatesWhisper/__init__.py
quests/236_SeedsOfChaos/__init__.py
......
<html><body>First Elder Lockirin:<br>
The First Elder cannot give recommendations. This is one way his powers are restricted. You must receive recommendations from the other 3 Elders.
</body></html>
\ No newline at end of file
<html><body>First Elder Lockirin:<br>
Let's see, yes they are all here. I am impressed! I'm sure the other Elders are preoccupied with the upcoming election. Did you learn much from them? Many people covet this position and would like it for themselves. Many also fail to realize the deep significance it holds for all of us Dwarves. I pray that you become a perceptive and far-sighted Warsmith.
</body></html>
\ No newline at end of file
<html><body>Elder Balanki:<br>
Good deal! Well done! Those Orcs... I'm afraid to say I doubted that they would agree for a while, but here is their promise! Thank you so very much! I wish there were more Dwarves around like you! Here js the letter of recommendation that I promised. I shall make a place for you once I am First Elder. I hope we can work together again in the future...
</body></html>
\ No newline at end of file
<html><body>Elder Filaur:<br>
I don't mind writing you a letter of recommendation, but first you must do something for me. In anticipation of next year's First Elder election our guild is planning to construct an amazing building. Our current skills are not up to the task. We require the technology of the ancient giants! If we can secure that our dreams will become reality.<br>
Certainly you know of the Cruma Tower? It is where the skills of the ancient giants are preserved. I have heard that a scout team from the Black Anvil Guild is there, too. They are led by a woman named Loraine or something like that... Go and obtain the technology from them. Do what you must.
</body></html>
\ No newline at end of file
<html><body>Elder Arin:<br>
The products of the Black Anvil Guild are considered the cutting edge of Dwarven technology. We are responsible for the renaissance of the ancient giants' technology. If I become guild master, I intend to double the pace of our technological development, and Dwarves will take a new place among the races...<br>
So, you want a letter of recommendation. Such things do not come freely.<br>
A mobile teleport device developed by our guild was recently stolen. We suspect Master Toma, but our guild cannot investigate directly. Meet Master Toma to find out if he has the device. If he does, get it from him and return it to me. I can show you where he is on the map you have with you... We will talk about the recommendation letter afterwards.
</body></html>
\ No newline at end of file
<html><body>Master Toma:<br>
Ha! I guess I got caught! How quick-witted you are, I thought I had been careful enough. But it was not a stealing, don't be misunderstood~! I just borrowed it for a little while to make the incomplete machine complete. By the way, if you want the machine back, please help me finish my test.<br>
<a action="bypass -h Quest 231_TestOfMaestro 30556_1">Say you will help.</a><br>
<a action="bypass -h Quest 231_TestOfMaestro 30556_2">Say to return the teleporter at once.</a>
</body></html>
\ No newline at end of file
<html><body>Master Toma:<br>
Good decision! Now, hold this machine and press this button here! If you can fly to the Dwarven Village in a blink, then it is a success! Let's try it now.<br>
<a action="bypass -h Quest 231_TestOfMaestro 30556_3">Press the button.</a><br>
<a action="bypass -h Quest 231_TestOfMaestro 30556_4">Do not press the button</a>
</body></html>
\ No newline at end of file
<html><body>Master Toma:<br>
Hey! This is not fair! You have to cooperate if you want to get it. Easy man, easy--<br>
<a action="bypass -h Quest 231_TestOfMaestro 30556_3">Press the button.</a>
</body></html>
\ No newline at end of file
<html><body>Master Toma:<br>
He he he. Ho, ho... Don't be too mad. Thanks to that we now know for sure which equipment is connected to the arrival set up! Now give me back the machine, not the one that we broke just now... Tell the old man that we broke 5 of them. Take care, then.
</body></html>
\ No newline at end of file
<html><body>Master Toma:<br>
Tell that old man that the durability was too poor, next time he'd better send something in good condition.
</body></html>
\ No newline at end of file
<html><body>Researcher Loraine:<br>
Let's talk about the research paper afterwards! One of the research team was poisoned by a monster in the dungeon! He managed to escape from the monster, but if he doesn't have his antidote quickly, he'll die soon! Fortunately, we can find all the materials for the antidote around here... But we are short of people!<br>
You said you were an adventurer? We need 10 Needles of Weird Bees, 10 units of Leech's Blood, and 10 Cobwebs of Swamp Spider from the swamp area right now... Can you find these things, please? We'll talk about the research paper after we have saved my colleague.
</body></html>
\ No newline at end of file
<html><body>Researcher Loraine:<br>
What are you doing?! We can't afford to lose one minute... Please collect the materials before it's too late! Do you remember all the materials? They are... 10 Needles of Wierd Bees, 10 units of Leech's Blood, and 10 Cobwebs of the Swamp Spider!
</body></html>
\ No newline at end of file
<html><body>Researcher Loraine:<br>
Ah, you have found all the materials. Wait a moment please.<br>
... ...<br>
Ah, he is starting to breathe regularly. The antidote works! By the way, what did you say you came here for?<br>
<a action="bypass -h Quest 231_TestOfMaestro 30673_1">Say that you are looking for the research materials.</a>
</body></html>
\ No newline at end of file
<html><body>Researcher Loraine:<br>
Now! This is a copy of the research paper. I am not sure if it will be of any help to you. As you see there is not much research we can do with this small group. Moreover, we have to fight these monsters and poisonous insects... Ah! My colleague seems to have regained his consciousness. Excuse me now. Thank you very much for your help.
</body></html>
\ No newline at end of file
<html><body>Researcher Loraine:<br>
The research material that I gave you is everything I have. I don't have anything to add in particular...
</body></html>
\ No newline at end of file
<html><body>Corpse of Kamur:<br>
(His arm targetet the wall left to him, maybe there is something dangerous)</body></html>
\ No newline at end of file
# Made by Mr. - Version 0.3 by DrLecter
# Shadow Weapon Coupons contributed by BiTi for the Official L2J Datapack Project
# Visit http://www.l2jdp.com/forum/ for more details
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 = "231_TestOfMaestro"
#item definition
RECOMMENDATION_OF_BALANKI = 2864
RECOMMENDATION_OF_FILAUR = 2865
RECOMMENDATION_OF_ARIN = 2866
MARK_OF_MAESTRO = 2867
LETTER_OF_SOLDER_DETACHMENT = 2868
PAINT_OF_KAMURU = 2869
NECKLACE_OF_KAMURU = 2870
PAINT_OF_TELEPORT_DEVICE = 2871
TELEPORT_DEVICE = 2872
ARCHITECTURE_OF_KRUMA = 2873
REPORT_OF_KRUMA = 2874
INGREDIENTS_OF_ANTIDOTE = 2875
WEIRD_BEES_NEEDLE = 2876
MARSH_SPIDERS_WEB = 2877
BLOOD_OF_LEECH = 2878
BROKEN_TELEPORT_DEVICE = 2916
#This handle all Mob-Drop Data. npcId:[progress,maxcount,item]
DROPLIST={
20225:[13,10,BLOOD_OF_LEECH],
20229:[13,10,WEIRD_BEES_NEEDLE],
20233:[13,10,MARSH_SPIDERS_WEB],
27133:[4,1,NECKLACE_OF_KAMURU]
}
#if you have all three recommendation, it sets final progress
def recommendationCount(st):
count=0
for item in [RECOMMENDATION_OF_ARIN,RECOMMENDATION_OF_FILAUR,RECOMMENDATION_OF_BALANKI]:
count+=st.getQuestItemsCount(item)
if count == 3:
st.set("progress","17")
st.set("cond","2")
class Quest (JQuest) :
def __init__(self,id,name,descr):
JQuest.__init__(self,id,name,descr)
self.questItemIds = range(2864,2867)+range(2868,2879)+[2916]
def onAdvEvent (self,event,npc, player) :
htmltext = event
st = player.getQuestState(qn)
if not st : return
progress = st.getInt("progress")
id=st.getState()
if id != State.COMPLETED :
if event == "1" and progress == 0 :
htmltext = "30531-04.htm"
st.setState(State.STARTED)
st.playSound("ItemSound.quest_accept")
st.set("cond","1")
st.set("progress","1")
elif event == "30533_1" and progress in [1,11,16]:
htmltext = "30533-02.htm"
st.set("progress","2")
elif event == "30671_1" and progress == 2:
htmltext = "30671-02.htm"
st.giveItems(PAINT_OF_KAMURU,1)
st.set("progress","3")
elif event == "30556_1" :
htmltext = "30556-02.htm"
elif event == "30556_2" :
htmltext = "30556-03.htm"
elif event == "30556_3" and progress == 8 :
htmltext = "30556-05.htm"
st.takeItems(PAINT_OF_TELEPORT_DEVICE,1)
st.getPlayer().teleToLocation(140352,-194133,-2028);
st.giveItems(BROKEN_TELEPORT_DEVICE,1)
st.set("progress","9")
elif event == "30556_4" :
htmltext = "30556-04.htm"
elif event == "30673_1" and progress == 14 :
htmltext = "30673-04.htm"
st.giveItems(REPORT_OF_KRUMA,1)
st.takeItems(WEIRD_BEES_NEEDLE,-1)
st.takeItems(MARSH_SPIDERS_WEB,-1)
st.takeItems(BLOOD_OF_LEECH,-1)
st.takeItems(INGREDIENTS_OF_ANTIDOTE,-1)
st.set("progress","15")
return htmltext
def onTalk (self,npc,player):
htmltext = Quest.getNoQuestMsg(player)
st = self.getQuestState(player, True)
if not st : return htmltext
npcId = npc.getId()
id = st.getState()
if npcId != 30531 and id != State.STARTED : return htmltext
progress = st.getInt("progress")
if npcId == 30531:
if id == State.COMPLETED :
htmltext = Quest.getAlreadyCompletedMsg(player)
elif progress==0 :
if player.getClassId().getId() == 0x38 and player.getLevel() > 38 :
htmltext = "30531-03.htm"
elif player.getClassId().getId() == 0x38 :
htmltext = "30531-01.htm"
st.exitQuest(1)
else:
htmltext = "30531-02.htm"
st.exitQuest(1)
elif progress>0 and progress<17 :
htmltext = "30531-05.htm"
elif progress==17 :
st.takeItems(RECOMMENDATION_OF_BALANKI,1)
st.takeItems(RECOMMENDATION_OF_FILAUR,1)
st.takeItems(RECOMMENDATION_OF_ARIN,1)
st.addExpAndSp(2058244,141240)
st.giveItems(57,372154)
st.giveItems(MARK_OF_MAESTRO,1)
htmltext = "30531-06.htm"
st.unset("progress")
st.exitQuest(False)
st.playSound("ItemSound.quest_finish")
elif npcId == 30533:
if progress in [1,11,16] and not st.getQuestItemsCount(RECOMMENDATION_OF_BALANKI):
htmltext = "30533-01.htm"
elif progress==2:
htmltext = "30533-03.htm"
elif progress==6 :
htmltext = "30533-04.htm"
st.giveItems(RECOMMENDATION_OF_BALANKI,1)
st.takeItems(LETTER_OF_SOLDER_DETACHMENT,1)
st.set("progress","7")
recommendationCount(st)
elif progress in [7,17] :
htmltext = "30533-05.htm"
elif npcId == 30671:
if progress==2 :
htmltext = "30671-01.htm"
elif progress==3:
htmltext = "30671-03.htm"
elif progress==5 :
htmltext = "30671-04.htm"
st.giveItems(LETTER_OF_SOLDER_DETACHMENT,1)
st.takeItems(NECKLACE_OF_KAMURU,1)
st.takeItems(PAINT_OF_KAMURU,1)
st.set("progress","6")
elif progress==6 :
htmltext = "30671-05.htm"
elif npcId == 30672 and progress==3 :
htmltext = "30672-01.htm"
elif npcId == 30675 and progress==3:
st.set("progress","4")
htmltext="30675-01.htm"
elif npcId == 30536:
if progress in [1,7,16] and not st.getQuestItemsCount(RECOMMENDATION_OF_ARIN) :
htmltext = "30536-01.htm"
st.giveItems(PAINT_OF_TELEPORT_DEVICE,1)
st.set("progress","8")
elif progress==8 :
htmltext = "30536-02.htm"
elif progress==10:
htmltext = "30536-03.htm"
st.giveItems(RECOMMENDATION_OF_ARIN,1)
st.takeItems(TELEPORT_DEVICE,5)
st.set("progress","11")
recommendationCount(st)
elif progress in [11,17]:
htmltext = "30536-04.htm"
elif npcId==30556:
if progress==8:
htmltext = "30556-01.htm"
elif progress==9:
htmltext = "30556-06.htm"
st.giveItems(TELEPORT_DEVICE,5)
st.takeItems(BROKEN_TELEPORT_DEVICE,1)
st.set("progress","10")
elif progress==10 :
htmltext = "30556-07.htm"
elif npcId==30535:
if progress in [1,7,11] and not st.getQuestItemsCount(RECOMMENDATION_OF_FILAUR) :
htmltext = "30535-01.htm"
st.giveItems(ARCHITECTURE_OF_KRUMA,1)
st.set("progress","12")
elif progress==12 :
htmltext = "30535-02.htm"
elif progress==15 :
htmltext = "30535-03.htm"
st.giveItems(RECOMMENDATION_OF_FILAUR,1)
st.takeItems(REPORT_OF_KRUMA,1)
st.set("progress","16")
recommendationCount(st)
elif progress>15:
htmltext = "30535-04.htm"
elif npcId == 30673:
if progress==12 :
htmltext = "30673-01.htm"
st.giveItems(INGREDIENTS_OF_ANTIDOTE,1)
st.takeItems(ARCHITECTURE_OF_KRUMA,1)
st.set("progress","13")
elif progress==13 :
htmltext = "30673-02.htm"
elif progress==14 :
htmltext = "30673-03.htm"
elif progress==15:
htmltext = "30673-05.htm"
elif npcId==30532 and progress :
htmltext = "30532-01.htm"
return htmltext
def onKill(self,npc,player,isPet):
st = player.getQuestState(qn)
if not st : return
if st.getState() != State.STARTED : return
npcId = npc.getId()
progress_drop,maxcount,item=DROPLIST[npcId]
count=st.getQuestItemsCount(item)
progress = st.getInt("progress")
if progress == progress_drop and count < maxcount :
st.giveItems(item,1)
if count == maxcount-1 :
st.playSound("ItemSound.quest_middle")
itemcount=0
for id in [WEIRD_BEES_NEEDLE,MARSH_SPIDERS_WEB,BLOOD_OF_LEECH]:
itemcount+=st.getQuestItemsCount(id)
if npcId==27133 or itemcount>29:
st.set("progress",str(progress+1))
else:
st.playSound("ItemSound.quest_itemget")
return
QUEST = Quest(231,qn,"Test Of Maestro")
QUEST.addStartNpc(30531)
QUEST.addTalkId(30531)
for npcId in [30532,30533,30535,30536,30556,30671,30672,30673,30675]:
QUEST.addTalkId(npcId)
for mobId in [20225,20229,20233,27133]:
QUEST.addKillId(mobId)
\ No newline at end of file
<html><body>First Elder Lockirin:<br>
Patience and dedication are essential if you intend to master a skill. You must remember this as you continue your practice. You are not yet ready for this quest.<br>
Patience and dedication are essential if you intend to master a skill. You must remember this as you continue your practice. You are not yet ready for this quest.<br>
(Artisans of level 39 and above may undertake this quest.)
</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