Browse Source

Quest 31: Secret Buried in the Swamp. by disKret.

DrLecter 18 năm trước cách đây
mục cha
commit
9e35a943d2
35 tập tin đã thay đổi với 250 bổ sung2 xóa
  1. 7 0
      datapack_development/data/html/default/8555.htm
  2. 4 0
      datapack_development/data/html/default/8661.htm
  3. 4 0
      datapack_development/data/html/default/8662.htm
  4. 4 0
      datapack_development/data/html/default/8663.htm
  5. 4 0
      datapack_development/data/html/default/8664.htm
  6. 4 0
      datapack_development/data/html/default/8665.htm
  7. 4 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-0.htm
  8. 4 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-0a.htm
  9. 4 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-1.htm
  10. 4 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-2.htm
  11. 4 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-3.htm
  12. 5 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-4.htm
  13. 3 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-5.htm
  14. 4 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-6.htm
  15. 4 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-7.htm
  16. 4 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8661-0.htm
  17. 3 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8661-1.htm
  18. 3 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8661-2.htm
  19. 4 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8662-0.htm
  20. 3 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8662-1.htm
  21. 3 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8662-2.htm
  22. 4 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8663-0.htm
  23. 4 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8663-0a.htm
  24. 3 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8663-1.htm
  25. 3 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8663-2.htm
  26. 4 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8664-0.htm
  27. 3 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8664-1.htm
  28. 3 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8664-2.htm
  29. 4 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8665-0.htm
  30. 3 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8665-1.htm
  31. 3 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8665-2.htm
  32. 117 0
      datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/__init__.py
  33. 2 1
      datapack_development/data/jscript/quests/__init__.py
  34. 14 0
      datapack_development/data/multisell/8555.xml
  35. 0 1
      datapack_development/sql/spawnlist.sql

+ 7 - 0
datapack_development/data/html/default/8555.htm

@@ -0,0 +1,7 @@
+<html><head><body>Mercenary Supplier Abercrombie:<br>
+As usual, the delivery of supplies are very unreliable in this godforsaken swampland! My life is totally miserable! The monsters around here are a real pain! I should've known when they sent me out here to the northernmost corner of nowhere... Dammit! What am I doing here!? They don't pay me enough! I don't know what my bosses are thinking!<br>
+When Sighardt led the mercenary army, things like this never happened! Challenges always existed, but at least life was liveable!<br>
+Did you want an item? Hold on, give me a moment. I must check the list. By the way, you brought a chit didn't you?<br>
+<a action="bypass -h npc_%objectId%_multisell 8555">"I want to trade a chit of Golden Ram for an item."</a><br>
+<a action="bypass -h npc_%objectId%_Quest">Quest</a>
+</body></html>

+ 4 - 0
datapack_development/data/html/default/8661.htm

@@ -0,0 +1,4 @@
+<html><head><body>Forgotten Monument:<br>
+A roughly-hewn stone monument, very old and worn.<br>
+<a action="bypass -h npc_%objectId%_Quest">Quest</a>
+</body></html>

+ 4 - 0
datapack_development/data/html/default/8662.htm

@@ -0,0 +1,4 @@
+<html><head><body>Forgotten Monument:<br>
+A roughly-hewn stone monument, very old and worn.<br>
+<a action="bypass -h npc_%objectId%_Quest">Quest</a>
+</body></html>

+ 4 - 0
datapack_development/data/html/default/8663.htm

@@ -0,0 +1,4 @@
+<html><head><body>Forgotten Monument:<br>
+A roughly-hewn stone monument, very old and worn.<br>
+<a action="bypass -h npc_%objectId%_Quest">Quest</a>
+</body></html>

+ 4 - 0
datapack_development/data/html/default/8664.htm

@@ -0,0 +1,4 @@
+<html><head><body>Forgotten Monument:<br>
+A roughly-hewn stone monument, very old and worn.<br>
+<a action="bypass -h npc_%objectId%_Quest">Quest</a>
+</body></html>

+ 4 - 0
datapack_development/data/html/default/8665.htm

@@ -0,0 +1,4 @@
+<html><head><body>Corpse of Dwarf:<br>
+A Dwarf lies half-buried in the mud, dead.  Although he seems to have died recently, the stench of rotting flesh fills the air.<br>
+<a action="bypass -h npc_%objectId%_Quest">Quest</a>
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-0.htm

@@ -0,0 +1,4 @@
+<html><body>Mercenary Supplier Abercrombie :<br>
+The person we sent to investigate the ancient monument is missing. Can you help us find him?<br>
+<a action="bypass -h Quest 31_SecretBuriedInTheSwamp 8555-1.htm">Yes.</a>
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-0a.htm

