Browse Source

unstable: More quests

disKret 18 years ago
parent
commit
fb9fa2f323
26 changed files with 279 additions and 0 deletions
  1. 4 0
      datapack_development/data/jscript/quests/15_SweetWhisper/31302-0.htm
  2. 4 0
      datapack_development/data/jscript/quests/15_SweetWhisper/31302-0a.htm
  3. 3 0
      datapack_development/data/jscript/quests/15_SweetWhisper/31302-1.htm
  4. 3 0
      datapack_development/data/jscript/quests/15_SweetWhisper/31302-1a.htm
  5. 4 0
      datapack_development/data/jscript/quests/15_SweetWhisper/31517-0.htm
  6. 3 0
      datapack_development/data/jscript/quests/15_SweetWhisper/31517-1.htm
  7. 4 0
      datapack_development/data/jscript/quests/15_SweetWhisper/31518-0.htm
  8. 3 0
      datapack_development/data/jscript/quests/15_SweetWhisper/31518-1.htm
  9. 3 0
      datapack_development/data/jscript/quests/15_SweetWhisper/31518-1a.htm
  10. 73 0
      datapack_development/data/jscript/quests/15_SweetWhisper/__init__.py
  11. 4 0
      datapack_development/data/jscript/quests/16_TheComingDarkness/31512-0.htm
  12. 3 0
      datapack_development/data/jscript/quests/16_TheComingDarkness/31512-1.htm
  13. 4 0
      datapack_development/data/jscript/quests/16_TheComingDarkness/31513-0.htm
  14. 4 0
      datapack_development/data/jscript/quests/16_TheComingDarkness/31513-1.htm
  15. 4 0
      datapack_development/data/jscript/quests/16_TheComingDarkness/31514-0.htm
  16. 3 0
      datapack_development/data/jscript/quests/16_TheComingDarkness/31514-1.htm
  17. 4 0
      datapack_development/data/jscript/quests/16_TheComingDarkness/31515-0.htm
  18. 4 0
      datapack_development/data/jscript/quests/16_TheComingDarkness/31515-1.htm
  19. 4 0
      datapack_development/data/jscript/quests/16_TheComingDarkness/31516-0.htm
  20. 3 0
      datapack_development/data/jscript/quests/16_TheComingDarkness/31516-1.htm
  21. 8 0
      datapack_development/data/jscript/quests/16_TheComingDarkness/31517-0.htm
  22. 8 0
      datapack_development/data/jscript/quests/16_TheComingDarkness/31517-1.htm
  23. 8 0
      datapack_development/data/jscript/quests/16_TheComingDarkness/31517-2.htm
  24. 7 0
      datapack_development/data/jscript/quests/16_TheComingDarkness/31517-3.htm
  25. 105 0
      datapack_development/data/jscript/quests/16_TheComingDarkness/__init__.py
  26. 2 0
      datapack_development/data/jscript/quests/__init__.py

+ 4 - 0
datapack_development/data/jscript/quests/15_SweetWhisper/31302-0.htm

@@ -0,0 +1,4 @@
+<html><body>Trader Vladimir:<br>
+The world is very unsettled these days. Would you be interested in a unique kind of power?<br>
+<a action="bypass -h Quest 15_SweetWhisper 31302-1.htm">Quest</a>
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/15_SweetWhisper/31302-0a.htm

@@ -0,0 +1,4 @@
+<html><body>Trader Vladimir:<br>
+I think it is too early for you to help me. Come back after you have gained some more experience.<br>
+<font color="LEVEL">(Quest for characters level 60 and above.)</font>
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/15_SweetWhisper/31302-1.htm

@@ -0,0 +1,3 @@
+<html><body>Trader Vladimir:<br>
+Excellent, I'll tell you what to do. Find the <font color="LEVEL">mysterious Necromancer</font> at the entrance to the <font color="LEVEL">Valley of Saints</font>. He'll help you test your fate. Look for someone from my guild if you should need help.
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/15_SweetWhisper/31302-1a.htm

@@ -0,0 +1,3 @@
+<html><body>Trader Vladimir:<br>
+Find the <font color="LEVEL">mysterious Necromancer</font> at the entrance to the <font color="LEVEL">Valley of Saints</font>. He'll help you test your fate.
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/15_SweetWhisper/31517-0.htm

