Explorar o código

Retail-like quest To Lead And Be Led (118).
Reviewed by: @Zoey76
Thanks to: @Zoey76

ivantotov %!s(int64=10) %!d(string=hai) anos
pai
achega
8445e07b77
Modificáronse 64 ficheiros con 529 adicións e 309 borrados
  1. 0 1
      L2J_DataPack/dist/game/data/scripts.cfg
  2. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-01.htm
  3. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-02.htm
  4. 0 2
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-03.htm
  5. 0 6
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-04.htm
  6. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-04a.htm
  7. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-04b.htm
  8. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-04c.htm
  9. 0 5
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-04d.htm
  10. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-05.htm
  11. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-05a.htm
  12. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-05b.htm
  13. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-05c.htm
  14. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-05d.htm
  15. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-05e.htm
  16. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-05f.htm
  17. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-06.htm
  18. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-07.htm
  19. 0 3
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-09.htm
  20. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-09a.htm
  21. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-09b.htm
  22. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-09c.htm
  23. 0 3
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-10.htm
  24. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-FA.htm
  25. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-FB.htm
  26. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-FC.htm
  27. 0 4
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-FD.htm
  28. 0 2
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-FE.htm
  29. 0 2
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-FF.htm
  30. 0 198
      L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/__init__.py
  31. 5 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-01.htm
  32. 3 2
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-02.htm
  33. 4 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-02a.htm
  34. 4 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-02b.html
  35. 5 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-03.htm
  36. 3 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-04.html
  37. 7 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05.html
  38. 5 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05a.html
  39. 5 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05b.html
  40. 5 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05c.html
  41. 5 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05d.html
  42. 5 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05e.html
  43. 5 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05f.html
  44. 3 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05g.html
  45. 4 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-06.html
  46. 4 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-06a.html
  47. 4 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-06b.html
  48. 4 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-06c.html
  49. 4 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-06d.html
  50. 4 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-06e.html
  51. 3 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-07.html
  52. 4 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-08.html
  53. 3 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-09.html
  54. 3 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-10.html
  55. 3 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-11.html
  56. 3 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-11a.html
  57. 3 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-12.html
  58. 3 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-14.html
  59. 5 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-15.html
  60. 4 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-16.html
  61. 2 1
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-17.html
  62. 402 0
      L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/Q00118_ToLeadAndBeLed.java
  63. 2 0
      L2J_DataPack/dist/game/data/scripts/quests/QuestMasterHandler.java
  64. 1 0
      L2J_DataPack/dist/sql/game/updates/20150222update.sql

+ 0 - 1
L2J_DataPack/dist/game/data/scripts.cfg

@@ -182,7 +182,6 @@ hellbound/HellboundLoader.java
 # Quests Section
 quests/QuestMasterHandler.java
 quests/TerritoryWarScripts/TerritoryWarSuperClass.java
-quests/118_ToLeadAndBeLed/__init__.py
 quests/123_TheLeaderAndTheFollower/__init__.py
 quests/234_FatesWhisper/__init__.py
 quests/236_SeedsOfChaos/__init__.py

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-01.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Have you heard? A<font color="LEVEL"> new type of armor has been designed excusively for members of the Clan Academy</font>!<br>
-Do you want some? I'd be happy to make it for you, just say the word!<br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-02.htm">"Please make some new armor for me."</a></body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-02.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Oh really?<font color="LEVEL"> Nothing in life is free my friend!</font> This will be no exception! You may as well get ready to pay through the nose for every little piece of material I need! Ha! That look on your face is priceless!<br>
-You won't find this stuff easilty, I can promise you that! Nothing I need can be found in a store...<br>
-I'm afraid you'll have to slaughter the<font color="LEVEL"> Maille Lizardmen and their Scouts and Guards</font> in the<font color="LEVEL"> Maille Lizardman Barracks</font> and bring me<font color="LEVEL"> 10 bottles</font> of their<font color="LEVEL"> blood</font>. I can't make the special Armor without it... Now get going! I don't have all day!</body></html>

+ 0 - 2
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-03.htm

@@ -1,2 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-You're back so soon? You have to slaughter the<font color="LEVEL"> Maille Lizardmen, their Scouts and Guards</font> in the<font color="LEVEL"> Maille Lizardman Barracks</font> and bring me<font color="LEVEL"> 10 bottles</font> of their<font color="LEVEL"> blood</font>. I can't make the special Armor without it... Now get going! I don't have all day!</body></html>

+ 0 - 6
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-04.htm

@@ -1,6 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Good job! Now I'll need some crystals: D-Gra...<br>
-Oh, I'm getting ahead of myself! What kinf of Armor is it that you want?<br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-04a.htm">Heavy Armor</a><br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-04b.htm">Light Armor</a><br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-04c.htm">Robe</a></body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-04a.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Heavy Armor, eh? Make sure that's what you want, because once I start making it, there is no going back!<br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-05a.htm">"I want Heavy Armor"</a><br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-04d.htm">"I need to think about it some more"</a></body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-04b.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Light Armor, eh? Make sure that's what you want, because once I start making it, there is no going back!<br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-05b.htm">"I want Light Armor"</a><br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-04d.htm">"I need to think about it some more"</a></body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-04c.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Robe Armor, eh? Make sure that's what you want, because once I start making it, there is no going back!<br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-05c.htm">"I want Robe Armor"</a><br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-04d.htm">"I need to think about it some more"</a></body></html>

+ 0 - 5
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-04d.htm

