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

BETA: Retail-like quest '''Dig Up the Sea of Spores! ''' (356).

parent b0c1e9ba
Loading
Showing
with 51 additions and 128 deletions
......@@ -260,7 +260,6 @@ quests/348_ArrogantSearch/__init__.py
quests/351_BlackSwan/__init__.py
quests/352_HelpRoodRaiseANewPet/__init__.py
quests/355_FamilyHonor/__init__.py
quests/356_DigUpTheSeaOfSpores/__init__.py
quests/371_ShriekOfGhosts/__init__.py
quests/372_LegacyOfInsolence/__init__.py
quests/373_SupplierOfReagents/__init__.py
......
<html><body>Magister Gauen:<br>
Since the era of Shunaiman, the first emperor of the ancient Elmoreden Empire, the Mystic of the Ivory Tower have been researching the Sea of Spores. Around E.D 500 they constructed a force field tower which stopped the spread of the wretched sea. Their research has continued throughout the centuries<br>
Althought the ancient barrier appears to be holding, the Sea of Spores continues to threaten us. A final solution to this problem must be found.<br>
<a action="bypass -h Quest 356_DigUpTheSeaOfSpores 30717-1.htm">What can we do?</a></body></html>
<html><body>Magister Gauen:<br>
Here we go... I acknowledge that I received from you 50 Herbivorous Spores and 50 Carnivorous Spores. Here is your reward. If you wish, come back and help me again. We have enough from now, but I'm sure that in the future we shall need more.
</body></html>
<html><body>Magister Gauen:<br>
I must have a tissue sample of an organism that has joined with spores and grown root.<font color="LEVEL"> Rotting Tree Spores</font> and<font color="LEVEL"> Spore zombies</font> will do nicely.<br>
<a action="bypass -h Quest 356_DigUpTheSeaOfSpores 30717-3.htm">I'll do it.</a></body></html>
<html><body>Magister Gauen:<br>
There are many different types of spores, all with unique and often dangerous characteristics. Are you sure you want to do this?<br>
I think you'd need more experience in order to help us.<br>
<font color="LEVEL">(Quest for characters level 43 or above)</font>
</body></html>
<html><body>Magister Gauen:<br>
Have you been to the<font color="LEVEL"> Sea of Spores</font>? Bring me the<font color="LEVEL"> spores from rotten trees</font> in this yellow pouch and the<font color="LEVEL"> spores from spore zombies</font> in this grey pouch. Fill the pouches with<font color="LEVEL"> 50 spores each</font> and then bring them back to me.
</body></html>
# Made by disKret
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 = "356_DigUpTheSeaOfSpores"
#NPC
GAUEN = 30717
#MOBS
SPORE_ZOMBIE = 20562
ROTTING_TREE = 20558
#QUEST ITEMS
CARNIVORE_SPORE = 5865
HERBIBOROUS_SPORE = 5866
class Quest (JQuest) :
def __init__(self,id,name,descr):
JQuest.__init__(self,id,name,descr)
self.questItemIds = [CARNIVORE_SPORE, HERBIBOROUS_SPORE]
def onEvent (self,event,st) :
htmltext = event
carn=st.getQuestItemsCount(CARNIVORE_SPORE)
herb=st.getQuestItemsCount(HERBIBOROUS_SPORE)
if event == "30717-5.htm" :
if st.getPlayer().getLevel() >= 43 :
st.set("cond","1")
st.setState(State.STARTED)
st.playSound("ItemSound.quest_accept")
else :
htmltext = "30717-4.htm"
st.exitQuest(1)
elif event in [ "30717-10.htm", "30717-9.htm" ] and (carn>=50 and herb>=50) :
if event == "30717-9.htm" :
st.giveItems(57,44000)
else :
st.addExpAndSp(36000,2600)
st.takeItems(CARNIVORE_SPORE,-1)
st.takeItems(HERBIBOROUS_SPORE,-1)
st.playSound("ItemSound.quest_finish")
st.exitQuest(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()
cond = st.getInt("cond")
carn=st.getQuestItemsCount(CARNIVORE_SPORE)
herb=st.getQuestItemsCount(HERBIBOROUS_SPORE)
if cond == 0 :
htmltext = "30717-0.htm"
elif cond != 3 :
htmltext = "30717-6.htm"
elif cond == 3 or (carn>=50 and herb>=50) :
htmltext = "30717-7.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()
carn=st.getQuestItemsCount(CARNIVORE_SPORE)
herb=st.getQuestItemsCount(HERBIBOROUS_SPORE)
if npcId == SPORE_ZOMBIE and carn < 50 :
st.giveItems(CARNIVORE_SPORE,1)
if carn == 49 :
if herb >= 50 :
st.playSound("ItemSound.quest_middle")
st.set("cond","3")
else :
st.playSound("ItemSound.quest_middle")
st.set("cond","2")
else :
st.playSound("ItemSound.quest_itemget")
elif npcId == ROTTING_TREE and herb < 50 :
st.giveItems(HERBIBOROUS_SPORE,1)
if herb == 49 :
if carn >= 50 :
st.playSound("ItemSound.quest_middle")
st.set("cond","3")
else :
st.playSound("ItemSound.quest_middle")
st.set("cond","2")
else:
st.playSound("ItemSound.quest_itemget")
return
QUEST = Quest(356,qn,"Dig Up The Sea Of Spores")
QUEST.addStartNpc(GAUEN)
QUEST.addTalkId(GAUEN)
QUEST.addKillId(SPORE_ZOMBIE)
QUEST.addKillId(ROTTING_TREE)
\ No newline at end of file
<html><body>Magister Gauen:<br>
Since the era of Shunaiman, the first emperor of the ancient Elmoreden Empire, the Mystics of the Ivory Tower have been researching the Sea of Spores. Around E.D. 500 they constructed a force field tower which stopped the spread of that wretched sea. Their research has continued throughout the centuries.<br>
Although the ancient barrier appears to be holding, the Sea of Spores continues to threaten us. A final solution to this problem must be found.<br>
<a action="bypass -h Quest Q00356_DigUpTheSeaOfSpores 30717-02.html">What can we do?</a>
</body></html>
\ No newline at end of file
......@@ -3,4 +3,5 @@ Frankly, I'm not sure. Up to now our research has been focused on sustaining and
However, it has become clear that we need a more permanent solution. For this we must return to the Sea of Spores itself.<br>
We must shift our strategy to researching each individual spore, one by one.<br>
We must study the colonies they build, how they spawn and the complex relationships between the plants and animals of the sea.<br>
<a action="bypass -h Quest 356_DigUpTheSeaOfSpores 30717-2.htm">Very interesting.</a></body></html>
<a action="bypass -h Quest Q00356_DigUpTheSeaOfSpores 30717-03.html">"Very interesting."</a>
</body></html>
\ No newline at end of file
<html><body>Magister Gauen:<br>
I must have a tissue sample of an organism that has joined with spores and grown roots. <font color="LEVEL">Rotting Tree Spores</font> and <font color="LEVEL">spore zombies</font> will do nicely.<br>
<a action="bypass -h Quest Q00356_DigUpTheSeaOfSpores 30717-04.html">"I'll do it."</a>
</body></html>
\ No newline at end of file
<html><body>Magister Gauen:<br>
There are many different types of spores, all with unique and often dangerous characteristics. Are you sure you want to do this?<br>
<a action="bypass -h Quest 356_DigUpTheSeaOfSpores 30717-5.htm">I'll do it.</a>
</body></html>
<a action="bypass -h Quest Q00356_DigUpTheSeaOfSpores 30717-05.html">"I'll do it."</a>
</body></html>
\ No newline at end of file
<html><body>Magister Gauen:<br>
Your resolve is admirable! Go and get the spores that live as parasites on<font color="LEVEL"> rotten trees</font> and<font color="LEVEL"> spore zombies</font>. Put the spores from the spore zombies in this grey pouch and put the spores from the rotten trees in this yellow pouch. The capacity of the pouches varies according to the size of the spores. Each puch usually holds about<font color="LEVEL"> 50</font> spores. Thank you for your assistance.
</body></html>
Your resolve is admirable! Go and get the spores that live as parasites on <font color="LEVEL">rotten trees</font> and <font color="LEVEL">spore zombies</font>. Put the spores from the spore zombies in this grey pouch and put the spores from the rotten trees in this yellow pouch. The capacity of the pouches varies according to the size of the spores. Each pouch usually holds about <font color="LEVEL">50</font> spores. Thank you for your assistance.
</body></html>
\ No newline at end of file
<html><body>Magister Gauen:<br>
Since the era of Shunaiman, the first emperor of the ancient Elmoreden Empire, the Mystics of the Ivory Tower have been researching the Sea of Spores. Around E.D. 500 they constructed a force field tower which stopped the spread of that wretched sea. Their research has continued through the centuries.<br>
They could use some help in their studies, but I'm afraid you're not yet ready.<br>
(This quest may only be undertaken by a character of level 43 or above.)
</body></html>
\ No newline at end of file
<html><body>Magister Gauen:<br>
Have you been to the <font color="LEVEL">Sea of Spores</font>? Bring me the <font color="LEVEL">spores from rotten trees</font> in this yellow pouch and the <font color="LEVEL">spores from spore zombies</font> in this grey pouch. Fill the pouches with <font color="LEVEL">50 spores each</font> and then bring them back to me.
</body></html>
\ No newline at end of file
<html><body>Magister Gauen:<br>
Have you just returned from the <font color="LEVEL">Sea of Spores</font>? I see that you have filled the yellow pouch. Due to inevitable...ah, shrinkage, I had hoped that you would fill both pouches. Well, no matter. What do you wish to do? Will you give me the yellow pouch?<br>
<a action="bypass -h Quest Q00356_DigUpTheSeaOfSpores 30717-09.html">Give him the yellow pouch.</a><br>
<a action="bypass -h Quest Q00356_DigUpTheSeaOfSpores 30717-10.html">Say you will continue.</a>
</body></html>
\ No newline at end of file
<html><body>Magister Gauen:<br>
Do you wish to continue collecting spores or would you like to quit?<br>
<a action="bypass -h Quest Q00356_DigUpTheSeaOfSpores 30717-10.html">"I will collect more spores."</a><br>
<a action="bypass -h Quest Q00356_DigUpTheSeaOfSpores 30717-11.html">"I quit."</a>
</body></html>
\ No newline at end of file
<html><body>Magister Gauen:<br>
Go to the <font color="LEVEL"> Sea of Spores</font> and bring back the spores that are parasites on the bodies of <font color="LEVEL">rotten trees</font> and <font color="LEVEL">spore zombies</font>. Collect 50 of each kind in each of the two pouches. Please do this and restore peace to the community.
</body></html>
\ No newline at end of file
<html><body>Magister Gauen:<br>
Thank you very much. <br>If you ever return to the Sea of Spores, come and see me.
</body></html>
\ No newline at end of file
<html><body>Magister Gauen:<br>
Have you just returned from the <font color="LEVEL">Sea of Spores</font>? I see that you have filled the grey pouch. Due to inevitable...ah, shrinkage, I had hoped that you would fill both pouches. Well, no matter. What do you wish to do? Will you give me the grey pouch?<br>
<a action="bypass -h Quest Q00356_DigUpTheSeaOfSpores 30717-09.html">Give him the grey pouch.</a><br>
<a action="bypass -h Quest Q00356_DigUpTheSeaOfSpores 30717-10.html">Say you will continue.</a>
</body></html>
\ No newline at end of file
<html><body>Magister Gauen:<br>
Ah, you've returned! Give me the pouches. Hmm...<br>
Actually, I'm a little busy... Just put them anywhere...<br>
<a action="bypass -h Quest 356_DigUpTheSeaOfSpores 30717-10.htm">Put down the pouches.</a><br>
<a action="bypass -h Quest 356_DigUpTheSeaOfSpores 30717-8.htm">All of that trouble and you aren't even going to look at them?</a>
</body></html>
<a action="bypass -h Quest Q00356_DigUpTheSeaOfSpores 30717-14.html">Put down the pouches.</a><br>
<a action="bypass -h Quest Q00356_DigUpTheSeaOfSpores 30717-18.html">"All of that trouble and you aren't even going to look at them?"</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