@@ -0,0 +1,4 @@
+<html><body>Mercenary Supplier Abercrombie :<br>
+The Swamp of Screams is very dangerous. This is too difficult a mission for you.<br>
+(This quest may only be undertaken by a character level 66 or above.)
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-1.htm

@@ -0,0 +1,4 @@
+<html><body>Mercenary Supplier Abercrombie :<br>
+Rangers reported that Krorin went missing somewhere in the Swamp of Screams. Look for him there. If he is dead find his diary. It might hold a clue about the ancient monuments hidden there.<br>
+The swamp is a dangerous place, but i'm sure you can handle it. Good luck!
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-2.htm

@@ -0,0 +1,4 @@
+<html><body>Mercenary Supplier Abercrombie :<br>
+Rangers reported that Krorin went missing somewhere in the Swamp of Screams. Look for him there. If he is dead find his diary. It might hold a clue about the ancient monuments hidden there.<br>
+The swamp is a dangerous place, but i'm sure you can handle it. Good luck!
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-3.htm

@@ -0,0 +1,4 @@
+<html><body>Mercenary Supplier Abercrombie :<br>
+He was a good guild member, he will be missed. Captain Pierce thinks this could be why the Golden Ram are here. Would you complete his research so his death is not in vain?<br>
+<a action="bypass -h Quest 31_SecretBuriedInTheSwamp 8555-4.htm">"I'll help."</a>
+</body></html>

+ 5 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-4.htm

@@ -0,0 +1,5 @@
+<html><body>Mercenary Supplier Abercrombie :<br>
+Krorin's diary tells of four ancient monuments scattered in the swamp.<br>
+Priests of the Elmoreden Empire used them for astronomical observation.<br>
+He must have found the first monument! I'll mark it on your Map. Deciphering the ancient hieroglyphs on it will lead you to the next one.
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-5.htm

@@ -0,0 +1,3 @@
+<html><body>Mercenary Supplier Abercrombie :<br>
+It would look very bad if you went missing too, so be creful. Watch for the Stakatos!
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-6.htm

@@ -0,0 +1,4 @@
+<html><body>Mercenary Supplier Abercrombie :<br>
+You've returned! Did you find the monuments?<br>
+<a action="bypass -h Quest 31_SecretBuriedInTheSwamp 8555-7.htm">"I found all four"</a>
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8555-7.htm

@@ -0,0 +1,4 @@
+<html><body>Mercenary Supplier Abercrombie :<br>
+Very good! With help like yours, we'd be done with this swamp in no time. So they are related to astronomy. Krorin would be proud of you.<br>
+Please take this as a small token of my thanks, I'd have something better for you if I weren't stuck in this swamp!
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8661-0.htm

@@ -0,0 +1,4 @@
+<html><body>Forgotten Monument :<br>
+An ancient stone monument. Scrape away the mud and you'll find mysterious hieroglyphs and diagrams.<br>
+<a action="bypass -h Quest 31_SecretBuriedInTheSwamp 8661-1.htm">Examine the markings closely</a>
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8661-1.htm

@@ -0,0 +1,3 @@
+<html><body>Forgotten Monument :<br>
+All signs seem to reveal that the diagrams carved on the monument are a Map to the second monument, located somewhere in the Marshland.
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8661-2.htm

@@ -0,0 +1,3 @@
+<html><body>Forgotten Monument :<br>
+The diagrams are a Map to the second monument, somewhere in the swamp.
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8662-0.htm

@@ -0,0 +1,4 @@
+<html><body>Forgotten Monument :<br>
+An ancient monument made in the same style as the monument that was discovered first. You find hieroglyphic characters and diagrams inscribed on the surface after cleaning off the mud<br>
+<a action="bypass -h Quest 31_SecretBuriedInTheSwamp 8662-1.htm">Analyze the diagrams</a>
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8662-1.htm

@@ -0,0 +1,3 @@
+<html><body>Forgotten Monument :<br>
+The lines' intersection may be the location of the third monument. After comparing it to the Map, you've discovered its approximate location<br>
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8662-2.htm

@@ -0,0 +1,3 @@
+<html><body>Forgotten Monument :<br>
+It seems to be a Map to a third monument, somewhere in the Swamp of Screams.<br>
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8663-0.htm

@@ -0,0 +1,4 @@
+<html><body>Forgotten Monument :<br>
+Another ancient monument in the same style as the first. After cleaning it off, you discover hieroglyhps and diagrams inscribed on it<br>
+<a action="bypass -h Quest 31_SecretBuriedInTheSwamp 8663-0a.htm">Examine the markings</a>
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8663-0a.htm