@@ -1,5 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Oh! Ok, take your time and choose carefully... What kind of Armor is it that you want?<br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-04a.htm">Heavy Armor</a><br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-04b.htm">Light Armor</a><br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-04c.htm">Robe</a></body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-05.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Now I can get started making Robe Armor armor. I'll need some D-Grade crystals , but I know better that to ask a lightweight like you to bring them to me!<br>
-Have you<font color="LEVEL"> Sponsor</font> bring me<font color="LEVEL"> 771 D-Grade Crystals</font>. Stop whininh! I'm not running a charity here!<br>
-Oh, by the way...<font color="LEVEL"> You've got to come back with your Sponsor!</font> How else would I know who your sponsor was?</body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-05a.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Now I can get started making Heavy Armor. I'll need some D-Grade crystals , but I know better than to ask a lightweight like you to bring them to me!<br>
-Have your<font color="LEVEL"> Sponsor</font> bring me<font color="LEVEL"> 922 D-Grade Crystals</font>. Stop whining! I'm not running a charity here!<br>
-Oh, by the way...<font color="LEVEL"> You've got to come back with your Sponsor!</font> How else would I know who your sponsor was?</body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-05b.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Now I can get started making Light Armor. I'll need some D-Grade crystals , but I know better than to ask a lightweight like you to bring them to me!<br>
-Have your<font color="LEVEL"> Sponsor</font> bring me<font color="LEVEL"> 771 D-Grade Crystals</font>. Stop whining! I'm not running a charity here!<br>
-Oh, by the way...<font color="LEVEL"> You've got to come back with your Sponsor!</font> How else would I know who your sponsor was?</body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-05c.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Now I can get started making Robe Armor. I'll need some D-Grade crystals , but I know better than to ask a lightweight like you to bring them to me!<br>
-Have your<font color="LEVEL"> Sponsor</font> bring me<font color="LEVEL"> 771 D-Grade Crystals</font>. Stop whining! I'm not running a charity here!<br>
-Oh, by the way...<font color="LEVEL"> You've got to come back with your Sponsor!</font> How else would I know who your sponsor was?</body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-05d.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-I'm about to start making your Heavy Armor, but I'll need some D-Grade crystals!<br>
-Have your<font color="LEVEL"> Sponsor</font> bring me<font color="LEVEL"> 922 D-Grade Crystals</font>. Stop whining! I'm not running a charity here!<br>
-Oh, by the way...<font color="LEVEL"> You've got to come back with your Sponsor!</font> How else would I know who your sponsor was?</body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-05e.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-I'm about to start making your Light Armor, but I'll need some D-Grade crystals!<br>
-Have your<font color="LEVEL"> Sponsor</font> bring me<font color="LEVEL"> 771 D-Grade Crystals</font>. Stop whining! I'm not running a charity here!<br>
-Oh, by the way...<font color="LEVEL"> You've got to come back with your Sponsor!</font> How else would I know who your sponsor was?</body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-05f.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-I'm about to start making your Robe Armor, but I'll need some D-Grade crystals!<br>
-Have your<font color="LEVEL"> Sponsor</font> bring me<font color="LEVEL"> 771 D-Grade Crystals</font>. Stop whining! I'm not running a charity here!<br>
-Oh, by the way...<font color="LEVEL"> You've got to come back with your Sponsor!</font> How else would I know who your sponsor was?</body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-06.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Well, I have all the ingredients I need, but I have one more favor to ask of you... I want to test the bond between you and your Sponsor.<br>
-Go to the<font color="LEVEL"> Maille Lizardmen Barracks</font> and defeat the<font color="LEVEL"> King of the Araneid</font> and bring me<font color="LEVEL"> all 8 of his legs</font>! Also,<font color="LEVEL"> you must defeat the King of Araneid while your Sponsor looks on!</font> Think of it as a way to prove yourself to him! Naturally, if you get in trouble, he'll be there to help you. This experience should be good for both of you!<br>
-I'll have you Armor ready when you return with the 8 Legs of the King of the Araneid.</body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-07.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-As I said, I have all the ingredients I need, but I want to test the bond between you and your Sponsor.<br>
-Go to the<font color="LEVEL"> Maille Lizardmen Barracks</font> and defeat the<font color="LEVEL"> King of the Araneid</font> and bring me<font color="LEVEL"> all 8 of his legs</font>! Also,<font color="LEVEL"> you must defeat the King of Araneid while your Sponsor looks on!</font> Think of it as a way to prove yourself to him! Naturally, if you get in trouble, he'll be there to help you. This experience should be good for both of you!<br>
-I'll have you Armor ready when you return with the 8 Legs of the King of the Araneid.</body></html>

+ 0 - 3
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-09.htm

@@ -1,3 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Unfortunately there's nothing i can do for you without crystals<br>
-Go get some and talk with me again. I'll be waiting but please hurry or Lizardmen blood will debase!</body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-09a.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-I'm about to start making a Heavy Armor for your apprentice, but I'll need some D-Grade crystals!<br>
-Have you brought<font color="LEVEL"> 992 D-Grade Crystals</font>?<br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-09.htm">"Here are the crystals"</a></body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-09b.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-I'm about to start making a Light Armor for your apprentice, but I'll need some D-Grade crystals!<br>
-Have you brought<font color="LEVEL">  771 D-Grade Crystals</font>?<br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-09.htm">"Here are the crystals"</a></body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-09c.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-I'm about to start making a Robe Armor for your apprentice, but I'll need some D-Grade crystals!<br>
-Have you brought<font color="LEVEL">  771 D-Grade Crystals</font>?<br>
-<a action="bypass -h Quest 118_ToLeadAndBeLed 30517-09.htm">"Here are the crystals"</a></body></html>

+ 0 - 3
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-10.htm

@@ -1,3 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Excellent! Thank you very much. I'll get started right now...<br>
-Ah.. may I have a word with your Apprentice? Please tell him I wish to have a talk.</body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-FA.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-You don't meet any of the criteria required to undertake this quest.<br>
-Most common reason should be that you're in a clan but don't have an apprentice.<br>
-Try again later or contact your administrator if this is not the case.</body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-FB.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Apprentice's clan member instance information isn't available right now.<br>
-Maybe he's disconnected, teleporting or somehow unavailable.<br>
-Try again later or contact your administrator if problem persist.</body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-FC.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Apprentice's clan member instance doesn't seem to be online.<br>
-Maybe he's disconnected, teleporting or somehow unavailable.<br>
-Try again later or contact your administrator if problem persist.</body></html>

+ 0 - 4
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-FD.htm

@@ -1,4 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Apprentice's player instance information isn't available right now.<br>
-Maybe he's disconnected, teleporting or somehow unavailable.<br>
-Try again later or contact your administrator if problem persist.</body></html>

