Skip to content
Snippets Groups Projects
Commit 6484d93c authored by xban1x's avatar xban1x
Browse files

BETA: Quest Q00299_GatherIngredientsForPie in Java.

	* Reviewed by: ivantotov
parent 51c13297
No related branches found
No related tags found
No related merge requests found
Showing
with 40 additions and 130 deletions
<html><body>Grocer Lara:<br>The fruit aroma is pleasant, isn't it? The spice is specially imported! Please take it to Emily.</body></html>
\ No newline at end of file
<html><body>Guard Bright:<br>
You again? I'm on duty! What do you need?<br><a action="bypass -h Quest 299_GatherIngredientsForPie 30466-1.htm">Your mother sent me.</a></body></html>
\ No newline at end of file
<html><body>Emily:<br>Do I sound suspicious? At one time, this village was renowned for its hospitality... But then, something terrible happened here... We've been very wary of strangers since that dark day!<br>But recently, there have been promising signs... High Priest Sylvan is planning a small tea party after the Sunday worship service at the temple. Worshippers and visitors are all invited! Hopefully, this will bring our village back to life! I want to bake some pies for the party, but I'm out of honey. Could you help me?<br><a action="bypass -h Quest 299_GatherIngredientsForPie 30620-1.htm">I'll help you.</a></body></html>
\ No newline at end of file
<html><body>Emily:<br>
Oh... Very impressive! That was quick work! But now what am I going to do? I don't have the spice I need for the pie! Could you get some for me? You can't bake a fruit pie without fruit spice! Will you help me again?<br>
<a action="bypass -h Quest 299_GatherIngredientsForPie 30620-3.htm">I'll help you.</a></body></html>
\ No newline at end of file
<html><body>Emily:<br>Please go to Grocer Lara in the Magic Shop in Dion. She will have a spice for me</body></html>
\ No newline at end of file
<html><body>Emily:<br>Oh, wonderful! You brought the spice! You're my hero! But, you see, I've got a problem... There's just one more thing...<br>
<a action="bypass -h Quest 299_GatherIngredientsForPie 30620-5.htm">OK, I'll help you again.</a></body></html>
\ No newline at end of file
# 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 = "299_GatherIngredientsForPie"
#NPC
LARA = 30063
BRIGHT = 30466
EMILY = 30620
#MOBS
WASP_WORKER = 20934
WASP_LEADER = 20935
#ITEMS
FRUIT_BASKET = 7136
AVELLAN_SPICE = 7137
HONEY_POUCH = 7138
#REWARDS
ADENA = 57
VARNISH = 1865
class Quest (JQuest) :
def __init__(self,id,name,descr):
JQuest.__init__(self,id,name,descr)
self.questItemIds = [HONEY_POUCH, AVELLAN_SPICE, FRUIT_BASKET]
def onAdvEvent (self,event,npc, player) :
htmltext = event
st = player.getQuestState(qn)
if not st : return
cond = st.getInt("cond")
if event == "30620-1.htm" :
st.set("cond","1")
st.setState(State.STARTED)
st.playSound("ItemSound.quest_accept")
elif event == "30620-3.htm" and st.getQuestItemsCount(HONEY_POUCH)==100:
st.takeItems(HONEY_POUCH,100)
st.set("cond","3")
elif event == "30063-1.htm" and cond == 3:
st.giveItems(AVELLAN_SPICE,1)
st.set("cond","4")
elif event == "30620-5.htm" and st.getQuestItemsCount(AVELLAN_SPICE):
st.takeItems(AVELLAN_SPICE,1)
st.set("cond","5")
elif event == "30466-1.htm" and cond == 5:
st.giveItems(FRUIT_BASKET,1)
st.set("cond","6")
elif event == "30620-7.htm" and st.getQuestItemsCount(FRUIT_BASKET):
st.takeItems(FRUIT_BASKET,1)
st.giveItems(ADENA,25000)
st.giveItems(VARNISH,50)
st.unset("cond")
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()
if npcId != 30620 and id != State.STARTED : return htmltext
cond = st.getInt("cond")
if npcId == EMILY and cond == 0 :
if player.getLevel() >= 34 and player.getLevel() <= 40 :
htmltext = "30620-0.htm"
else:
htmltext = "30620-0a.htm"
st.exitQuest(1)
elif npcId == EMILY and st.getQuestItemsCount(HONEY_POUCH) == 100 :
htmltext = "30620-2.htm"
elif npcId == LARA and cond == 3 :
htmltext = "30063-0.htm"
elif npcId == EMILY and st.getQuestItemsCount(AVELLAN_SPICE) == 1 :
htmltext = "30620-4.htm"
elif npcId == BRIGHT and cond == 5 :
htmltext = "30466-0.htm"
elif npcId == EMILY and st.getQuestItemsCount(FRUIT_BASKET) == 1 :
htmltext = "30620-6.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()
count = st.getQuestItemsCount(HONEY_POUCH)
if st.getInt("cond") == 1 and count < 100 :
st.giveItems(HONEY_POUCH,1)
if count == 99 :
st.playSound("ItemSound.quest_middle")
st.set("cond","2")
else :
st.playSound("ItemSound.quest_itemget")
return
QUEST = Quest(299,qn,"Gather Ingredients For A Pie")
QUEST.addStartNpc(30620)
QUEST.addTalkId(30620)
QUEST.addTalkId(30063)
QUEST.addTalkId(30466)
QUEST.addKillId(WASP_LEADER)
QUEST.addKillId(WASP_WORKER)
\ No newline at end of file
<html><body>Grocer Lara:<br>
<html><body>Trader Lara:<br>
Emily's imported spice just arrived. Here, take a sniff! Isn't it fragrant?<br>
As she requested, I ordered a wonderfully aromatic spice! She'll be able to bake a delicious pie!<br>
<a action="bypass -h Quest 299_GatherIngredientsForPie 30063-1.htm">I'll take it to her.</a></body></html>
\ No newline at end of file
<a action="bypass -h Quest Q00299_GatherIngredientsForPie 30063-02.html">"I'll take it to her."</a>
</body></html>
\ No newline at end of file
<html><body>Trader Lara:<br>
The fruit aroma is pleasant, isn't it? The spice is specially imported! Please take it to Emily.
</body></html>
\ No newline at end of file
<html><body>Trader Lara:<br>
Why haven't you returned to Emily yet? Deliver it to her before the fragrance of the spice dissipates. She must be waiting, so please hurry!
</body></html>
\ No newline at end of file
<html><body>Guard Bright:<br>
You again? I'm on duty! What do you need?<br>
<a action="bypass -h Quest Q00299_GatherIngredientsForPie 30466-02.html">"Your mother sent me."</a>
</body></html>
\ No newline at end of file
<html><body>Guard Bright:<br>
My mother? Oh yeah, she asked for some fruit. Her bad knee keeps her in the house.<br>
Can you take her this basket? I can't leave my post. Thank you!</body></html>
\ No newline at end of file
Can you take her this basket? I can't leave my post. Thank you!
</body></html>
\ No newline at end of file
<html><body>Guard Bright:<br>
Keep it down! I'm on duty here. Are you done? Find someone else to bother.
</body></html>
\ No newline at end of file
<html><body>Emily:<br>
Do I sound suspicious? At one time, this village was renowned for its hospitality... But then, something terrible happened here... We've been very wary of strangers since that dark day!<br>
But recently, there have been promising signs... High Priest Sylvan is planning a small tea party after the Sunday worship service at the temple. Worshippers and visitors are all invited! Hopefully, this will bring our village back to life! I want to bake some pies for the party, but I'm out of honey. Could you help me?<br>
(Quest for characters level between 34 and 40)
<a action="bypass -h Quest Q00299_GatherIngredientsForPie 30620-03.htm">"I'll help you."</a>
</body></html>
\ No newline at end of file
<html><body>Emily:<br>
I'd like to take you up on your offer, stranger, but catching bees isn't for the inexperienced. Come back later.<br>
(Only a character of level 34 or above may undertake this quest.)
</body></html>
\ No newline at end of file
<html><body>Emily:<br>
The highest quality honey can be found in the beehive, but the insects that guard it are actually wasps! These wasps store honey in a organ called a honey sac inside their body. This is by far the finest honey, but it's extreamely scarce! To make a pie I'll need at least 100 honey sacs! Get them by killing<font color="LEVEL"> wasp leaders</font> and<font color="LEVEL"> wasp workers</font>.<br>
Get<font color="LEVEL"> 100 honey sacs</font> and bring them to me.
The highest quality honey can be found in the Beehive, but the insects that guard it are actually wasps! These wasps store honey in a organ called a honey sac inside their body. This is by far the finest honey, but it's extremely scarce! To make a pie I'll need at least 100 honey sacs! Get them by killing <font color="LEVEL">Wasp Leaders</font> and <font color="LEVEL">Wasp Workers</font>.<br>
Get <font color="LEVEL">100 honey sacs</font> and bring them to me.
</body></html>
\ No newline at end of file
<html><body>Emily:<br>
Oh.... Very impressive! That was quick work! But now what am I going to do? I don't have the spice I need for the pie! Could you get some for me? You can't bake a fruit pie without fruit spice! Will you help me again?<br>
<a action="bypass -h Quest Q00299_GatherIngredientsForPie 30620-06.html">"I'll help you."</a>
</body></html>
\ No newline at end of file
<html><body>Emily:<br>
Hello again! How's the collection of honey sacs going? I need at least 100 honey sacs. Get busy!
</body></html>
\ No newline at end of file
<html><body>Emily:<br>
Oh, thank you! Please go and see Miss Lara in the village. She knows the kind of fruit spice I want!
</body></html>
\ No newline at end of file
<html><body>Emily:<br>
These aren't enough honey sacs! Don't you realize I need to make enough pies for the villagers and the visitors alike? I'll need at least 100 honey sacs!
</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