Skip to content
Snippets Groups Projects
Commit 5ac42914 authored by disKret's avatar disKret
Browse files

unstable: More new quests

parent 1e853a3d
No related branches found
No related tags found
No related merge requests found
Showing
with 208 additions and 0 deletions
<html><body>Mineral Trader Fundin:<br>
I have an urgent delivery to the Gods' Cauldron area!<br>Would you deliver it for me?<br>
<a action="bypass -h Quest 13_ParcelDelivery 31274-2.htm">Sure!</a>
</body></html>
\ No newline at end of file
<html><body>Mineral Trader Fundin:<br>
My delivery to the Gods' Cauldron area is too important for a novice!<br>(This quest can only be undertaken by a character of level 74 or above.)
</body></html>
\ No newline at end of file
<html><body>Mineral Trader Fundin:<br>
Take this to<font color="LEVEL"> Flame Blacksmith Vulcan in the lower level of Gods' Cauldron.</font> He'll reward you for it, he's been waiting.
</body></html>
\ No newline at end of file
<html><body>Flame Blacksmith Vulcan:<br>
Did Fundin send you? A little late, but at least you didn't break it.<br>Let me have it.<br>
<a action="bypass -h Quest 13_ParcelDelivery 31539-1.htm">Here.</a>
</body></html>
\ No newline at end of file
<html><body>Flame Blacksmith Vulcan:<br>
It's all here, thanks.<br>Here's a token of my thanks.
</body></html>
\ No newline at end of file
# Made by disKret
import sys
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest
#NPC
FUNDIN = 31274
VULCAN = 31539
#QUEST ITEM
PACKAGE = 7263
class Quest (JQuest) :
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
def onEvent (self,event,st) :
htmltext = event
cond = st.getInt("cond")
if event == "31274-2.htm" :
if cond == 0 :
st.set("cond","1")
st.setState(STARTED)
st.giveItems(PACKAGE,1)
st.playSound("ItemSound.quest_accept")
if event == "31539-1.htm" :
if cond == 1 and st.getQuestItemsCount(PACKAGE) == 1 :
st.takeItems(PACKAGE,1)
st.giveItems(57,82000)
st.setState(COMPLETED)
st.set("cond","0")
st.playSound("ItemSound.quest_finish")
else :
htmltext = "You don't have required items"
return htmltext
def onTalk (Self,npc,st):
htmltext = "<html><head><body>I have nothing to say you</body></html>"
npcId = npc.getNpcId()
id = st.getState()
cond = st.getInt("cond")
if id == CREATED :
st.set("cond","0")
if npcId == FUNDIN and cond == 0 :
if id == COMPLETED :
htmltext = "<html><head><body>This quest have already been completed.</body></html>"
elif st.getPlayer().getLevel() < 74 :
htmltext = "31274-1.htm"
st.exitQuest(1)
elif st.getPlayer().getLevel() >= 74 :
htmltext = "31274-0.htm"
elif npcId == FUNDIN and cond == 1 :
htmltext = "31274-2.htm"
elif npcId == VULCAN and cond == 1 :
htmltext = "31539-0.htm"
return htmltext
QUEST = Quest(13,"13_ParcelDelivery","Parcel Delivery")
CREATED = State('Start', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(31274)
CREATED.addTalkId(31274)
STARTED.addTalkId(31274)
STARTED.addTalkId(31539)
STARTED.addQuestDrop(31539,PACKAGE,1)
print "importing quests: 13: Parcel Delivery"
<html><body>Trader Liesel:<br>
My friend left home to study archaeology a couple of years ago. His mother was just overcome by disease.<br>Could you deliver her last letter to him?<br>
<a action="bypass -h Quest 14_WhereaboutsOfTheArchaeologist 31263-2.htm">Yes</a>
</body></html>
\ No newline at end of file
<html><body>Trader Liesel:<br>
My friend left to study archaeology at the Imperial Tomb a few years ago. I have a letter for him,
but I think you aren't capable enough to handle this delivery yet.<br>
(This quest may only be undertaken by a character of level 74 or above.)
</body></html>
\ No newline at end of file
<html><body>Trader Liesel:<br>
He may be hard to find, but his last letter mentioned the <font color="LEVEL">Imperial Tomb</font>. Maybe you can find him there!</body></html>
\ No newline at end of file
<html><body>Ghost of Adventurer:<br>
Huh? You were asked to give me this letter? Who writes a letter to a dead person? Hmm...Let me see...<br>Oh, it's from my mother! It's been so long since I've seen her! How is she?<br>
<a action="bypass -h Quest 14_WhereaboutsOfTheArchaeologist 31538-1.htm">Your mother is dead.</a>
</body></html>
<html><body>Ghost of Adventurer:<br>
Oh, yes, I see. Well, I could never let her see me like this, anyway!<br>Thank you for bringing the letter to me. Please accept this token of my appreciation.
</body></html>
\ No newline at end of file
# Made by disKret
import sys
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest
#NPC
LIESEL = 31263
GHOST_OF_ADVENTURER = 31538
#QUEST ITEM
LETTER = 7253
class Quest (JQuest) :
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
def onEvent (self,event,st) :
htmltext = event
cond = st.getInt("cond")
if event == "31263-2.htm" :
if cond == 0 :
st.set("cond","1")
st.setState(STARTED)
st.giveItems(LETTER,1)
st.playSound("ItemSound.quest_accept")
if event == "31538-1.htm" :
if cond == 1 and st.getQuestItemsCount(LETTER) == 1 :
st.takeItems(LETTER,1)
st.giveItems(57,113228)
st.setState(COMPLETED)
st.set("cond","0")
st.playSound("ItemSound.quest_finish")
else :
htmltext = "You don't have required items"
return htmltext
def onTalk (Self,npc,st):
htmltext = "<html><head><body>I have nothing to say you</body></html>"
npcId = npc.getNpcId()
id = st.getState()
cond = st.getInt("cond")
if id == CREATED :
st.set("cond","0")
if npcId == LIESEL and cond == 0 :
if id == COMPLETED :
htmltext = "<html><head><body>This quest have already been completed.</body></html>"
elif st.getPlayer().getLevel() < 74 :
htmltext = "31263-1.htm"
st.exitQuest(1)
elif st.getPlayer().getLevel() >= 74 :
htmltext = "31263-0.htm"
elif npcId == LIESEL and cond == 1 :
htmltext = "31263-2.htm"
elif npcId == GHOST_OF_ADVENTURER and cond == 1 :
htmltext = "31538-0.htm"
return htmltext
QUEST = Quest(14,"14_WhereaboutsOfTheArchaeologist","Whereabouts Of The Archaeologist")
CREATED = State('Start', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(31263)
CREATED.addTalkId(31263)
STARTED.addTalkId(31263)
STARTED.addTalkId(31538)
STARTED.addQuestDrop(7253,LETTER,1)
print "importing quests: 14: Whereabouts Of The Archaeologist"
......@@ -9,6 +9,8 @@ __all__ = [
'8_AnAdventureBegins',
'9_IntoTheCityOfHumans',
'10_IntoTheWorld',
'13_ParcelDelivery',
'14_WhereaboutsOfTheArchaeologist',
'19_GoToThePastureland',
'31_SecretBuriedInTheSwamp',
'32_AnObviousLie',
......
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