+ 0 - 2
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-FE.htm

@@ -1,2 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Your apprentice isn't undertaking this quest right now, or its quest information is unavailable. Try again later or contact your administrator if problem persist.</body></html>

+ 0 - 2
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-FF.htm

@@ -1,2 +0,0 @@
-<html><body>Blacksmith Pinter:<br>
-Your apprentice's quest don't require actions from you for the moment.</body></html>

+ 0 - 198
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/__init__.py

@@ -1,198 +0,0 @@
-# To Lead and to be led - v0.1 by DrLecter
-import sys
-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 = "118_ToLeadAndBeLed"
-
-#CONFIG
-DEBUG=1
-#ITEMS 
-BLOOD,LEG = 8062,8063
-#NPCS
-PINTER = 30298
-#MOBS and DROPS
-DROPLIST={20919:[BLOOD,90,10,1,0],
-          20920:[BLOOD,90,10,1,0],
-          20921:[BLOOD,90,10,1,0],
-          20927:[LEG,100,8,7,1]
-          }
-
- 
-class Quest (JQuest) :
-
- def __init__(self,id,name,descr):
-     JQuest.__init__(self,id,name,descr)
-     self.questItemIds = [BLOOD, LEG]
-
- def onAdvEvent (self,event,npc, player) :
-   htmltext = event
-   st = self.getQuestState(player, False)
-   if not st : return
-   if event == "30517-02.htm" :
-     st.set("cond","1")
-     st.setState(State.STARTED)
-     st.playSound("ItemSound.quest_accept")
-   elif event == "30517-05a.htm" :
-     if st.getQuestItemsCount(BLOOD) >= 10 :
-         st.takeItems(BLOOD,-1)
-         st.set("cond","3");
-         st.set("settype","1")
-         st.playSound("ItemSound.quest_middle")
-     else:
-         htmltext = "Incorrect item count"
-   elif event == "30517-05b.htm" :
-     if st.getQuestItemsCount(BLOOD) >= 10 :
-         st.takeItems(BLOOD,-1)
-         st.set("cond","4")
-         st.set("settype","2")
-         st.playSound("ItemSound.quest_middle")
-     else:
-         htmltext = "Incorrect item count"
-   elif event == "30517-05c.htm" :
-     if st.getQuestItemsCount(BLOOD) >= 10 :
-         st.takeItems(BLOOD,-1)
-         st.set("cond","5");
-         st.set("settype","3")
-         st.playSound("ItemSound.quest_middle") 
-     else:
-         htmltext = "Incorrect item count"
-   elif event == "30517-09.htm" :
-     cm_apprentice = st.getPlayer().getClan().getClanMember(st.getPlayer().getApprentice())
-     if cm_apprentice:
-       if cm_apprentice.isOnline():
-         apprentice = cm_apprentice.getPlayerInstance()
-         if apprentice :
-           ap_quest=apprentice.getQuestState("118_ToLeadAndBeLed")
-           if ap_quest != None :
-              ap_cond=ap_quest.getInt("cond")
-              if ap_cond == 3 :
-                 crystals=922
-              elif ap_cond in [4,5] :
-                 crystals=771
-              if st.getQuestItemsCount(1458) >= crystals:
-                 st.takeItems(1458,crystals)
-                 ap_quest.set("cond","6")
-                 st.playSound("ItemSound.quest_middle")
-                 ap_quest.playSound("ItemSound.quest_middle")
-                 htmltext = "30517-10.htm"
-           elif DEBUG: htmltext = "30517-FE.htm"
-         elif DEBUG: htmltext = "30517-FD.htm"
-       elif DEBUG:htmltext = "30517-FC.htm"
-     elif DEBUG:htmltext = "30517-FB.htm"
-     #st.exitQuest(1) #needed?
-   return htmltext 
-
- def onTalk (self,npc,player):
-   npcId = npc.getId()
-   htmltext = Quest.getNoQuestMsg(player)
-   st = self.getQuestState(player, True)
-   if not st : return htmltext
-
-   id = st.getState()
-   cond = st.getInt("cond") 
-   if player.getClan() == None :
-     htmltext = "30517-00.htm"
-     st.exitQuest(1)
-   elif player.getPledgeType() == -1 :
-     if id==State.COMPLETED:
-       htmltext = Quest.getAlreadyCompletedMsg(player) 
-     elif player.getLevel() < 19 or not player.getSponsor() :
-       htmltext = "30517-00.htm"
-       st.exitQuest(1)
-     else :
-       if id == State.CREATED :
-         htmltext = "30517-01.htm"
-       elif cond == 1 :
-         htmltext = "30517-03.htm" 
-       elif cond == 2 :
-         htmltext = "30517-04.htm"
-       elif cond == 3 :
-         htmltext = "30517-05d.htm"
-       elif cond == 4 :
-         htmltext = "30517-05e.htm"
-       elif cond == 5 :
-         htmltext = "30517-05f.htm"
-       elif cond == 6 :
-         htmltext = "30517-06.htm"
-         st.set("cond", "7")
-       elif cond == 7 :
-         htmltext = "30517-07.htm"
-       elif cond == 8 and st.getQuestItemsCount(LEG)==8 :
-         settype = st.getInt("settype")
-         htmltext = "30517-08.htm"
-         st.takeItems(LEG,-1)
-         if settype == 1 :
-            set = range(7851,7854) #heavy
-         elif settype == 2 :
-            set = range(7854,7857) #light
-         elif settype == 3 :
-            set = range(7857,7860) #robe
-         for item in [7850]+set:
-            st.giveItems(item,1)
-         st.unset("cond")
-         st.unset("settype")
-         st.exitQuest(False) 
-         st.playSound("ItemSound.quest_finish")
-   elif player.getApprentice() :
-     cm_apprentice = player.getClan().getClanMember(player.getApprentice())
-     if cm_apprentice:
-        if cm_apprentice.isOnline():
-           apprentice = cm_apprentice.getPlayerInstance()
-           if apprentice :
-              ap_quest=apprentice.getQuestState(qn)
-              if ap_quest :
-                 ap_cond=ap_quest.getInt("cond")
-                 if ap_cond == 3 :
-                    htmltext = "30517-09a.htm"
-                 elif ap_cond == 4 :
-                    htmltext = "30517-09b.htm"
-                 elif ap_cond == 5 :
-                    htmltext = "30517-09c.htm"
-                 elif DEBUG : htmltext = "30517-FF.htm"
-              elif DEBUG: htmltext = "30517-FE.htm"
-           elif DEBUG: htmltext = "30517-FD.htm"
-        elif DEBUG:htmltext = "30517-FC.htm"
-     elif DEBUG:htmltext = "30517-FB.htm"
-   elif DEBUG:htmltext = "30517-FA.htm"
-   #st.exitQuest(1) #needed?
-   return htmltext
-
- def onKill(self,npc,player,isPet):
-    st = self.getQuestState(player, False)
-    if not st : return
-    if st.getState() != State.STARTED : return
-    sponsor = player.getSponsor()
-    if not sponsor:
-      st.exitQuest(1)
-      return
-    item,chance,max,cond,check = DROPLIST[npc.getId()]
-    count,enabled=st.getQuestItemsCount(item),True
-    if check :
-       enabled=False
-       cm_sponsor = player.getClan().getClanMember(sponsor)
-       if cm_sponsor :
-         if cm_sponsor.isOnline():
-           sponsor = cm_sponsor.getPlayerInstance()
-           if sponsor :
-             if player.isInsideRadius(sponsor, 1100, 1, 0) :
-               enabled=True
-    if st.getInt("cond") == cond and count < max and self.getRandom(100) < chance and enabled :
-       st.giveItems(item,1)
-       if count == max-1:
-          st.set("cond",str(cond+1))
-          st.playSound("ItemSound.quest_middle")
-       else :
-          st.playSound("ItemSound.quest_itemget")
-    return
-     
-
-QUEST     = Quest(118,qn,"To Lead And Be Led") 
-
-QUEST.addStartNpc(PINTER) 
-
-QUEST.addTalkId(PINTER)
-
-for mob in DROPLIST.keys():
-    QUEST.addKillId(mob)

