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

BETA: Retail-like quest '''In Search of Fragments of Dimension''' (634).

parent 4a9c1748
No related branches found
No related tags found
No related merge requests found
Showing
with 18 additions and 98 deletions
......@@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o
...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br>
<a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br>
<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
......@@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o
...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br>
<a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br>
<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
......@@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o
...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br>
<a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br>
<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
......@@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o
...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br>
<a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br>
<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
......@@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o
...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br>
<a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br>
<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
......@@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o
...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br>
<a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br>
<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
......@@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o
...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br>
<a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br>
<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
......@@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o
...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br>
<a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br>
<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
......@@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o
...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br>
<a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br>
<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
......@@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o
...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br>
<a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br>
<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
......@@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o
...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br>
<a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br>
<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
......@@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o
...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br>
<a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br>
<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
......@@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o
...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br>
<a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br>
<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
......@@ -4,5 +4,5 @@ You're fighting to get the power of the seal, aren't you? Do you have any idea o
...But our forces are over-stretched! Will you join our fight against this ghastly threat?<br>
<a action="bypass -h npc_%objectId%_Quest OracleTeleport">"I'll join the fight!"</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">"What is a dimension gap?"</a><br>
<a action="bypass -h npc_%objectId%_Quest 634_InSearchofDimensionalFragments">Quest</a>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>
\ No newline at end of file
......@@ -305,7 +305,6 @@ quests/503_PursuitClanAmbition/__init__.py
quests/604_DaimontheWhiteEyedPart2/__init__.py
quests/620_FourGoblets/__init__.py
quests/632_NecromancersRequest/__init__.py
quests/634_InSearchofDimensionalFragments/__init__.py
quests/660_AidingtheFloranVillage/__init__.py
quests/663_SeductiveWhispers/__init__.py
quests/999_T1Tutorial/__init__.py
......
<html><body>Dimension Keeper:<br>
Surely you've heard all about the dimension fragment. Let me ask you a simple question: Will you obtain the dimension fragment and fight alongside us?<br>
<a action="bypass -h Quest 634_InSearchofDimensionalFragments 2a.htm">"I'll do it!"</a>
</body></html>
\ No newline at end of file
<html><body>Dimension Keeper:<br>
Your passion and conviction are apparent. The Contract between us is official!<br>
This Contract will help you to recognize the dimension fragment. You're bound to experience numerous setbacks and obstacles in the future. I trust that your wisdom and courage will see you safely through your quest.<br>
You'll find the dimension fragment very useful in the dimension gap zone.
</body></html>
\ No newline at end of file
<html><body>Dimension Keeper:<br>
Have you found any dimension fragments? The more fragments you find, the longer you'll be allowed to stay in the dimension gap. Dimension fragments are watched over by the guardians of ancient magic.<br>
If you begin to feel overwhelmed by your mission and want to take a break, just let me know! You always have that option!<br>
<a action="bypass -h Quest 634_InSearchofDimensionalFragments 3.htm">"Who are the guardians of ancient magic?"</a><br>
<a action="bypass -h Quest 634_InSearchofDimensionalFragments 6.htm">"I want to continue."</a><br>
<a action="bypass -h Quest 634_InSearchofDimensionalFragments 5.htm">"I want to take a break."</a>
</body></html>
\ No newline at end of file
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 = "634_InSearchofDimensionalFragments"
DIMENSION_FRAGMENT_ID = 7079
class Quest (JQuest) :
def __init__(self,id,name,descr):
JQuest.__init__(self,id,name,descr)
self.questItemIds = [DIMENSION_FRAGMENT_ID]
def onAdvEvent (self,event,npc, player) :
htmltext = event
st = player.getQuestState(qn)
if not st : return
if event == "2a.htm" :
st.setState(State.STARTED)
st.playSound("ItemSound.quest_accept")
st.set("cond","1")
elif event == "5.htm" :
st.playSound("ItemSound.quest_finish")
st.exitQuest(1)
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 :
if player.getLevel() < 20 :
st.exitQuest(1)
htmltext="1.htm"
else:
htmltext="2.htm"
elif id == State.STARTED :
htmltext = "4.htm"
return htmltext
def onKill(self,npc,player,isPet):
partyMember = self.getRandomPartyMemberState(player, State.STARTED)
if not partyMember : return
st = partyMember.getQuestState(qn)
if st :
if st.getState() == State.STARTED :
itemMultiplier,chance = divmod(80*Config.RATE_QUEST_DROP,1000)
if self.getRandom(1000) < chance :
itemMultiplier += 1
numItems = int(itemMultiplier * (npc.getLevel() * 0.15 +1.6))
if numItems > 0 :
st.giveItems(DIMENSION_FRAGMENT_ID,numItems)
return
QUEST = Quest(634, qn, "In Search of Dimensional Fragments")
for npcId in range(31494,31508):
QUEST.addTalkId(npcId)
QUEST.addStartNpc(npcId)
for mobs in range(21208,21256):
QUEST.addKillId(mobs)
\ No newline at end of file
<html><body>Dimensional Gate Keeper:<br>
Surely you've heard all about the Dimensional Fragment. Let me ask you a simple question: Will you obtain the Dimensional Fragment and fight alongside us?<br>
<a action="bypass -h Quest Q00634_InSearchOfFragmentsOfDimension 31494-02.htm">"I'll do it!"</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