@@ -0,0 +1,4 @@
+<html><body>Hierarch:<br>
+What are you doing here? We don't let just anybody in here!<br>
+<a action="bypass -h Quest 15_SweetWhisper 31517-1.htm">Vladimir sent me.</a>
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/15_SweetWhisper/31517-1.htm

@@ -0,0 +1,3 @@
+<html><body>Hierarch:<br>
+Oh, he sent you! Fine! We'll be working together then! Your first task will only be a test. After I assess your ability, I'll assign you a mission that's more appropriate for you. Come back later.
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/15_SweetWhisper/31518-0.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Necromancer:<br>
+What business do you have here? What do you want from me?<br>
+<a action="bypass -h Quest 15_SweetWhisper 31518-1.htm">I want to change my ways.</a>
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/15_SweetWhisper/31518-1.htm

@@ -0,0 +1,3 @@
+<html><body>Mysterious Necromancer:<br>
+Ah! You're looking for the elder too, aren't you? Lots of folks looking for him these days... This is getting old! Do I look like a street sign to you?<br>Anyway, past the Entrance of the Saints, you'll see the valley. Go to the deepest part of the valley and enter the cave. You'll find the elder there.
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/15_SweetWhisper/31518-1a.htm

@@ -0,0 +1,3 @@
+<html><body>Mysterious Necromancer:<br>
+Hmmph! I've already told you where to look for him! Past the Entrance of the Saints you'll see the valley. Go to the deepest part of the valley and enter the cave there. You'll find the elder that you seek.
+</body></html>

+ 73 - 0
datapack_development/data/jscript/quests/15_SweetWhisper/__init__.py

@@ -0,0 +1,73 @@
+# 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
+VLADIMIR = 31302
+HIERARCH = 31517
+M_NECROMANCER = 31518
+
+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 == "31302-1.htm" :
+     st.set("cond","1")
+     st.setState(STARTED)
+     st.playSound("ItemSound.quest_accept")
+   if event == "31518-1.htm" :
+     if cond == 1 :
+       st.set("cond","2")
+   if event == "31517-1.htm" :
+     if cond == 2 :
+       st.addExpAndSp(60217,0)
+       st.set("cond","0")
+       st.playSound("ItemSound.quest_finish")
+       st.setState(COMPLETED)
+   return htmltext
+
+ def onTalk (Self,npc,st):
+   htmltext = "<html><head><body>I have nothing to say you</body></html>"
+   npcId = npc.getNpcId()
+   cond = st.getInt("cond")
+   id = st.getState()
+   if id == CREATED :
+     st.set("cond","0")
+   if npcId == VLADIMIR and int(st.get("cond")) == 0 :
+     if st.getPlayer().getLevel() >= 60 :
+       htmltext = "31302-0.htm"
+       return htmltext
+     if id == COMPLETED :
+       htmltext = "<html><head><body>This quest have already been completed.</body></html>"
+       return htmltext
+     else:
+       htmltext = "31302-0a.htm"
+       st.exitQuest(1)
+   if npcId == VLADIMIR and cond == 1 :
+       htmltext = "31302-1a.htm"
+   if npcId == M_NECROMANCER and cond == 1 :
+     htmltext = "31518-0.htm"
+   if npcId == M_NECROMANCER and cond == 2 :
+     htmltext = "31518-1a.htm"
+   if npcId == HIERARCH and cond == 2 :
+     htmltext = "31517-0.htm"
+   return htmltext
+
+QUEST       = Quest(15,"15_SweetWhisper","Sweet Whisper")
+CREATED     = State('Start', QUEST)
+STARTED     = State('Started', QUEST)
+COMPLETED   = State('Completed', QUEST)
+
+QUEST.setInitialState(CREATED)
+QUEST.addStartNpc(31302)
+CREATED.addTalkId(31302)
+STARTED.addTalkId(31302)
+STARTED.addTalkId(31517)
+STARTED.addTalkId(31518)
+
+print "importing quests: 15: Sweet Whisper"

+ 4 - 0
datapack_development/data/jscript/quests/16_TheComingDarkness/31512-0.htm

@@ -0,0 +1,4 @@
+<html><body>Evil Altar:<br>
+Upon close examination, you discover a place under the altar where the crystal will easily fit.<br>
+<a action="bypass -h Quest 16_TheComingDarkness 31512-1.htm">Place the crystal in the space under the altar.</a>
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/16_TheComingDarkness/31512-1.htm