+ 5 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-01.htm

@@ -0,0 +1,5 @@
+<html><body>Blacksmith Pinter:<br>
+Have you heard? A <font color="LEVEL">new type of Armor has been designed exclusively for members of the Clan Academy</font>!<br>
+Do you want some? I'd be happy to make it for you, just say the word!<br>
+<a action="bypass -h Quest Q00118_ToLeadAndBeLed 30298-03.htm">"Please make some new Armor for me."</a>
+</body></html>

+ 3 - 2
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-00.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-02.htm

@@ -1,4 +1,5 @@
 <html><body>Blacksmith Pinter:<br>
-Have you heard? A<font color="LEVEL"> new type of armor has been designed excusively for members of the Clan Academy</font>!<br>
+Have you heard? A <font color="LEVEL">new type of Armor has been designed exclusively for members of the Clan Academy</font>!<br>
 Do you want some? Uh oh, it seems you're not ready for it yet...<br>
-(This quest is limited to sponsored Clan Academy members of level 19 and above)</body></html>
+(This quest is limited to sponsored Clan Academy members of level 19 and above.)
+</body></html>

+ 4 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-02a.htm

@@ -0,0 +1,4 @@
+<html><body>Blacksmith Pinter:<br>
+It seems you've already  gotten some of the special Armor for Academy members from Blacksmith Newyear in Schuttgart!<br>
+(Characters who have undertaken 'To Lead and Be Led' are not permitted to take on this quest.)
+</body></html>

+ 4 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-02b.html

@@ -0,0 +1,4 @@
+<html><body>Blacksmith Pinter:<br>
+Hmm, how strange...!? You should've already gotten the special Armor for Academy members from Blacksmith Newyear in Schuttgart!<br>
+(Characters who have undertaken 'To Lead and Be Led' are not permitted to take on this quest.)
+</body></html>

+ 5 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-03.htm

@@ -0,0 +1,5 @@
+<html><body>Blacksmith Pinter:<br>
+Oh really? <font color="LEVEL">Nothing in life is free, my friend!</font> This will be no exception! You may as well get ready to pay through the nose for every little piece of material I need! Ha! That look on your face is priceless!<br>
+You won't find this stuff easily, I can promise you that! Nothing I need can be found in a store...<br>
+I'm afraid you'll have to slaughter the <font color="LEVEL">Maille Lizardmen and their Scouts and Guards</font> in the <font color="LEVEL">Maille Lizardman Barracks</font> and bring me <font color="LEVEL">10 bottles</font> of their <font color="LEVEL">blood</font>. I can't make the special Armor without it... Now get going! I don't have all day!
+</body></html>

+ 3 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-04.html

@@ -0,0 +1,3 @@
+<html><body>Blacksmith Pinter:<br>
+You must slaughter the <font color="LEVEL">Maille Lizardmen and their Scouts and Guards</font> in the<font color="LEVEL"> Maille Lizardman Barracks</font> and bring me <font color="LEVEL">10 bottles</font> of their <font color="LEVEL">blood</font>. I can't make the special Armor without it! Get going!
+</body></html>

+ 7 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05.html

@@ -0,0 +1,7 @@
+<html><body>Blacksmith Pinter:<br>
+Good job! Now I'll need some Crystals: D-Gra...<br>
+Oh, I'm getting ahead of myself! What kind of Armor is it that you want?<br>
+<a action="bypass -h Quest Q00118_ToLeadAndBeLed 30298-05a.html">Heavy Armor</a><br>
+<a action="bypass -h Quest Q00118_ToLeadAndBeLed 30298-05b.html">Light Armor</a><br>
+<a action="bypass -h Quest Q00118_ToLeadAndBeLed 30298-05c.html">Robe</a>
+</body></html>

+ 5 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05a.html

@@ -0,0 +1,5 @@
+<html><body>Blacksmith Pinter:<br>
+Heavy Armor, eh? Make sure that's what you want, because once I get started, there's no turning back!<br>
+<a action="bypass -h Quest Q00118_ToLeadAndBeLed 30298-05d.html">"I want Heavy Armor."</a><br>
+<a action="bypass -h Quest Q00118_ToLeadAndBeLed 30298-05g.html">"I need to think about it some more."</a>
+</body></html>

