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

Retail-like quest Method to Raise the Dead (345).

parent 671fc1d0
No related branches found
No related tags found
No related merge requests found
Showing
with 17 additions and 147 deletions
......@@ -244,7 +244,6 @@ quests/336_CoinOfMagic/__init__.py
quests/337_AudienceWithTheLandDragon/__init__.py
quests/340_SubjugationOfLizardmen/__init__.py
quests/343_UnderTheShadowOfTheIvoryTower/__init__.py
quests/345_MethodToRaiseTheDead/__init__.py
quests/348_ArrogantSearch/__init__.py
quests/351_BlackSwan/__init__.py
quests/372_LegacyOfInsolence/__init__.py
......
<html><body>Magister Xenovia:<br>I'm afraid I can't tell you much about that Medium Jar, not that you are the first to inquire about it... Some fellow from Dark Elven Village was asking questions about it a while back.<br>I'm of the opinion that the urn's abilities have been vastly over-stated in these wild rumors. I don't believe that actual souls of the dead can be conjured with it. At most it is a simple conduit between this world and the abyss where Shilen dwells. Hmm, that isn't far from the rumors, is it? Heh heh...<br>Oh,yes, I forgot. Some powder was delivered here recently that is supposed to be used with the urn. Something about putting it into urn along with an article belonging to a dead person...<br><a action="bypass -h Quest 345_MethodToRaiseTheDead 30912-02.htm">"I wish to use a Medium Jar."</a></body></html>
\ No newline at end of file
<html><body>Magister Xenovia:<br>Well, we certainly aren't trying to keep anyone from using the urn that wants to... I suppose you will be wanting to summon a departed one's soul? I'm sorry, my friend, but the powder you need will not come for free... It may not look like much, but it is the property of the guild... A pouch of it will cost you 1,000 adena.<br><a action="bypass -h Quest 345_MethodToRaiseTheDead 3">"I wish to buy the powder."</a><br><a action="bypass -h npc_%objectId%_Chat">Quit</a></body></html>
\ No newline at end of file
<html><body>Magister Xenovia:<br>That's what i like! A plain speaker! Now put this powder into the medium jar along with the bones you have. I fear that results may be other what you expect...</body></html>
\ No newline at end of file
<html><body>Magister Xenovia:<br>Were the results what you expected? I feel I must warn you, it's not healthy for Humans to spend so much time with the dead. It tends to loro your outlook.<br>By the way, if you want to get rid of all those<font color="LEVEL"> useless bone fragments</font> you should sell them to<font color="LEVEL"> Mad Doctor Orpheus</font>. He can be found in the eastern part of the village.</body></html>
\ No newline at end of file
<html><body>Locksmith Dorothy:<br>Those damn crockians have devoured all my partners! Not to mention the fact that they have ruined my bussines!<br>Who are you? Do we have any business together? Are you intrested in making some easy money?<br><a action="bypass -h Quest 345_MethodToRaiseTheDead 1">"I want to make some easy money!"</a></body></html>
\ No newline at end of file
<html><body>Locksmith Dorothy:<br>I thought you might. I could use some extra adena as well. I think we will make a good team! Here's my plan...<br>Through great personal sacrifice I have located the treasure of the Pirate Captain Zaken! My former partners found it on Pirate's Island and were bringing a small part of it back to this village, they were slaughtered and devoured by crockians! I searched the site of the massacre for any remnant of the treasure but found nothing. Either they managed to hide the treasure somewhere, or it rests in the bellies of damned crockians!<br><a action="bypass -h Quest 345_MethodToRaiseTheDead 30970-03.htm">"What happened after that?"</a></body></html>
\ No newline at end of file
<html><body>Locksmith Dorothy:<br>Not much, my friend... If i could, i would slice openthe bellies of all the damned crockians I could find! If I didn't locate the treasure. as leasr I would have my revenge, no?<br>In fact, I would really appreciate it if you would go to the<font color="LEVEL"> Field of Whispers</font> just outside the village and kill<font color="LEVEL"> Crockians and Crockian warriors</font>. Their corpses should yeld the remains of my friends, and possibly more. Bring whatever you find back to me. Meanwhite, I will continue my investigation. If we find the treasure you will be gretly rewarded...</body></html>
\ No newline at end of file
<html><body>Locksmith Dorothy:<br>Sorry but you dont have all parts I asked!</body></html>
\ No newline at end of file
<html><body>Locksmith Dorothy:<br>Ah, yes, I see that you have assembled an entire skeleton. Good work! Those damned crockians must have stripped them before they ate them, I don't see any remnant of clothing. I can't tell which one of my partners this is...<br>I really hate to do this, but...<br><a action="bypass -h Quest 345_MethodToRaiseTheDead 2">"What?"</a></body></html>
\ No newline at end of file
<html><body>Locksmith Dorothy:<br>The Dark Elves! I hate dealing with them, but there is a woman named<font color="LEVEL"> Xenovia</font> at their local guild who could be of great assistance to us. She always carries around a strange looking pot. I've heard that she uses it to summon the souls of the dead... If this is true, perhaps she can help us.. Take these bones to her. Or, if you have some other method of cummunicating with the dead, speak up!</body></html>
\ No newline at end of file
<html><body>Locksmith Dorothy:<br>Hey, don't try to pull that "little village maiden" crap with me! I worked hard to collect all those bones and if I need to I will go and collect them all again! Oh, wait, I just thought of something...<br>Oh! Now I remember... One time Iason Heine's nephew offered a reward for finding a young maiden... His tastes are quite common for an aristocrat! If we play this right we could make alot of money!<br>You mustn't tell anyone about this. Here, take this as compensation. This information came from someone inside the Trade Guild... If you take this to the Blacksmith Guild, they will give you a good ammount of money for it.<br>Ah, come back if you continue to help your friends collect the ashes.</body></html>
\ No newline at end of file
<html><body>Soul Urn:<br>This urn is a conduit between the natural world and the world of Shilen. Bones and magical powder mixed together within it will summon souls.<br><a action="bypass -h Quest 345_MethodToRaiseTheDead 4">Listen to the urn</a></body></html>
\ No newline at end of file
<html><body>Soul Urn:<br>The sound of crying emanates from the urn:<br>Sob! Sniff! Waahhhhh! Booo hooo!<br><a action="bypass -h Quest 345_MethodToRaiseTheDead 30973-03.htm">Explain the situation</a></body></html>
\ No newline at end of file
<html><body>Soul Urn:<br>A voice emanates from the jar:<br>I have no idea what you're talking about... I was never an adventurer... I don't know anyone name Dorothy... Boo hoo hoo... Waahhhh!<br>The jar falls silent...</body></html>
\ No newline at end of file
# Made by mtrix
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 = "345_MethodToRaiseTheDead"
ADENA = 57
VICTIMS_ARM_BONE = 4274
VICTIMS_THIGH_BONE = 4275
VICTIMS_SKULL = 4276
VICTIMS_RIB_BONE = 4277
VICTIMS_SPINE = 4278
USELESS_BONE_PIECES = 4280
POWDER_TO_SUMMON_DEAD_SOULS = 4281
BILL_OF_IASON_HEINE = 4310
CHANCE = 15
CHANCE2 = 50
class Quest (JQuest) :
def __init__(self,id,name,descr):
JQuest.__init__(self,id,name,descr)
self.questItemIds = [VICTIMS_ARM_BONE, VICTIMS_THIGH_BONE, VICTIMS_SKULL, VICTIMS_RIB_BONE, VICTIMS_SPINE, POWDER_TO_SUMMON_DEAD_SOULS]
def onEvent (self,event,st) :
htmltext = event
if event == "1" :
st.set("cond","1")
st.setState(State.STARTED)
htmltext = "30970-02.htm"
st.playSound("ItemSound.quest_accept")
elif event == "2" :
st.set("cond","2")
htmltext = "30970-06.htm"
elif event == "3" :
if st.getQuestItemsCount(ADENA)>=1000 :
st.takeItems(ADENA,1000)
st.giveItems(POWDER_TO_SUMMON_DEAD_SOULS,1)
st.set("cond","3")
htmltext = "30912-03.htm"
st.playSound("ItemSound.quest_itemget")
else :
htmltext = "<html><body>You dont have enough adena!</body></html>"
elif event == "4" :
htmltext = "30973-02.htm"
st.takeItems(POWDER_TO_SUMMON_DEAD_SOULS,-1)
st.takeItems(VICTIMS_ARM_BONE,-1)
st.takeItems(VICTIMS_THIGH_BONE,-1)
st.takeItems(VICTIMS_SKULL,-1)
st.takeItems(VICTIMS_RIB_BONE,-1)
st.takeItems(VICTIMS_SPINE,-1)
st.set("cond","6")
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 != 30970 and id != State.STARTED : return htmltext
level = player.getLevel()
cond = st.getInt("cond")
amount = st.getQuestItemsCount(USELESS_BONE_PIECES)
if npcId==30970 :
if id == State.CREATED :
if level>=35 :
htmltext = "30970-01.htm"
else :
htmltext = "<html><body>(This is a quest that can only be performed by players of level 35 and above.)</body></html>"
st.exitQuest(1)
elif cond==1 and st.getQuestItemsCount(VICTIMS_ARM_BONE) and st.getQuestItemsCount(VICTIMS_THIGH_BONE) and st.getQuestItemsCount(VICTIMS_SKULL) and st.getQuestItemsCount(VICTIMS_RIB_BONE) and st.getQuestItemsCount(VICTIMS_SPINE) :
htmltext = "30970-05.htm"
elif cond==1 and (st.getQuestItemsCount(VICTIMS_ARM_BONE)+st.getQuestItemsCount(VICTIMS_THIGH_BONE)+st.getQuestItemsCount(VICTIMS_SKULL)+st.getQuestItemsCount(VICTIMS_RIB_BONE)+st.getQuestItemsCount(VICTIMS_SPINE)<5) :
htmltext = "30970-04.htm"
elif cond==7 :
htmltext = "30970-07.htm"
st.set("cond","1")
st.giveItems(ADENA,amount*238)
st.giveItems(BILL_OF_IASON_HEINE,self.getRandom(7)+1)
st.takeItems(USELESS_BONE_PIECES,-1)
if npcId==30912 :
if cond == 2 :
htmltext = "30912-01.htm"
st.playSound("ItemSound.quest_middle")
elif cond == 3 :
htmltext = "<html><body>What did the urn say?</body></html>"
elif cond == 6 :
htmltext = "30912-04.htm"
st.set("cond","7")
if npcId==30973 :
if cond==3 :
htmltext = "30973-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()
random = self.getRandom(100)
if random<=CHANCE :
if not st.getQuestItemsCount(VICTIMS_ARM_BONE) :
st.giveItems(VICTIMS_ARM_BONE,1)
elif not st.getQuestItemsCount(VICTIMS_THIGH_BONE) :
st.giveItems(VICTIMS_THIGH_BONE,1)
elif not st.getQuestItemsCount(VICTIMS_SKULL) :
st.giveItems(VICTIMS_SKULL,1)
elif not st.getQuestItemsCount(VICTIMS_RIB_BONE) :
st.giveItems(VICTIMS_RIB_BONE,1)
elif not st.getQuestItemsCount(VICTIMS_SPINE) :
st.giveItems(VICTIMS_SPINE,1)
if random<=CHANCE2 :
st.giveItems(USELESS_BONE_PIECES,self.getRandom(8)+1)
return
QUEST = Quest(345,qn,"Method To Raise The Dead")
QUEST.addStartNpc(30970)
QUEST.addTalkId(30970)
QUEST.addTalkId(30912)
QUEST.addTalkId(30973)
QUEST.addKillId(20789)
QUEST.addKillId(20791)
\ No newline at end of file
<html><body>Magister Xenovia:<br>
I'm afraid I can't tell you much about that Medium Jar, not that you are the first to inquire about it... Some fellow from the Dark Elven village was asking questions about it a while back.<br>
I'm of the opinion that the urn's abilities have been vastly over-stated in these wild rumors. I don't believe that actual souls of the dead can be conjured with it. At most it is a simple conduit between this world and the abyss where Shilen dwells. Hmm, that isn't far from the rumors, is it? Heh heh...<br>
Oh, yes, I forgot. Some powder was delivered here recently that is supposed to be used with the urn. Something about putting it into the urn along with an article belonging to a dead person...<br>
<a action="bypass -h Quest Q00345_MethodToRaiseTheDead 30912-02.html">"I wish to use the Medium Jar."</a>
</body></html>
\ No newline at end of file
<html><body>Magister Xenovia:<br>
Well, we certainly aren't trying to keep anyone from using the urn that wants to... I suppose you will be wanting to summon a departed one's soul? I'm sorry, my friend, but the powder you need will not come for free... It may not look like much, but it is the property of the guild... A pouch of it will cost you 1,000 adena.<br>
<a action="bypass -h Quest Q00345_MethodToRaiseTheDead 30912-03.html">"I wish to buy the powder."</a><br>
<a action="bypass -h Quest Q00345_MethodToRaiseTheDead 30912-05.html">Quit</a>
</body></html>
\ No newline at end of file
<html><body>Magister Xenovia:<br>
That's what I like! A plain speaker! Now put this powder into the medium jar along with the bones you have. I fear that the results may be other than what you expect...
</body></html>
\ No newline at end of file
<html><body>Magister Xenovia:<br>
You talk the talk but your wallet is weak. Come back when you have more adena.
</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