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

BETA: Quest '''Specialty Liquor Delivery''' (622) in Java.

	Patch by: janiko
	Reviewed by: Adry_85, jurchiks
	Tested by: Adry_85
parent b9f401a0
No related branches found
No related tags found
No related merge requests found
Showing
with 29 additions and 189 deletions
......@@ -590,7 +590,7 @@ quests/Q00618_IntoTheFlame/Q00618_IntoTheFlame.java
quests/Q00619_RelicsOfTheOldEmpire/Q00619_RelicsOfTheOldEmpire.java
quests/620_FourGoblets/__init__.py
quests/Q00621_EggDelivery/Q00621_EggDelivery.java
quests/622_DeliveryOfSpecialLiquor/__init__.py
quests/Q00622_SpecialtyLiquorDelivery/Q00622_SpecialtyLiquorDelivery.java
quests/623_TheFinestFood/__init__.py
quests/Q00624_TheFinestIngredientsPart1/Q00624_TheFinestIngredientsPart1.java
quests/625_TheFinestIngredientsPart2/__init__.py
......
<html><body>Chef Jeremy:<br>
Take these specialty liquor to my customers at the hot springs resort.Our motto is "The Customer Always Comes First"! Don't ever forget it!
</body></html>
\ No newline at end of file
<html><body>Pulin:<br>You're the liquor delivery man, right? Show me the booze! I came all the way from Horse Island for a drink!<br>
<a action="bypass -h Quest 622_DeliveryOfSpecialLiquor 31543-1.htm">Here's the liquor delivery.</a></body></html>
\ No newline at end of file
<html><body>Pulin:<br>Actually, I'm not much of a drinker...<br>I thought this might be different!<br>Here's your money.</body></html>
\ No newline at end of file
<html><body>Naff:<br>The hot springs always reminds me of Jeremy's special liquor!<br>Let me guess... You must be Jeremy's delivery man!<br>
<a action="bypass -h Quest 622_DeliveryOfSpecialLiquor 31544-1.htm">Say "I've brought you some specially brewed liquor!"</a></body></html>
\ No newline at end of file
<html><body>Naff:<br>What a marvelous taste!<br>It's truly worthy of the gods!</body></html>
\ No newline at end of file
<html><body>Crocus:<br>I need a drink! Do you have any liquor?<br>
<a action="bypass -h Quest 622_DeliveryOfSpecialLiquor 31545-1.htm">I have your liquor right here!</a></body></html>
\ No newline at end of file
<html><body>Crocus:<br>The fruity bouquet and sparkling sensation on my tongue is awesome! There's absolutely nothing like this in the whole world!<br>Jeremy's liquor is unique to this region but very popular everywhere! I'm so glad I came here.</body></html>
\ No newline at end of file
<html><body>Kuber:<br>That feels so good! I ordered a boiled egg to go with my drink! Once the liquor and the egg arrive, I'll be in heaven!<br>
<a action="bypass -h Quest 622_DeliveryOfSpecialLiquor 31546-1.htm">I'm here to delivery some liquor.</a></body></html>
\ No newline at end of file
<html><body>Kuber:<br>Mmm... That's delicious!<br>You look tired! Can I buy you a drink?</body></html>
\ No newline at end of file
<html><body>Beorin:<br>Dammit! I need a drink! When will that liquor order get here?<br>
<a action="bypass -h Quest 622_DeliveryOfSpecialLiquor 31547-1.htm">I'm here to deliver some liquor.</a></body></html>
\ No newline at end of file
<html><body>Beorin:<br>It'a about time!<br>Mmm... These hot springs just aren't the same without a nice glass of wine...<br>Hee hee... I'll never get tired of drinking this stuff!<br>Oh, thanks for the delivery! Here's the money for the wine.</body></html>
\ No newline at end of file
# Made by disKret
import sys
from com.l2jserver import Config
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 = "622_DeliveryOfSpecialLiquor"
#NPC
LIETTA = 31267
JEREMY = 31521
PULIN = 31543
NAFF = 31544
CROCUS = 31545
KUBER = 31546
BEORIN = 31547
#QUEST ITEMS
SPECIAL_DRINK = 7197
FEE_OF_DRINK = 7198
#REWARDS
ADENA = 57
HASTE_POTION = 734
#Chance to get an S-grade random recipe instead of just adena and haste potion
RPCHANCE=10
#Change this value to 1 if you wish 100% recipes, default 70%
ALT_RP100=0
class Quest (JQuest) :
def __init__(self,id,name,descr):
JQuest.__init__(self,id,name,descr)
self.questItemIds = [SPECIAL_DRINK, FEE_OF_DRINK]
def onEvent (self,event,st) :
htmltext = event
cond=st.getInt("cond")
if event == "31521-1.htm" :
if cond==0:
st.set("cond","1")
st.setState(State.STARTED)
st.giveItems(SPECIAL_DRINK,5)
st.playSound("ItemSound.quest_accept")
else:
htmltext = Quest.getNoQuestMsg(player)
elif event == "31547-1.htm" :
if st.getQuestItemsCount(SPECIAL_DRINK):
if cond==1:
st.takeItems(SPECIAL_DRINK,1)
st.giveItems(FEE_OF_DRINK,1)
st.set("cond","2")
else:
htmltext = Quest.getNoQuestMsg(player)
else:
htmltext="LMFAO!"
st.exitQuest(1)
elif event == "31546-1.htm" :
if st.getQuestItemsCount(SPECIAL_DRINK):
if cond==2:
st.takeItems(SPECIAL_DRINK,1)
st.giveItems(FEE_OF_DRINK,1)
st.set("cond","3")
else:
htmltext = Quest.getNoQuestMsg(player)
else:
htmltext="LMFAO!"
st.exitQuest(1)
elif event == "31545-1.htm" :
if st.getQuestItemsCount(SPECIAL_DRINK):
if cond==3:
st.takeItems(SPECIAL_DRINK,1)
st.giveItems(FEE_OF_DRINK,1)
st.set("cond","4")
else:
htmltext = Quest.getNoQuestMsg(player)
else:
htmltext="LMFAO!"
st.exitQuest(1)
elif event == "31544-1.htm" :
if st.getQuestItemsCount(SPECIAL_DRINK):
if cond==4:
st.takeItems(SPECIAL_DRINK,1)
st.giveItems(FEE_OF_DRINK,1)
st.set("cond","5")
else:
htmltext = Quest.getNoQuestMsg(player)
else:
htmltext="LMFAO!"
st.exitQuest(1)
elif event == "31543-1.htm" :
if st.getQuestItemsCount(SPECIAL_DRINK):
if cond==5:
st.takeItems(SPECIAL_DRINK,1)
st.giveItems(FEE_OF_DRINK,1)
st.set("cond","6")
else:
htmltext = Quest.getNoQuestMsg(player)
else:
htmltext="LMFAO!"
st.exitQuest(1)
elif event == "31521-3.htm" :
st.set("cond","7")
elif event == "31267-2.htm" :
if st.getQuestItemsCount(FEE_OF_DRINK) == 5:
st.takeItems(FEE_OF_DRINK,5)
random = self.getRandom(1000)
if random < 800 :
st.giveItems(ADENA,18800)
st.rewardItems(HASTE_POTION,1)
elif random < 880 :
st.giveItems(6849+ALT_RP100,1)
elif random < 960 :
st.giveItems(6847+ALT_RP100,1)
elif random < 1000 :
st.giveItems(6851+ALT_RP100,1)
st.playSound("ItemSound.quest_finish")
st.exitQuest(1)
else:
htmltext = Quest.getNoQuestMsg(player)
return htmltext
def onTalk (self,npc,player):
htmltext = Quest.getNoQuestMsg(player)
st = player.getQuestState(qn)
if st :
npcId = npc.getId()
id = st.getState()
if id == State.CREATED :
st.set("cond","0")
cond = st.getInt("cond")
if npcId == 31521 and cond == 0 :
if player.getLevel() >= 68 :
htmltext = "31521-0.htm"
else:
st.exitQuest(1)
elif id == State.STARTED :
if npcId == 31547 and cond == 1 and st.getQuestItemsCount(SPECIAL_DRINK) :
htmltext = "31547-0.htm"
elif npcId == 31546 and cond == 2 and st.getQuestItemsCount(SPECIAL_DRINK) :
htmltext = "31546-0.htm"
elif npcId == 31545 and cond == 3 and st.getQuestItemsCount(SPECIAL_DRINK) :
htmltext = "31545-0.htm"
elif npcId == 31544 and cond == 4 and st.getQuestItemsCount(SPECIAL_DRINK) :
htmltext = "31544-0.htm"
elif npcId == 31543 and cond == 5 and st.getQuestItemsCount(SPECIAL_DRINK) :
htmltext = "31543-0.htm"
elif npcId == 31521 and cond == 6 and st.getQuestItemsCount(FEE_OF_DRINK) == 5 :
htmltext = "31521-2.htm"
elif npcId == 31521 and cond == 7 and st.getQuestItemsCount(FEE_OF_DRINK) == 5 :
htmltext = "31521-4.htm"
elif npcId == 31267 and cond == 7 and st.getQuestItemsCount(FEE_OF_DRINK) == 5 :
htmltext = "31267-1.htm"
return htmltext
QUEST = Quest(622,qn,"Delivery of special liquor")
QUEST.addStartNpc(31521)
for i in range(31543,31548)+[31267,31521]:
QUEST.addTalkId(i)
\ No newline at end of file
......@@ -149,8 +149,7 @@ public final class Q00367_ElectrifyingRecharge extends Quest
{
giveItems(luckyPlayer, TITAN_LAMP5, 1);
takeItems(luckyPlayer, TITAN_LAMP4, -1);
luckyPlayer.getQuestState(getName()).setCond(2);
playSound(luckyPlayer, QuestSound.ITEMSOUND_QUEST_MIDDLE);
luckyPlayer.getQuestState(getName()).setCond(2, true);
}
}
else if ((random == 1) && !hasQuestItems(luckyPlayer, BROKEN_TITAN_LAMP))
......
<html><body>Lietta:<br>
Are you here for something? Or perhaps to drop something off?<br>
<a action="bypass -h Quest 622_DeliveryOfSpecialLiquor 31267-2.htm">"Jeremy sent me to get some adena." </a>
</body></html>
\ No newline at end of file
<head><body>Lietta:<br>
Are you here for something? Or perhaps to drop something off?<br>
<a action="bypass -h Quest Q00622_SpecialtyLiquorDelivery 31267-02.html">"Jeremy sent me to get some Adena."</a>
</head></body>
\ No newline at end of file
<html><body>Lietta:<br>
Oh, I see. Jeremy didn't pay you after you did work for him? That sounds like Jeremy!<br>
Hold on...<br>Here you are. This should be enough.
</body></html>
\ No newline at end of file
<head><body>Lietta:<br>
Oh, I see. Jeremy didn't pay you after you did work for him? That sounds like Jeremy!<br>
Hold on...<br>
Here you are. This should be enough.
</head></body>
\ No newline at end of file
<html><body>Chef Jeremy:<br>
You look like you could use a few extra adena...<br>
Well I'm looking for a helper! You'll earn an honest wage around here, that's for sure!<br>
All you have to do is take these specialty liquors to my customers. Their names are already written down. Deliver them quickly, and who knows? I might teach you a secret cooking technique! Ha!<br>
<a action="bypass -h Quest 622_DeliveryOfSpecialLiquor 31521-1.htm">I'll deliver your liquor.</a></body></html>
\ No newline at end of file
<head><body>Chef Jeremy:<br>
You look like you could use a few extra Adena...<br>
Well I'm looking for a helper! You'll earn an honest wage around here, that's for sure!<br>
All you have to do is take these specialty liquors to my customers. Their names are already written down. Deliver them quickly, and who knows? I might teach you a secret cooking technique! Ha!<br>
<a action="bypass -h Quest Q00622_SpecialtyLiquorDelivery 31521-03.htm">"I'll deliver your liquor."</a>
</head></body>
\ No newline at end of file
<head><body>Chef Jeremy:<br>
Many dangerous and ferocious beasts lurk these parts. I'd really hate to have to bury another assistant!<br>
(Only a character of level 68 or above may undertake this quest.)
</head></body>
\ No newline at end of file
<head><body>Chef Jeremy:<br>
Please take this specialty liquor to my customers at the hot springs resort.<br>
Our motto is "The Customer Always Comes First!" Don't ever forget it!
</head></body>
\ No newline at end of file
<head><body>Chef Jeremy:<br>
What are you waiting for?<br>
Think my customers who are waiting for my delicious liquor to arrive! Get going!
</head></body>
\ 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