+ 5 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05b.html

@@ -0,0 +1,5 @@
+<html><body>Blacksmith Pinter:<br>
+Light Armor, eh? Make sure that's what you want, because once I start making it, there's no going back!<br>
+<a action="bypass -h Quest Q00118_ToLeadAndBeLed 30298-05e.html">"I want Light Armor."</a><br>
+<a action="bypass -h Quest Q00118_ToLeadAndBeLed 30298-05g.html">"I need to think about it some more."</a>
+</body></html>

+ 5 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05c.html

@@ -0,0 +1,5 @@
+<html><body>Blacksmith Pinter:<br>
+Robe Armor, eh? Make sure that's what you want, because once I start making it, there's no going back!<br>
+<a action="bypass -h Quest Q00118_ToLeadAndBeLed 30298-05f.html">"I want Robe Armor."</a><br>
+<a action="bypass -h Quest Q00118_ToLeadAndBeLed 30298-05g.html">"I need to think about it some more."</a>
+</body></html>

+ 5 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05d.html

@@ -0,0 +1,5 @@
+<html><body>Blacksmith Pinter:<br>
+Heavy Armor it is, then! I'll need some D-Grade Crystals, but I know better than to ask a lightweight like you to bring them to me!<br>
+Tell your <font color="LEVEL">Sponsor</font> to bring me <font color="LEVEL">922 D-Grade Crystals</font>. Stop whining! I'm not running a charity here!<br>
+Oh, by the way... <font color="LEVEL">You've got to come back with your Sponsor</font>! How else will I know who to make the Armor for?
+</body></html>

+ 5 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05e.html

@@ -0,0 +1,5 @@
+<html><body>Blacksmith Pinter:<br>
+Now I can get started making the Light Armor! I'll need some D-Grade Crystals, but I know better than to ask a lightweight like you to bring them to me!<br>
+Go and ask your <font color="LEVEL">Sponsor</font> to bring me <font color="LEVEL">771 D-Grade Crystals</font>. Stop whining! I'm not running a charity here!<br>
+Oh, by the way... <font color="LEVEL">You've got to come back with your Sponsor</font>! How else will I know who to make the Armor for?
+</body></html>

+ 5 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05f.html

@@ -0,0 +1,5 @@
+<html><body>Blacksmith Pinter:<br>
+Now I can get started making Robe Armor. I'll need some D-Grade Crystals, but I know better than to ask a lightweight like you to bring them to me!<br>
+Have your <font color="LEVEL">Sponsor </font>bring me<font color="LEVEL"> 771 D-Grade Crystals. </font>Stop whining! I'm not running a charity here!<br>
+Oh, by the way... <font color="LEVEL">You've got to come back with your Sponsor</font>! How else would I know who your sponsor was?
+</body></html>

+ 3 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-05g.html

@@ -0,0 +1,3 @@
+<html><body>Blacksmith Pinter:<br>
+You need to think about it? Fine! Let me know what you decide!
+</body></html>

+ 4 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-06.html

@@ -0,0 +1,4 @@
+<html><body>Blacksmith Pinter:<br>
+Go and ask your <font color="LEVEL">Sponsor</font> to bring me <font color="LEVEL">922 D-Grade Crystals</font>. Stop whining! I'm not running a charity here!<br>
+By the way... <font color="LEVEL">You must return with your Sponsor</font>. How else will I know who to make the Armor for?
+</body></html>

+ 4 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-06a.html

@@ -0,0 +1,4 @@
+<html><body>Blacksmith Pinter:<br>
+Go and ask your Sponsor to bring me 922 D-Grade Crystals! Stop whining! I'm not running a charity here!<br>
+What? You don't have a Sponsor? Why the hell didn't you say something earlier? Come back when you're sponsored!
+</body></html>

+ 4 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-06b.html

@@ -0,0 +1,4 @@
+<html><body>Blacksmith Pinter:<br>
+Go and ask your Sponsor to bring me 771 D-Grade Crystals. Stop whining! I'm not running a charity here!<br>
+What? You don't have a Sponsor? Why the hell didn't you say something earlier? Come back when you're sponsored!
+</body></html>

+ 4 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-06c.html

@@ -0,0 +1,4 @@
+<html><body>Blacksmith Pinter:<br>
+Go and ask your Sponsor to bring me 771 D-Grade Crystals. Stop whining! I'm not running a charity here!<br>
+What? You don't have a Sponsor? Why the hell didn't you say something earlier? Come back when you're sponsored!
+</body></html>

+ 4 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-06d.html

@@ -0,0 +1,4 @@
+<html><body><br>
+Go and ask your <font color="LEVEL">Sponsor</font> to bring <font color="LEVEL">771 D-Grade Crystals</font>. Stop whining! I'm not running a charity here!<br>
+Oh, by the way... <font color="LEVEL">You've got to come back with your Sponsor</font>! How else will I know who to make the Armor for?
+</body></html>

+ 4 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-06e.html

@@ -0,0 +1,4 @@
+<html><body><br>
+Go and ask your <font color="LEVEL">Sponsor</font> to bring <font color="LEVEL">771 D-Grade Crystals</font>. Stop whining! I'm not running a charity here!<br>
+Oh, by the way... <font color="LEVEL">You've got to come back with your Sponsor</font>! How else will I know who he's sponsoring?
+</body></html>

+ 3 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-07.html

@@ -0,0 +1,3 @@
+<html><body>Blacksmith Pinter:<br>
+Hmmm, did you bring your Sponsor? Well, who is it? Tell him to come and see me!
+</body></html>

+ 4 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-08.html

@@ -0,0 +1,4 @@
+<html><body>Blacksmith Pinter:<br>
+Oh, you're back! Did you bring what I asked for?<br>
+<a action="bypass -h Quest Q00118_ToLeadAndBeLed 30298-10.html">"Here are the D-Grade Crystals."</a>
+</body></html>

+ 3 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-09.html