@@ -0,0 +1,4 @@
+<html><body>Forgotten Monument :<br>
+Much cleaner and better preserved than the previous monuments. It's covered in strange hieroglyphs and diagrams.<br>
+<a action="bypass -h Quest 31_SecretBuriedInTheSwamp 8663-1.htm">Examine the markings closely</a>
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8663-1.htm

@@ -0,0 +1,3 @@
+<html><body>Forgotten Monument :<br>
+The fourth monument seems to be in the most dangerous part of Swamp of Screams.
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8663-2.htm

@@ -0,0 +1,3 @@
+<html><body>Forgotten Monument :<br>
+Further analysis is futile. Only the discovery of the fourth monument remains.
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8664-0.htm

@@ -0,0 +1,4 @@
+<html><body>Forgotten Monument :<br>
+Like the previous monuments, an ancient Map is inscribed in the fourth monument. After cleaning it off you recognize the markings.<br>
+<a action="bypass -h Quest 31_SecretBuriedInTheSwamp 8664-1.htm">Examine the markings closely</a>
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8664-1.htm

@@ -0,0 +1,3 @@
+<html><body>Forgotten Monument :<br>
+The Map seems to indicate that the monuments in this area were built to track the moon. The four monuments indicate the positions of the moon on the fall and spring equinoxes, and the summer and winter solstices. There are no more forgotten monuments in this area.
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8664-2.htm

@@ -0,0 +1,3 @@
+<html><body>Forgotten Monument :<br>
+Further analysis is futile.
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8665-0.htm

@@ -0,0 +1,4 @@
+<html><body>Corpse of Dwarf :<br>
+The corpse of a male Dwarf, presumedly that of Researcher Krorin. Aparently he lost his life after being poisoned by a highly toxic substance he was exposed to in the swampland.<br>
+<a action="bypass -h Quest 31_SecretBuriedInTheSwamp 8665-1.htm">Examine the corpse</a>
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8665-1.htm

@@ -0,0 +1,3 @@
+<html><body>Corpse of Dwarf :<br>
+When you open the backpack that is still on the corpse, you find a waterproof lambskin-covered book. Various memos are written in it, and on one page you find a sloppily drawn Map that seems to be of the Swamp of Screams. Could this be the log mentioned by Mercenary Supplier Abercrombie?
+</body></html>

+ 3 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/8665-2.htm

@@ -0,0 +1,3 @@
+<html><body>Corpse of Dwarf :<br>
+There's nothing else.<br>
+</body></html>

+ 117 - 0
datapack_development/data/jscript/quests/31_SecretBuriedInTheSwamp/__init__.py