@@ -0,0 +1,3 @@
+<html><body>Evil Altar:<br>
+The altar makes an ominous sound as the seal loosens and the crystal disappears. Try the next altar.
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/16_TheComingDarkness/31513-0.htm

@@ -0,0 +1,4 @@
+<html><body>Evil Altar:<br>
+As with the previous altar, there is a space underneath where the crystal will easily fit.<br>
+<a action="bypass -h Quest 16_TheComingDarkness 31513-1.htm">Place the crystal in the space under the altar.</a>
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/16_TheComingDarkness/31513-1.htm

@@ -0,0 +1,4 @@
+<html><body>Evil Altar:<br>
+The seal is loosening! The power is getting stronger.<br>
+Find the next altar.
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/16_TheComingDarkness/31514-0.htm

@@ -0,0 +1,4 @@
+<html><body>Evil Altar:<br>
+Upon close examination, you discover a place under the altar where the crystal will easily fit.<br>
+<a action="bypass -h Quest 16_TheComingDarkness 31514-1.htm">Place the crystal in the space under the altar.</a>
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/16_TheComingDarkness/31514-1.htm

@@ -0,0 +1,3 @@
+<html><body>Evil Altar:<br>
+The power is growing stronger as the seal loosens.<br>Find the next altar.
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/16_TheComingDarkness/31515-0.htm

@@ -0,0 +1,4 @@
+<html><body>Evil Altar:<br>
+Upon close examination, you discover a place under the altar where the crystal will easily fit.<br>
+<a action="bypass -h Quest 16_TheComingDarkness 31515-1.htm">Place the crystal in the space under the altar.</a>
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/16_TheComingDarkness/31515-1.htm

@@ -0,0 +1,4 @@
+<html><body>Evil Altar:<br>
+The power is growing stronger as the seal loosens.<br>
+Find the next altar.
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/16_TheComingDarkness/31516-0.htm

@@ -0,0 +1,4 @@
+<html><body>Evil Altar:<br>
+Upon close examination, you discover a place under the altar where the crystal will easily fit.<br>
+<a action="bypass -h Quest 16_TheComingDarkness 31516-1.htm">Place the crystal in the space under the altar.</a>
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/16_TheComingDarkness/31516-1.htm

@@ -0,0 +1,3 @@
+<html><body>Evil Altar:<br>
+The seal is almost loose, and it emanates great power.<br>Visit the Tetrarch in the neighborhood.
+</body></html>

+ 8 - 0
datapack_development/data/jscript/quests/16_TheComingDarkness/31517-0.htm

@@ -0,0 +1,8 @@
+<html><body>Hierarch:<br>
+Brother, you've been with us for a long time! You've earned our trust, and therefore I belive you're ready for an important mission!<br>
+<a action="bypass -h Quest 16_TheComingDarkness 31517-1.htm">I'm ready!</a>
+</body></html>
+
+
+
+ 

+ 8 - 0
datapack_development/data/jscript/quests/16_TheComingDarkness/31517-1.htm

@@ -0,0 +1,8 @@
+<html><body>Hierarch:<br>
+You're very well prepared! I wish all of us could be as well prepared as you! You've chosen a path that holds many trials, one that your brothers have traveled before you! Do you have the faith you'll need to complete your journey?<br>
+<a action="bypass -h Quest 16_TheComingDarkness 31517-2.htm">I have enough faith.</a>
+</body></html>
+
+
+
+ 

+ 8 - 0
datapack_development/data/jscript/quests/16_TheComingDarkness/31517-2.htm

@@ -0,0 +1,8 @@
+<html><body>Hierarch:<br>
+Very well. Based on the trust we have for you, brother, I'll give you a mission. Use these five crystals of binding to break open the seals that have been placed throughout this region. Watch the altar carefully; you'll discover how to use these crystals. I'll wait here until you break all the seals and return.<br>
+First, you must go to the altar near the entrance of the Valley of Saint. Your mission begins there. Good luck!
+</body></html>
+
+
+
+ 

+ 7 - 0
datapack_development/data/jscript/quests/16_TheComingDarkness/31517-3.htm

@@ -0,0 +1,7 @@
+<html><body>Hierarch:<br>
+Yoy've done well! Welcome to the brotherhood! You're now a member of the Benandanti Cartel! I'll see that you're well-rewarded!
+</body></html>
+
+
+
+ 

+ 105 - 0
datapack_development/data/jscript/quests/16_TheComingDarkness/__init__.py