@@ -0,0 +1,3 @@
+<html><body>Blacksmith Pinter:<br>
+You claim to be a Sponsor, but you stand here alone! How am I to know who you've sponsored? Bring your apprentice with you next time!
+</body></html>

+ 3 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-10.html

@@ -0,0 +1,3 @@
+<html><body>Blacksmith Pinter:<br>
+Ah yes, thank you! Now, I'd like to speak with your apprentice.
+</body></html>

+ 3 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-11.html

@@ -0,0 +1,3 @@
+<html><body>Blacksmith Pinter:<br>
+This isn't enough! Bring me <font color="LEVEL">922 D-Grade Crystals</font>.
+</body></html>

+ 3 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-11a.html

@@ -0,0 +1,3 @@
+<html><body>Blacksmith Pinter:<br>
+This isn't enough! Bring me <font color="LEVEL">771 D-Grade Crystals</font>.
+</body></html>

+ 3 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-12.html

@@ -0,0 +1,3 @@
+<html><body>Blacksmith Pinter:<br>
+Now I'd like to speak with your apprentice.
+</body></html>

+ 3 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-14.html

@@ -0,0 +1,3 @@
+<html><body>Blacksmith Pinter:<br>
+Stop wasting my time! I have nothing to say to you!
+</body></html>

+ 5 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-15.html

@@ -0,0 +1,5 @@
+<html><body>Blacksmith Pinter:<br>
+Well, I have all the ingredients I need, but I have one more favor to ask of you... I want to test the bond between you and your Sponsor.<br>
+Go to the <font color="LEVEL">Maille Lizardmen Barracks</font> and defeat the <font color="LEVEL">King of the Araneid</font> and bring me <font color="LEVEL">all 8 of his legs</font>! Also, <font color="LEVEL">you must defeat the King of the Araneid while your Sponsor looks on!</font> Think of it as a way to prove yourself to him! Naturally, if you get in trouble, he'll be there to help you. This experience should be good for the both of you!<br>
+I'll have your Armor ready when you return with the 8 Legs of the King of the Araneid.
+</body></html>

+ 4 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-16.html

@@ -0,0 +1,4 @@
+<html><body>Blacksmith Pinter:<br>
+Go to <font color="LEVEL">the Maille Lizardmen Barracks</font> and defeat the <font color="LEVEL">King of the Araneid</font> and bring me his <font color="LEVEL">8 legs</font>. <font color="LEVEL">You must defeat him while your Sponsor looks on</font>! This of this as an opportunity to prove yourself to him! Naturally, if you get in trouble, he'll be there to help you! This experience should be good for the both of you!<br>
+I'll have your Armor ready when you return with the 8 Legs of the King of the Araneid.
+</body></html>

+ 2 - 1
L2J_DataPack/dist/game/data/scripts/quests/118_ToLeadAndBeLed/30517-08.htm → L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/30298-17.html

@@ -1,3 +1,4 @@
 <html><body>Blacksmith Pinter:<br>
 Hmmm? What do you think? Was your Sponsor impressed?<br>
-Good! Here's your Armor as promised! Wear it in good health, my friend!</body></html>
+Good! Here's your Armor, as promised! Wear it in good health, my friend!
+</body></html>

+ 402 - 0
L2J_DataPack/dist/game/data/scripts/quests/Q00118_ToLeadAndBeLed/Q00118_ToLeadAndBeLed.java

