浏览代码

new quest 24 - Inhabitants Of The Forrest Of The Dead

Kerberos 17 年之前
父节点
当前提交
53d4f7c656
共有 62 个文件被更改,包括 435 次插入1 次删除
  1. 3 0
      datapack_development/data/html/help/7065.htm
  2. 1 0
      datapack_development/data/scripts.cfg
  3. 1 1
      datapack_development/data/scripts/quests/23_LidiasHeart/__init__.py
  4. 5 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-00.htm
  5. 5 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-01.htm
  6. 3 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-02.htm
  7. 3 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-03.htm
  8. 6 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-04.htm
  9. 5 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-05.htm
  10. 5 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-06.htm
  11. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-07.htm
  12. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-08.htm
  13. 5 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-09.htm
  14. 6 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-10.htm
  15. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-11.htm
  16. 3 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-12.htm
  17. 5 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-13.htm
  18. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-14.htm
  19. 5 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-15.htm
  20. 6 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-16.htm
  21. 5 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-17.htm
  22. 5 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-18.htm
  23. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-01.htm
  24. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-02.htm
  25. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-03.htm
  26. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-04.htm
  27. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-05.htm
  28. 6 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-06.htm
  29. 5 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-07.htm
  30. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-08.htm
  31. 5 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-09.htm
  32. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-10.htm
  33. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-11.htm
  34. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-12.htm
  35. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-13.htm
  36. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-14.htm
  37. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-15.htm
  38. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-16.htm
  39. 5 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-17.htm
  40. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-18.htm
  41. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-19.htm
  42. 3 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-20.htm
  43. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31531-01.htm
  44. 3 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31531-02.htm
  45. 5 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31531-03.htm
  46. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-01.htm
  47. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-02.htm
  48. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-03.htm
  49. 3 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-04.htm
  50. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-05.htm
  51. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-06.htm
  52. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-07.htm
  53. 7 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-08.htm
  54. 3 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-09.htm
  55. 3 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-10.htm
  56. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-11.htm
  57. 5 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-12.htm
  58. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-13.htm
  59. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-14.htm
  60. 5 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-15.htm
  61. 4 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-16.htm
  62. 180 0
      datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/__init__.py

+ 3 - 0
datapack_development/data/html/help/7065.htm

@@ -0,0 +1,3 @@
+<html><body>Lidia's Letter:<br>
+Thank you for finding our family's treasure! I only wish I could thank you in person! I was watching you, even though I knew I shouldn't! By the way, do you have my hair pin?  I think I lost it after some dealings with a magician, and I heard that you found it. If you have it, please send it to me.
+</body></html>

+ 1 - 0
datapack_development/data/scripts.cfg

@@ -115,6 +115,7 @@ quests/20_BringUpWithLove/__init__.py
 quests/21_HiddenTruth/__init__.py
 quests/22_TragedyInVonHellmannForest/__init__.py
 quests/23_LidiasHeart/__init__.py
+quests/24_InhabitantsOfTheForrestOfTheDead/__init__.py
 quests/27_ChestCaughtWithABaitOfWind/__init__.py
 quests/28_ChestCaughtWithABaitOfIcyAir/__init__.py
 quests/29_ChestCaughtWithABaitOfEarth/__init__.py

+ 1 - 1
datapack_development/data/scripts/quests/23_LidiasHeart/__init__.py

@@ -92,7 +92,7 @@ class Quest (JQuest) :
             if state == State.CREATED :
                 st2 = st.getPlayer().getQuestState("22_TragedyInVonHellmannForest")
                 if st2 :
-                    if st2.getState() == State.COMPLETED :
+                    if st2.getState() == State.COMPLETED and player.getLevel() >= 64:
                         htmltext = "31328-01.htm" # previous quest finished, call 31328-02.htm
                     else:
                         htmltext = "31328-00.htm" # requirements not met

+ 5 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-00.htm