@@ -0,0 +1,105 @@
+# Made by disKret, Ancient Legion Server
+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
+HIERARCH = 31517
+EVIL_ALTAR_1 = 31512
+EVIL_ALTAR_2 = 31513
+EVIL_ALTAR_3 = 31514
+EVIL_ALTAR_4 = 31515
+EVIL_ALTAR_5 = 31516
+
+#ITEMS
+CRYSTAL_OF_SEAL = 7167
+
+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 == "31517-1.htm" :
+     return htmltext
+   if event == "31517-2.htm" :
+     st.giveItems(CRYSTAL_OF_SEAL,5)
+     st.set("cond","1")
+     st.setState(STARTED)
+     st.playSound("ItemSound.quest_accept")
+   if event == "31512-1.htm" :
+     if cond == 1 :
+       st.takeItems(CRYSTAL_OF_SEAL,1)
+       st.set("cond","2")
+       st.playSound("ItemSound.quest_middle")
+   if event == "31513-1.htm" :
+     if cond == 2 :
+       st.takeItems(CRYSTAL_OF_SEAL,1)
+       st.set("cond","3")
+       st.playSound("ItemSound.quest_middle")
+   if event == "31514-1.htm" :
+     if cond == 3 :
+       st.takeItems(CRYSTAL_OF_SEAL,1)
+       st.set("cond","4")
+       st.playSound("ItemSound.quest_middle")
+   if event == "31515-1.htm" :
+     if cond == 4 :
+       st.takeItems(CRYSTAL_OF_SEAL,1)
+       st.set("cond","5")
+       st.playSound("ItemSound.quest_middle")
+   if event == "31516-1.htm" :
+     if cond == 5 :
+       st.takeItems(CRYSTAL_OF_SEAL,1)
+       st.set("cond","6")
+       st.playSound("ItemSound.quest_middle")
+   return htmltext
+
+ def onTalk (Self,npc,st):
+   htmltext = "<html><head><body>I have no task for you right now.</body></html>"
+   npcId = npc.getNpcId()
+   cond = st.getInt("cond")
+   id = st.getState()
+   if id == CREATED :
+     st.set("cond","0")
+   if npcId == HIERARCH and int(st.get("cond")) == 0 :
+     if st.getPlayer().getLevel() >= 62 :
+       htmltext = "31517-0.htm"
+     if id == COMPLETED :
+       htmltext = "<html><head><body>This quest have already been completed.</body></html>"
+     else:
+       return htmltext
+       st.exitQuest(1)
+   if npcId == EVIL_ALTAR_1 and cond == 1 :
+     htmltext = "31512-0.htm"
+   if npcId == EVIL_ALTAR_2 and cond == 2 :
+     htmltext = "31513-0.htm"
+   if npcId == EVIL_ALTAR_3 and cond == 3 :
+     htmltext = "31514-0.htm"
+   if npcId == EVIL_ALTAR_4 and cond== 4 :
+     htmltext = "31515-0.htm"
+   if npcId == EVIL_ALTAR_5 and cond == 5 :
+     htmltext = "31516-0.htm"
+   if npcId == HIERARCH and cond == 6 :
+     st.addExpAndSp(221958,0)
+     st.set("cond","0")
+     st.setState(COMPLETED)
+     st.playSound("ItemSound.quest_finish")
+     htmltext = "31517-3.htm"
+   return htmltext
+
+QUEST       = Quest(16,"16_TheComingDarkness","The Coming Darkness")
+CREATED     = State('Start', QUEST)
+STARTED     = State('Started', QUEST)
+COMPLETED   = State('Completed', QUEST)
+
+QUEST.setInitialState(CREATED)
+QUEST.addStartNpc(31517)
+CREATED.addTalkId(31517)
+STARTED.addTalkId(31517)
+
+for altars in range(31512,31517):
+  STARTED.addTalkId(altars)
+
+print "importing quests: 16: The Coming Darkness"

+ 2 - 0
datapack_development/data/jscript/quests/__init__.py

@@ -11,6 +11,8 @@ __all__ = [
 '10_IntoTheWorld',
 '13_ParcelDelivery',
 '14_WhereaboutsOfTheArchaeologist',
+'15_SweetWhisper',
+'16_TheComingDarkness',
 '19_GoToThePastureland',
 '31_SecretBuriedInTheSwamp',
 '32_AnObviousLie',