@@ -0,0 +1,402 @@
+/*
+ * Copyright (C) 2004-2015 L2J DataPack
+ * 
+ * This file is part of L2J DataPack.
+ * 
+ * L2J DataPack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * L2J DataPack is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package quests.Q00118_ToLeadAndBeLed;
+
+import quests.Q00123_TheLeaderAndTheFollower.Q00123_TheLeaderAndTheFollower;
+
+import com.l2jserver.gameserver.model.L2World;
+import com.l2jserver.gameserver.model.actor.L2Npc;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.model.quest.Quest;
+import com.l2jserver.gameserver.model.quest.QuestState;
+import com.l2jserver.gameserver.model.quest.State;
+import com.l2jserver.gameserver.util.Util;
+
+/**
+ * To Lead And Be Led (118)
+ * @author ivantotov
+ */
+public final class Q00118_ToLeadAndBeLed extends Quest
+{
+	// NPC
+	private static final int BLACKSMITH_PINTER = 30298;
+	// Items
+	private static final int CRYSTAL_D = 1458;
+	private static final int BLOOD_OF_MAILLE_LIZARDMAN = 8062;
+	private static final int LEG_OF_KING_ARANEID = 8063;
+	// Reward
+	private static final int CLAN_OATH_HELM = 7850;
+	private static final int CLAN_OATH_ARMOR = 7851;
+	private static final int CLAN_OATH_GAUNTLETS_HEAVY_ARMOR = 7852;
+	private static final int CLAN_OATH_SABATON_HEAVY_ARMOR = 7853;
+	private static final int CLAN_OATH_BRIGANDINE = 7854;
+	private static final int CLAN_OATH_LEATHER_GLOVES_LIGHT_ARMOR = 7855;
+	private static final int CLAN_OATH_BOOTS_LIGHT_ARMOR = 7856;
+	private static final int CLAN_OATH_AKETON = 7857;
+	private static final int CLAN_OATH_PADDED_GLOVES_ROBE = 7858;
+	private static final int CLAN_OATH_SANDALS_ROBE = 7859;
+	// Monster
+	private static final int MAILLE_LIZARDMAN = 20919;
+	private static final int MAILLE_LIZARDMAN_SCOUT = 20920;
+	private static final int MAILLE_LIZARDMAN_GUARD = 20921;
+	private static final int KING_OF_THE_ARANEID = 20927;
+	// Misc
+	private static final int MIN_LEVEL = 19;
+	private static final int CRYSTAL_COUNT_1 = 922;
+	private static final int CRYSTAL_COUNT_2 = 771;
+	
+	public Q00118_ToLeadAndBeLed()
+	{
+		super(118, Q00118_ToLeadAndBeLed.class.getSimpleName(), "To Lead And Be Led");
+		addStartNpc(BLACKSMITH_PINTER);
+		addTalkId(BLACKSMITH_PINTER);
+		addKillId(MAILLE_LIZARDMAN, MAILLE_LIZARDMAN_SCOUT, MAILLE_LIZARDMAN_GUARD, KING_OF_THE_ARANEID);
+		registerQuestItems(LEG_OF_KING_ARANEID, BLOOD_OF_MAILLE_LIZARDMAN);
+	}
+	
+	@Override
+	public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
+	{
+		String htmltext = null;
+		// Manage Sponsor's quest events.
+		if (player.getApprentice() > 0)
+		{
+			final L2PcInstance apprentice = L2World.getInstance().getPlayer(player.getApprentice());
+			if (apprentice == null)
+			{
+				return htmltext;
+			}
+			
+			final QuestState q118 = apprentice.getQuestState(Q00118_ToLeadAndBeLed.class.getSimpleName());
+			switch (event)
+			{
+				case "sponsor":
+				{
+					if (!Util.checkIfInRange(1500, npc, apprentice, true))
+					{
+						htmltext = "30298-09.html";
+					}
+					else
+					{
+						if ((q118 == null) || (!q118.isMemoState(2) && !q118.isMemoState(3)))
+						{
+							htmltext = "30298-14.html";
+						}
+						else if (q118.isMemoState(2))
+						{
+							htmltext = "30298-08.html";
+						}
+						else if (q118.isMemoState(3))
+						{
+							htmltext = "30298-12.html";
+						}
+					}
+					break;
+				}
+				case "30298-10.html":
+				{
+					if (Util.checkIfInRange(1500, npc, apprentice, true) && (q118 != null) && q118.isMemoState(2))
+					{
+						switch (q118.getMemoStateEx(1))
+						{
+							case 1:
+							{
+								if (getQuestItemsCount(player, CRYSTAL_D) >= CRYSTAL_COUNT_1)
+								{
+									takeItems(player, CRYSTAL_D, CRYSTAL_COUNT_1);
+									q118.setMemoState(3);
+									q118.setCond(6, true);
+									htmltext = event;
+								}
+								else
+								{
+									htmltext = "30298-11.html";
+								}
+								break;
+							}
+							case 2:
+							case 3:
+							{
+								if (getQuestItemsCount(player, CRYSTAL_D) >= CRYSTAL_COUNT_2)
+								{
+									takeItems(player, CRYSTAL_D, CRYSTAL_COUNT_2);
+									q118.setMemoState(3);
+									q118.setCond(6, true);
+									htmltext = event;
+								}
+								else
+								{
+									htmltext = "30298-11a.html";
+								}
+								break;
+							}
+						}
+					}
+					break;
+				}
+			}
+			return htmltext;
+		}
+		
+		final QuestState qs = getQuestState(player, false);
+		if (qs == null)
+		{
+			return null;
+		}
+		
+		switch (event)
+		{
+			case "30298-03.htm":
+			{
+				if (qs.isCreated())
+				{
+					qs.startQuest();
+					qs.setMemoState(1);
+					htmltext = event;
+				}
+				break;
+			}
+			case "30298-05a.html":
+			case "30298-05b.html":
+			case "30298-05c.html":
+			case "30298-05g.html":
+			{
+				htmltext = event;
+				break;
+			}
+			case "30298-05d.html":
+			{
+				if (qs.isMemoState(1) && (getQuestItemsCount(player, BLOOD_OF_MAILLE_LIZARDMAN) >= 10))
+				{
+					takeItems(player, BLOOD_OF_MAILLE_LIZARDMAN, -1);
+					qs.setMemoState(2);
+					qs.setMemoStateEx(1, 1);
+					qs.setCond(3, true);
+					htmltext = event;
+				}
+				break;
+			}
+			case "30298-05e.html":
+			{
+				if (qs.isMemoState(1) && (getQuestItemsCount(player, BLOOD_OF_MAILLE_LIZARDMAN) >= 10))
+				{
+					takeItems(player, BLOOD_OF_MAILLE_LIZARDMAN, -1);
+					qs.setMemoState(2);
+					qs.setMemoStateEx(1, 2);
+					qs.setCond(4, true);
+					htmltext = event;
+				}
+				break;
+			}
+			case "30298-05f.html":
+			{
+				if (qs.isMemoState(1) && (getQuestItemsCount(player, BLOOD_OF_MAILLE_LIZARDMAN) >= 10))
+				{
+					takeItems(player, BLOOD_OF_MAILLE_LIZARDMAN, -1);
+					qs.setMemoState(2);
+					qs.setMemoStateEx(1, 3);
+					qs.setCond(5, true);
+					htmltext = event;
+				}
+				break;
+			}
+		}
+		return htmltext;
+	}
+	
+	@Override
+	public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
+	{
+		final QuestState qs = getQuestState(killer, false);
+		if ((qs != null) && qs.isStarted())
+		{
+			switch (npc.getId())
+			{
+				case MAILLE_LIZARDMAN:
+				case MAILLE_LIZARDMAN_SCOUT:
+				case MAILLE_LIZARDMAN_GUARD:
+				{
+					if (qs.isMemoState(1))
+					{
+						if (giveItemRandomly(killer, npc, BLOOD_OF_MAILLE_LIZARDMAN, 1, 10, 7, true))
+						{
+							qs.setCond(2);
+						}
+					}
+					break;
+				}
+				case KING_OF_THE_ARANEID:
+				{
+					if (qs.isMemoState(4))
+					{
+						if (killer.getSponsor() > 0)
+						{
+							final L2PcInstance c0 = L2World.getInstance().getPlayer(killer.getSponsor());
+							if ((c0 != null) && Util.checkIfInRange(1500, npc, c0, true))
+							{
+								if (giveItemRandomly(killer, npc, LEG_OF_KING_ARANEID, 1, 8, 7, true))
+								{
+									qs.setCond(8);
+								}
+							}
+						}
+					}
+					break;
+				}
+			}
+		}
+		return super.onKill(npc, killer, isSummon);
+	}
+	
+	@Override
+	public String onTalk(L2Npc npc, L2PcInstance player)
+	{
+		final QuestState qs = getQuestState(player, true);
+		final QuestState q123 = player.getQuestState(Q00123_TheLeaderAndTheFollower.class.getSimpleName());
+		String htmltext = getNoQuestMsg(player);
+		
+		switch (qs.getState())
+		{
+			case State.CREATED:
+			{
+				if ((q123 != null) && q123.isStarted())
+				{
+					htmltext = "30298-02b.html";
+				}
+				else if ((q123 != null) && q123.isCompleted())
+				{
+					htmltext = "30298-02a.htm";
+				}
+				else if ((player.getLevel() >= MIN_LEVEL) && (player.getPledgeType() == -1) && (player.getSponsor() > 0))
+				{
+					htmltext = "30298-01.htm";
+				}
+				else
+				{
+					htmltext = "30298-02.htm";
+				}
+				break;
+			}
+			case State.STARTED:
+			{
+				if (qs.isMemoState(1))
+				{
+					if (getQuestItemsCount(player, BLOOD_OF_MAILLE_LIZARDMAN) < 10)
+					{
+						htmltext = "30298-04.html";
+					}
+					else
+					{
+						htmltext = "30298-05.html";
+					}
+				}
+				else if (qs.isMemoState(2))
+				{
+					if (player.getSponsor() == 0)
+					{
+						if (qs.getMemoStateEx(1) == 1)
+						{
+							htmltext = "30298-06a.html";
+						}
+						else if (qs.getMemoStateEx(1) == 2)
+						{
+							htmltext = "30298-06b.html";
+						}
+						else if (qs.getMemoStateEx(1) == 3)
+						{
+							htmltext = "30298-06c.html";
+						}
+					}
+					else
+					{
+						final L2PcInstance c0 = L2World.getInstance().getPlayer(player.getSponsor());
+						if ((c0 != null) && Util.checkIfInRange(1500, npc, c0, true))
+						{
+							htmltext = "30298-07.html";
+						}
+						else
+						{
+							if (qs.getMemoStateEx(1) == 1)
+							{
+								htmltext = "30298-06.html";
+							}
+							else if (qs.getMemoStateEx(1) == 2)
+							{
+								htmltext = "30298-06d.html";
+							}
+							else if (qs.getMemoStateEx(1) == 3)
+							{
+								htmltext = "30298-06e.html";
+							}
+						}
+					}
+				}
+				else if (qs.isMemoState(3))
+				{
+					qs.setMemoState(4);
+					qs.setCond(7, true);
+					htmltext = "30298-15.html";
+				}
+				else if (qs.isMemoState(4))
+				{
+					if (getQuestItemsCount(player, LEG_OF_KING_ARANEID) < 8)
+					{
+						htmltext = "30298-16.html";
+					}
+					else
+					{
+						if (qs.getMemoStateEx(1) == 1)
+						{
+							giveItems(player, CLAN_OATH_HELM, 1);
+							giveItems(player, CLAN_OATH_ARMOR, 1);
+							giveItems(player, CLAN_OATH_GAUNTLETS_HEAVY_ARMOR, 1);
+							giveItems(player, CLAN_OATH_SABATON_HEAVY_ARMOR, 1);
+							takeItems(player, LEG_OF_KING_ARANEID, -1);
+						}
+						else if (qs.getMemoStateEx(1) == 2)
+						{
+							giveItems(player, CLAN_OATH_HELM, 1);
+							giveItems(player, CLAN_OATH_BRIGANDINE, 1);
+							giveItems(player, CLAN_OATH_LEATHER_GLOVES_LIGHT_ARMOR, 1);
+							giveItems(player, CLAN_OATH_BOOTS_LIGHT_ARMOR, 1);
+							takeItems(player, LEG_OF_KING_ARANEID, -1);
+						}
+						else if (qs.getMemoStateEx(1) == 3)
+						{
+							giveItems(player, CLAN_OATH_HELM, 1);
+							giveItems(player, CLAN_OATH_AKETON, 1);
+							giveItems(player, CLAN_OATH_PADDED_GLOVES_ROBE, 1);
+							giveItems(player, CLAN_OATH_SANDALS_ROBE, 1);
+							takeItems(player, LEG_OF_KING_ARANEID, -1);
+						}
+						qs.exitQuest(false, true);
+						htmltext = "30298-17.html";
+					}
+				}
+				break;
+			}
+			case State.COMPLETED:
+			{
+				htmltext = getAlreadyCompletedMsg(player);
+				break;
+			}
+		}
+		return htmltext;
+	}
+}