@@ -0,0 +1,5 @@
+<html><body>Dorian:<br>
+Oh...? Was it really you who recovered the Silver Spear?<br>
+I must have misjudged you! I thought you were more experienced...<br>
+(Only a character of level 65 or above who has fulfilled the Lidia's Heart quest can undertake this quest.)
+</body></html>

+ 5 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-01.htm

@@ -0,0 +1,5 @@
+<html><body>Dorian:<br>
+Are you the one who recovered the Silver Spear? Your reputation precedes you! Actually, I have a problem you may be able to help me with!<br>
+Would you be willing to help me?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31389-02.htm">"I'll do it!"</a>
+</body></html>

+ 3 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-02.htm

@@ -0,0 +1,3 @@
+<html><body>Dorian:<br>
+Every day I place a flower in front of a tombstone on my way to the castle in the south part of the village, but I've been having severe pains in my legs all day! Would you place this flower in front of the tombstone for me?
+</body></html>

+ 3 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-03.htm

@@ -0,0 +1,3 @@
+<html><body>Dorian:<br>
+Please place a flower in front of the tombstone in the southern part of the village. I'll tell you the rest of the story when you come back.
+</body></html>

+ 6 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-04.htm

@@ -0,0 +1,6 @@
+<html><body>Dorian:<br>
+Did you place the flower at the tombstone? Did you notice who was buried in that grave?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31389-05.htm">Nidrah</a><br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31389-06.htm">Lidia</a><br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31389-07.htm">Rose</a>
+</body></html>

+ 5 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-05.htm

@@ -0,0 +1,5 @@
+<html><body>Dorian:<br>
+Did you really put the flower there?<br>
+This task requires someone with keen observation and insight, not someone who could not even look upon the grave!<br>
+I hoped that it was you who would recover the Silver Spear...
+</body></html>

+ 5 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-06.htm

@@ -0,0 +1,5 @@
+<html><body>Dorian:<br>
+Did you really put the flower there?<br>
+This task requires someone with keen observation and insight, not someone who could not even look upon the grave!<br>
+I hoped that it was you who would recover the Silver Spear...
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-07.htm

@@ -0,0 +1,4 @@
+<html><body>Dorian:<br>
+Yes! Rose rests there... She was the maid Mr. Alfred, my former master, assigned to his daughter. They were about the same age.<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31389-08.htm">"Who is Alfred's daughter?"</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-08.htm

@@ -0,0 +1,4 @@
+<html><body>Dorian:<br>
+Why, she's Lady Lidia, current lord of this manor! She thought highly of Rose, and didn't want her coming back as an undead! Lady Lidia graciously allowed Rose to rest in peace. That's better than most others get around here! <br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31389-09.htm">"How did Rose earn such a privilege?"</a>
+</body></html>

+ 5 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-09.htm

@@ -0,0 +1,5 @@
+<html><body>Dorian:<br>
+I don't know, exactly. All I know is, my fiance was with Lady Lidia, and died protecting her!<br>
+Anyway, thank you for taking the flower to Rose's grave.<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31389-10.htm">"It's the least I could do."</a>
+</body></html>

+ 6 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-10.htm

@@ -0,0 +1,6 @@
+<html><body>Dorian:<br>
+Oh, don't be so modest! You remembered Rose's name! And you asked such respectful questions!<br>
+You're obviously a wonderful person!<br>Do you suppose you could do something else for me? <br>
+Recently my nights have been dreamless, and I've woken up with wounds that I don't remember getting! Something strange is going on in this village! Will you investigate?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31389-11.htm">"Yes, I will."</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-11.htm

@@ -0,0 +1,4 @@
+<html><body>Dorian:<br>
+Excellent! Take this crucifix, just in case! This forest is very dangerous, you never know what might jump out at you!<br>
+Please observe the village and try to determine what is going on there at night!
+</body></html>

+ 3 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-12.htm

@@ -0,0 +1,3 @@
+<html><body>Dorian:<br>
+Observe the village closely. Help me figure out what's going on here!
+</body></html>

+ 5 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-13.htm

@@ -0,0 +1,5 @@
+<html><body>Dorian:<br>
+I can't remember last night at all, and I'm exhausted! Have you discovered anything?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31389-14.htm">"There's a vampire!"</a><br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31389-14.htm">"The villagers are changing into monsters!"</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-14.htm

@@ -0,0 +1,4 @@
+<html><body>Dorian:<br>
+A vampire, eh?! Hmm... I see. Is the lord of the manor coming down here making the rounds? Hmm...Why am I so tired then?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31389-15.htm">"I'll tell you why! Because you're the vampire!"</a>
+</body></html>

+ 5 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-15.htm

@@ -0,0 +1,5 @@
+<html><body>Dorian:<br>
+Nooo!<br>
+It can't be!  Me? A vampire?  It's true that the lord of the manor I serve is an undead...  But that doesn't mean I'm a vampire! <br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31389-16.htm"> "Check out this crucifix!" </a>
+</body></html>

+ 6 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-16.htm

@@ -0,0 +1,6 @@
+<html><body>Dorian:<br>
+I gave you that!  ...I see. Now I remember...<br>
+Young master Einhart and...  and... you! You were standing there... holding the holy symbol! <br>
+Now I know...  why the lord gave me such an order! <br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31389-17.htm">"What order?" </a>
+</body></html>

+ 5 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-17.htm

@@ -0,0 +1,5 @@
+<html><body>Dorian:<br>
+This has all been a test! The lord himself ordered it!<br>
+I think you might have something that belongs to him!<br>
+Go to a bookshelf in the southwest part of the forest, you'll meet the maid of the lord. She only appears at night.
+</body></html>

+ 5 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31389-18.htm

@@ -0,0 +1,5 @@
+<html><body>Dorian:<br>
+So, you haven't met the maid of our lord yet? Remember, she only appears at night. Naturally, things get pretty scary around here after dark... You should really be careful!<br>
+But I'm sure you can handle it!<br>
+Go to the bookshelf in the southwest part of the forest, the maid of the lord will be there. Meet her there at night!
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-01.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Wizard:<br>
+Long time no see. Things sure are quiet these days!<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-02.htm">"What do you know about an odd doll?"</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-02.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Wizard:<br>
+What are you talking about?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-03.htm">"Look at this!"</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-03.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Wizard:<br>
+Oh, that. It's an amulet to help my puppets collect bone pieces in the forest without getting hurt.<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-04.htm">"That's not what I heard."</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-04.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Wizard:<br>
+What did you hear?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-05.htm">"That it's related to Wizard Nidrah."</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-05.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Wizard:<br>
+Where did you hear the name Nidrah?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-06.htm">"From the person who told me to see you about the doll."<br>
+</body></html>

+ 6 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-06.htm

@@ -0,0 +1,6 @@
+<html><body>Mysterious Wizard:<br>
+So, you're under the protection of Lady Lidia.<br>
+We've signed a mutual contract not to harm each other.<br>
+This doll was made by Nidrah, and tells the Lord of the Forest of the Dead not to attack its bearer.<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-07.htm">"How did you get it?"</a>
+</body></html>

+ 5 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-07.htm

@@ -0,0 +1,5 @@
+<html><body>Mysterious Wizard:<br>
+This much I can tell you.<br>
+I'm a Dark Mage, that's how I got it! You just can't tell the future, can you?<br>
+Come back when you have more confidence in me.
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-08.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Wizard:<br>
+You trust me now? Tell me about Nidrah!<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-09.htm">"Allright, I'll tell you."</a>
+</body></html>

+ 5 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-09.htm

@@ -0,0 +1,5 @@
+<html><body>Mysterous Wizard:<br>
+So tell me!<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-10.htm">"You're gathering materials for the dark arts."<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-12.htm">"You signed a contract."</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-10.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Wizard:<br>
+Where is your proof?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-11.htm">"Lady Lidia controls all the dead of this earth, a power nearly equal to a god's! One must be granted authority by her to have power over the dead in any capacity."</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-11.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Wizard:<br>
+So?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-15.htm">"Nobody is allowed here without permission. That you're here means you have power at least equal to the Lord of the Forest of the Dead."</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-12.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Wizard:<br>
+So I made a mistake. What's wrong with that?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-13.htm">"It's impossible to have a real nonaggression contract in this situation!"</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-13.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Wizard:<br>
+History is filled with such contracts. Do you know why?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-14.htm">"Nonaggression contracts are signed between two equal powers. It stays in effect only as long as it benefits them. If one party becomes weaker, the contract is nullified."</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-14.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Wizard:<br>
+Go on.<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-15.htm">"The Lord of the Dead has absolute power here, why would she sign a contract with you? You must have power equal to hers, or else she reaps some benefit from not fighting you."</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-15.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Wizard:<br>
+You think I have something to do with Nidrah?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-16.htm">"Yes."</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-16.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Wizard:<br>
+Let's say for arguments sake that I'm Nidrah. What difference would that make?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-17.htm">"Here's the missing page from the diary."</a>
+</body></html>

+ 5 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-17.htm

@@ -0,0 +1,5 @@
+<html><body>Mysterious Wizard:<br>
+You found the diary! You're tracking Nidrah.<br>
+Going further may be difficult, you're following a dangerous man. If you insist, you'll need the key.<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-18.htm">"Key?"</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-18.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Wizard:<br>
+The Priest of the Rune Township has the key. I'll give you the doll, it represents the person who carried the real authority in the Hellmann Forest and Rune Territory, even over Lidia.<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31522-19.htm">"Who is it?"</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-19.htm

@@ -0,0 +1,4 @@
+<html><body>Mysterious Wizard:<br>
+I can't tell you, but you may find out soon.<br>
+Come on, show the doll to the priest at the temple of the Rune Township. Ask him about <font color="LEVEL">the one who hides behind the truth</font>.
+</body></html>

+ 3 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31522-20.htm

@@ -0,0 +1,3 @@
+<html><body>Mysterious Mage:<br>
+Visit the temple of the Rune Township if you want to learn more about them. Ask about the one who hides the truth...
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31531-01.htm

@@ -0,0 +1,4 @@
+<html><body>Tombstone:<br>
+<font color="LEVEL">Here lies Rose, a faithful, loving servant. May she rest in peace.</font><br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31531-02.htm">Place flowers on the grave.</a>
+</body></html>

+ 3 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31531-02.htm

@@ -0,0 +1,3 @@
+<html><body>Tombstone:<br>
+You've placed flowers on the grave.
+</body></html>

+ 5 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31531-03.htm

@@ -0,0 +1,5 @@
+<html><body>Tombstone:<br>
+The tombstone bears an epitaph:<br>
+<font color="LEVEL">Here lies Rose, a faithful and loving servant. May she rest in peace.</font><br>
+Moon Face Flowers bloom brilliantly around the tomb.
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-01.htm

@@ -0,0 +1,4 @@
+<html><body>Maid of Lidia:<br>
+My lady thanks you for recovering the Silver Spear. It's a family treasure.<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31532-02.htm">"I was doing my duty."</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-02.htm

@@ -0,0 +1,4 @@
+<html><body>Maid of Lidia:<br>
+She knows how you helped her ancestors rest in peace. My lady knows all that happens in her forest!<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31532-03.htm">"Everything?"</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-03.htm

@@ -0,0 +1,4 @@
+<html><body>Maid of Lidia:<br>
+My lady knows everything about your journeys here. She hopes you'll uncover all the details of what has transpired.<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31532-04.htm">"Please continue."</a>
+</body></html>

+ 3 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-04.htm

@@ -0,0 +1,3 @@
+<html><body>Maid of Lidia:<br>
+Come back after reading this letter from my lady.
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-05.htm

@@ -0,0 +1,4 @@
+<html><body>Maid of Lidia:<br>
+I don't know what it says, I wouldn't dream of reading the letter meant for my lord!<br>I was told you had something for me?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31532-06.htm">"Here's the hairpin."</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-06.htm

@@ -0,0 +1,4 @@
+<html><body>Maid of Lidia:<br>
+This is Neidrahu's work, a hairpin of Moon Face Flower. How beautiful!<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31532-07.htm">"Wait!"</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-07.htm

@@ -0,0 +1,4 @@
+<html><body>Maid of Lidia:<br>
+What is it?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31532-08.htm">"What do you know about Neidrahu?"</a>
+</body></html>

+ 7 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-08.htm

@@ -0,0 +1,7 @@
+<html><body>Maid of Lidia:<br>
+Did I say Neidrahu?<br>
+What do you know of the name?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31532-09.htm">"It's a tree."</a><br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31532-10.htm">"It's a corpse."</a><br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31532-11.htm">"It's a Mystic."</a>
+</body></html>

+ 3 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-09.htm

@@ -0,0 +1,3 @@
+<html><body>Maid of Lidia:<br>
+Perhaps there is a tree with that name. Why would you think I had anything to do with this?
+</body></html>

+ 3 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-10.htm

@@ -0,0 +1,3 @@
+<html><body>Maid of Lidia:<br>
+This manor is covered in corpses. This is the Forest of the Dead. Why do you keep asking about it?
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-11.htm

@@ -0,0 +1,4 @@
+<html><body>Maid of Lidia:<br>
+What kind of Mystic was he?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31532-12.htm">"A Mystic of Dark Arts!"</a>
+</body></html>

+ 5 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-12.htm

@@ -0,0 +1,5 @@
+<html><body>Maid of Lidia:<br>
+Oh! Only Lord Alfred and Lady Lidia know. Even Einhalder thinks he's an ordinary Mystic! How do you know of this?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31532-13.htm">"I read the diary."</a><br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31532-14.htm">"How do you know?"</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-13.htm

@@ -0,0 +1,4 @@
+<html><body>Maid of Lidia:<br>
+Did you read of the contract between Neidrahu and my lady in the diary?<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31532-15.htm">"Now you must tell me what you know!"</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-14.htm

@@ -0,0 +1,4 @@
+<html><body>Maid of Lidia:<br>
+How do you know about Neidrahu?  Are you the last survivor? If so, you'll never get out of this forest alive...or dead!<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31532-13.htm">"I read the diary."</a>
+</body></html>

+ 5 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-15.htm

@@ -0,0 +1,5 @@
+<html><body>Maid of Lidia:<br>
+I was there when the contract was signed, but the memory of the undead is not very clear.<br>
+If you find out what's on the missing page, when the contract was signed, I'll tell you more.<br>
+<a action="bypass -h Quest 24_InhabitantsOfTheForrestOfTheDead 31532-16.htm">"I've already come this far."</a>
+</body></html>

+ 4 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/31532-16.htm

@@ -0,0 +1,4 @@
+<html><body>Maid of Lidia:<br>
+This I can tell you.<br>
+The black magi roam freely during the day, but are fewer at night. Some carry odd looking dolls. Take one to their master, I'm sure he can tell you more!
+</body></html>

+ 180 - 0
datapack_development/data/scripts/quests/24_InhabitantsOfTheForrestOfTheDead/__init__.py

@@ -0,0 +1,180 @@
+#  Created by Kerberos
+import sys
+from net.sf.l2j.gameserver import GameTimeController
+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
+from net.sf.l2j.gameserver.serverpackets import CreatureSay
+
+qn = "24_InhabitantsOfTheForrestOfTheDead"
+
+# Npcs
+Dorian = 31389
+Wizard = 31522
+Tombstone = 31531
+MaidOfLidia = 31532
+
+#Items
+Letter = 7065
+Hairpin = 7148
+Totem = 7151
+Flower = 7152
+SilverCross = 7153
+BrokenSilverCross = 7154
+SuspiciousTotem = 7156
+
+def FindTemplate (npcId) :
+    npcinstance = 0
+    for spawn in SpawnTable.getInstance().getSpawnTable().values():
+        if spawn :
+            if spawn.getNpcid() == npcId:
+                npcinstance=spawn.getLastSpawn()
+                break
+    return npcinstance
+
+def AutoChat(npc,text) :
+    chars = npc.getKnownList().getKnownPlayers().values().toArray()
+    if chars != None:
+       for pc in chars :
+          sm = CreatureSay(npc.getObjectId(), 0, npc.getName(), text)
+          pc.sendPacket(sm)
+
+class Quest (JQuest) : 
+
+    def __init__(self,id,name,descr):  
+       JQuest.__init__(self,id,name,descr)
+       self.questItemIds = [Flower,SilverCross,BrokenSilverCross,Letter,Hairpin,Totem]
+
+    def onAdvEvent (self,event,npc,player) :
+        st = player.getQuestState(qn)
+        if not st: return
+        htmltext = event
+        if event == "31389-02.htm":
+            st.giveItems(Flower,1)
+            st.set("cond","1")
+            st.playSound("ItemSound.quest_accept")
+            st.setState(State.STARTED)
+        elif event == "31389-11.htm":
+            st.set("cond","3")
+            st.playSound("ItemSound.quest_middle")
+            st.giveItems(SilverCross,1)
+            self.startQuestTimer("Night_Time",1000,None, player)
+        elif event == "31389-16.htm":
+            st.playSound("InterfaceSound.charstat_open_01")
+        elif event == "31389-17.htm":
+            st.takeItems(BrokenSilverCross,-1)
+            st.giveItems(Hairpin,1)
+            st.set("cond","5")
+        elif event == "31522-03.htm":
+            st.takeItems(Totem,-1)
+        elif event == "31522-07.htm":
+            st.set("cond","11")
+        elif event == "31522-19.htm":
+            st.giveItems(SuspiciousTotem,1)
+            st.exitQuest(False)
+            st.playSound("ItemSound.quest_finish")
+        elif event == "31531-02.htm":
+            st.playSound("ItemSound.quest_middle")
+            st.set("cond","2")
+            st.takeItems(Flower,-1)
+        elif event == "31532-04.htm":
+            st.playSound("ItemSound.quest_middle")
+            st.giveItems(Letter,1)
+            st.set("cond","6")
+        elif event == "31532-06.htm":
+            st.takeItems(Hairpin,-1)
+            st.takeItems(Letter,-1)
+        elif event == "31532-16.htm":
+            st.playSound("ItemSound.quest_middle")
+            st.set("cond","9")
+        elif event == "Night_Time":
+          if st.getInt("cond") == 3:
+            if GameTimeController.getInstance().isNowNight() : # add check for player, he must be in cursed village
+               st.takeItems(SilverCross,-1)
+               st.giveItems(BrokenSilverCross,1)
+               st.set("cond","4")
+               npc = FindTemplate(25332)
+               if npc:
+                  AutoChat(npc,"That sign!")
+            else:
+               self.startQuestTimer("Night_Time",1000, None, player)
+        return htmltext
+
+    def onTalk (self,npc,player):
+        htmltext = "<html><body>You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.</body></html>"
+        st = player.getQuestState(qn)
+        if not st : return htmltext
+        state = st.getState()
+        if state == State.COMPLETED :
+            if npcId == Wizard :
+                htmltext = "31522-20.htm"
+            else:
+                htmltext = "<html><body>This quest has already been completed.</body></html>"
+        npcId = npc.getNpcId()
+        cond = st.getInt("cond")
+        if npcId == Dorian :
+            if state == State.CREATED :
+                st2 = st.getPlayer().getQuestState("23_LidiasHeart")
+                if st2 :
+                    if st2.getState() == State.COMPLETED and player.getLevel() >= 65 :
+                        htmltext = "31389-01.htm"
+                    else:
+                        htmltext = "31389-00.htm"
+                else:
+                    htmltext = "31389-00.htm"
+            elif cond == 1 :
+                htmltext = "31389-03.htm"
+            elif cond == 2 :
+                htmltext = "31389-04.htm"
+            elif cond == 3 :
+                htmltext = "31389-12.htm"
+            elif cond == 4 :
+                htmltext = "31389-13.htm"
+            elif cond == 5 :
+                htmltext = "31389-18.htm"
+        elif npcId == Tombstone :
+            if cond == 1 :
+                st.playSound("AmdSound.d_wind_loot_02")
+                htmltext = "31531-01.htm"
+            elif cond == 2 :
+                htmltext = "31531-03.htm"
+        elif npcId == MaidOfLidia :
+            if cond == 5 :
+                htmltext = "31532-01.htm"
+            elif cond == 6 :
+                if st.getQuestItemsCount(Letter) and st.getQuestItemsCount(Hairpin) :
+                    htmltext = "31532-05.htm"
+                else:
+                    htmltext = "31532-07.htm"
+            elif cond == 9 :
+                htmltext = "31532-16.htm"
+        elif npcId == Wizard :
+            if cond == 10 :
+                htmltext = "31522-01.htm"
+            elif cond == 11 :
+                htmltext = "31522-08.htm"
+        return htmltext
+
+    def onKill(self,npc,player,isPet):
+        st = player.getQuestState(qn)
+        if not st : return 
+        if st.getState() != State.STARTED : return 
+        npcId = npc.getNpcId()
+        if not st.getQuestItemsCount(Totem) and st.getInt("cond") == 9:
+            if npcId in [21557,21558,21560,21563,21564,21565,21566,21567] and st.getRandom(100) <=30:
+                st.giveItems(totem,1)
+                st.set("cond","10")
+                st.playSound("ItemSound.quest_middle")
+        return
+
+QUEST     = Quest(24,qn,"Inhabitants Of The Forrest Of The Dead")
+
+QUEST.addStartNpc(Dorian)
+
+QUEST.addTalkId(Dorian)
+QUEST.addTalkId(Tombstone)
+QUEST.addTalkId(MaidOfLidia)
+QUEST.addTalkId(Wizard)
+
+for mob in [21557,21558,21560,21563,21564,21565,21566,21567]:
+    QUEST.addKillId(mob)