@@ -0,0 +1,117 @@
+# 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
+ABERCROMBIE = 8555
+FORGOTTEN_MONUMENT_1,FORGOTTEN_MONUMENT_2,FORGOTTEN_MONUMENT_3,FORGOTTEN_MONUMENT_4,CORPSE_OF_DWARF = range(8661,8666)
+#ITEMS
+KRORINS_JOURNAL = 7252
+#MESSAGES
+default = "<html><head><body>I have nothing to say you</body></html>"
+class Quest (JQuest) :
+
+ def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
+
+ def onEvent (self,event,st) :
+   id = st.getState()
+   cond = st.getInt("cond")
+   htmltext = event
+   if event == "8555-1.htm" and id == CREATED:
+     st.set("cond","1")
+     st.setState(STARTED)
+     st.playSound("ItemSound.quest_accept")
+   elif event == "8665-1.htm" and cond == 1:
+     st.set("cond","2")
+     st.playSound("ItemSound.quest_itemget")
+     st.giveItems(KRORINS_JOURNAL,1)
+   elif event == "8555-4.htm" and cond == 2:
+     st.set("cond","3")
+   elif event == "8661-1.htm" and cond == 3:
+     st.set("cond","4")
+   elif event == "8662-1.htm" and cond == 4:
+     st.set("cond","5")
+   elif event == "8663-1.htm" and cond == 5:
+     st.set("cond","6")
+   elif event == "8664-1.htm" and cond == 6:
+     st.set("cond","7")
+     st.playSound("ItemSound.quest_middle")
+   elif event == "8555-7.htm" and cond == 7:
+     st.takeItems(KRORINS_JOURNAL,-1)
+     st.addExpAndSp(130000,0)
+     st.giveItems(57,40000)
+     st.playSound("ItemSound.quest_finish")
+     st.setState(COMPLETED)
+   elif event <> "8663-0a.htm":
+     htmltext = default
+   return htmltext
+
+ def onTalk (Self,npc,st):
+   htmltext = default
+   npcId = npc.getNpcId()
+   id = st.getState()
+   cond = st.getInt("cond")
+   if id == COMPLETED :
+     htmltext = "<html><head><body>This quest have already been completed.</body></html>"
+   elif npcId == ABERCROMBIE :
+     if cond == 0 :
+       if st.getPlayer().getLevel() >= 66 :
+         htmltext = "8555-0.htm"
+       else :
+         htmltext = "8555-0a.htm"
+         st.exitQuest(1)
+     elif cond == 1 :
+       htmltext = "8555-2.htm"
+     elif cond == 2 :
+       htmltext = "8555-3.htm"
+     elif cond == 3 :
+       htmltext = "8555-5.htm"
+     elif cond == 7 :
+       htmltext = "8555-6.htm"
+   elif npcId == CORPSE_OF_DWARF :
+     if cond == 1 :
+       htmltext = "8665-0.htm"
+     elif cond == 2 :
+       htmltext = "8665-2.htm"
+   elif npcId == FORGOTTEN_MONUMENT_1 :
+     if cond == 3 :
+       htmltext = "8661-0.htm"
+     elif cond > 3 :
+       htmltext = "8661-2.htm"
+   elif npcId == FORGOTTEN_MONUMENT_2:
+     if cond == 4 :
+       htmltext = "8662-0.htm"
+     elif cond > 4 :
+       htmltext = "8662-2.htm"
+   elif npcId == FORGOTTEN_MONUMENT_3 :
+     if cond == 5 :
+       htmltext = "8663-0.htm"
+     elif cond > 5 :
+       htmltext = "8663-2.htm"
+   elif npcId == FORGOTTEN_MONUMENT_4 :
+     if cond == 6 :
+       htmltext = "8664-0.htm"
+     elif cond > 6 :
+       htmltext = "8664-2.htm"
+   return htmltext
+
+QUEST       = Quest(31,"31_SecretBuriedInTheSwamp","Secret Buried In The Swamp")
+CREATED     = State('Start', QUEST)
+STARTED     = State('Started', QUEST)
+COMPLETED   = State('Completed', QUEST)
+
+QUEST.setInitialState(CREATED)
+QUEST.addStartNpc(ABERCROMBIE)
+
+CREATED.addTalkId(ABERCROMBIE)
+STARTED.addTalkId(ABERCROMBIE)
+COMPLETED.addTalkId(ABERCROMBIE)
+
+for i in range(8661,8666):
+    STARTED.addTalkId(i)
+
+STARTED.addQuestDrop(ABERCROMBIE,KRORINS_JOURNAL,1)
+
+print "importing quests: 31: Secret Buried In The Swamp"

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

@@ -10,6 +10,7 @@ __all__ = [
 '9_IntoTheCityOfHumans',
 '10_IntoTheWorld',
 '19_GoToThePastureland',
+'31_SecretBuriedInTheSwamp',
 '32_AnObviousLie',
 '33_MakeAPairOfDressShoes',
 '34_InSearchOfClothes',
@@ -176,7 +177,7 @@ __all__ = [
 '419_GetAPet',
 '420_LittleWings',
 '421_LittleWingAdventures',
-'426_FishingShot',
+'426_FishingShot',
 '431_WeddingMarch',
 '432_BirthdayPartySong',
 '501_ProofOfClanAlliance',

+ 14 - 0
datapack_development/data/multisell/8555.xml

@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!-- Swamp of Screams -->
+<list>
+  <!-- Loot Grey Puch - 1 Golden Ram Chit -->
+  <item id="1">
+    <ingredient id="7251" count="1" enchant="0"/>
+    <production id="7725" count="1" enchant="0"/>
+  </item>
+  <!-- Dimension Diamond - 10 Golden Ram Chit -->
+  <item id="2">
+    <ingredient id="7251" count="10" enchant="0"/>
+    <production id="7562" count="1" enchant="0"/>
+  </item>
+</list>

+ 0 - 1
datapack_development/sql/spawnlist.sql

@@ -32411,7 +32411,6 @@ INSERT INTO `spawnlist` VALUES
 (32359,'unset',1,1514,91465,-52895,-2616,0,0,30880,60,0,0),
 (32360,'unset',1,1515,91959,-52726,-2616,0,0,2003,60,0,0),
 (32361,'unset',1,1514,91758,-51717,-2592,0,0,43548,60,0,0),
-(32362,'unset',1,8664,91856,-52340,-2636,0,0,0,60,0,0),
 (32363,'unset',1,1513,87404,-57731,-2336,0,0,40622,60,0,0),
 (32364,'unset',1,1516,86311,-58246,-2272,0,0,1722,60,0,0),
 (32365,'unset',1,1514,86351,-58304,-2272,0,0,32199,60,0,0),