+ 2 - 0
L2J_DataPack/dist/game/data/scripts/quests/QuestMasterHandler.java

@@ -131,6 +131,7 @@ import quests.Q00114_ResurrectionOfAnOldManager.Q00114_ResurrectionOfAnOldManage
 import quests.Q00115_TheOtherSideOfTruth.Q00115_TheOtherSideOfTruth;
 import quests.Q00116_BeyondTheHillsOfWinter.Q00116_BeyondTheHillsOfWinter;
 import quests.Q00117_TheOceanOfDistantStars.Q00117_TheOceanOfDistantStars;
+import quests.Q00118_ToLeadAndBeLed.Q00118_ToLeadAndBeLed;
 import quests.Q00119_LastImperialPrince.Q00119_LastImperialPrince;
 import quests.Q00120_PavelsLastResearch.Q00120_PavelsLastResearch;
 import quests.Q00121_PavelTheGiant.Q00121_PavelTheGiant;
@@ -601,6 +602,7 @@ public class QuestMasterHandler
 		Q00115_TheOtherSideOfTruth.class,
 		Q00116_BeyondTheHillsOfWinter.class,
 		Q00117_TheOceanOfDistantStars.class,
+		Q00118_ToLeadAndBeLed.class,
 		Q00119_LastImperialPrince.class,
 		Q00120_PavelsLastResearch.class,
 		Q00121_PavelTheGiant.class,

+ 1 - 0
L2J_DataPack/dist/sql/game/updates/20150222update.sql

@@ -0,0 +1 @@
+UPDATE character_quests SET name='Q00118_ToLeadAndBeLed' WHERE name='118_ToLeadAndBeLed';