From cb6c1c8b0b865a20d1f3e1673419305f0f00d911 Mon Sep 17 00:00:00 2001 From: ivantotov <gmtotov@gmail.com> Date: Mon, 9 Nov 2020 23:41:31 +0200 Subject: [PATCH] Quest Path To Becoming A Lord - Gludio (708) --- .gitignore | 3 +- .../30298-01.html | 4 + .../30298-02.html | 3 + .../30298-03.html | 4 + .../30298-03a.html | 4 + .../30298-04.html | 6 + .../30298-05.html | 4 + .../30298-06.html | 4 + .../30298-07.html | 4 + .../30298-08.html | 4 + .../30298-09.html | 4 + .../30298-10.html | 3 + .../30298-11.html | 4 + .../30298-12.html | 3 + .../30298-13.html | 4 + .../30332-01.html | 5 + .../30332-02.html | 5 + .../30332-03.html | 3 + .../30332-04.html | 5 + .../30332-05.html | 3 + .../30332-06.html | 3 + .../35100-01.htm | 4 + .../35100-02.htm | 4 + .../35100-03.htm | 3 + .../35100-04.htm | 3 + .../35100-05.html | 3 + .../35100-06.html | 4 + .../35100-07.html | 4 + .../35100-08.html | 3 + .../35100-09.html | 4 + .../35100-10.html | 4 + .../35100-11.html | 4 + .../35100-12.html | 3 + .../35100-13.htm | 3 + .../35100-13a.html | 3 + .../35100-14.html | 3 + .../35100-15.html | 3 + .../35100-16.html | 4 + .../35100-17.html | 3 + .../35100-18.html | 3 + .../35100-19.html | 4 + .../35100-20.html | 3 + .../35100-21.html | 3 + .../35100-22.html | 4 + .../35100-22a.html | 4 + .../35100-22b.html | 4 + .../35100-23.html | 4 + .../Q00708_PathToBecomingALordGludio.java | 453 ++++++++++++++++++ .../datapack/quests/QuestLoader.java | 2 + 49 files changed, 626 insertions(+), 2 deletions(-) create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-01.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-02.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-03.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-03a.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-04.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-05.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-06.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-07.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-08.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-09.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-10.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-11.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-12.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-13.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-01.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-02.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-03.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-04.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-05.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-06.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-01.htm create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-02.htm create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-03.htm create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-04.htm create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-05.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-06.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-07.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-08.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-09.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-10.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-11.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-12.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-13.htm create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-13a.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-14.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-15.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-16.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-17.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-18.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-19.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-20.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-21.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-22.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-22a.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-22b.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-23.html create mode 100644 src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/Q00708_PathToBecomingALordGludio.java diff --git a/.gitignore b/.gitignore index 4163e99456..a1a88e2c5c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,4 @@ *.iml /target/ logs/ -test-output/ -src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/ \ No newline at end of file +test-output/ \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-01.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-01.html new file mode 100644 index 0000000000..ecfb418e31 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-01.html @@ -0,0 +1,4 @@ +<html><body>Blacksmith Pinter:<br> +Aren't you a member of the Gludio Castle Clan? What brings you here? I'm very busy, so unless it's important, leave me alone!<br> +(You can continue only if the castle lord is logged on.) +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-02.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-02.html new file mode 100644 index 0000000000..8a4b83f42b --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-02.html @@ -0,0 +1,3 @@ +<html><body>Blacksmith Pinter:<br> +Aren't you a member of the Gludio Castle Clan? What brings you here? I'm very busy, so unless it's important, leave me alone! +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-03.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-03.html new file mode 100644 index 0000000000..6992e2b473 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-03.html @@ -0,0 +1,4 @@ +<html><body>Blacksmith Pinter:<br> +Aren't you a member of the Gludio Castle Clan? What brings you here? I'm very busy, so unless it's important, leave me alone!<br> +<a action="bypass -h Quest Q00708_PathToBecomingALordGludio 30298-04.html">"I've come to solve your problem."</a> +</body></html> diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-03a.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-03a.html new file mode 100644 index 0000000000..c578bd53b8 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-03a.html @@ -0,0 +1,4 @@ +<html><body>Blacksmith Pinter:<br> +Aren't you a member of the Gludio Castle Clan? What brings you here? I'm very busy, so unless it's important, leave me alone!<br> +(This quest may only be undertaken by castle clan members designated as stewards.) +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-04.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-04.html new file mode 100644 index 0000000000..c261b0536d --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-04.html @@ -0,0 +1,6 @@ +<html><body>Blacksmith Pinter:<br> +Ha ha ha! You want to help us?<br> +You do know the current situation of Gludio Territory, right? Destruction is everywhere; a great deal is needed if we are to rebuild.<br> +Oh, I'm sure you already know all -- what did you have in mind?<br> +<a action="bypass -h Quest Q00708_PathToBecomingALordGludio 30298-05.html">"We've come to do whatever we can to help you."</a> +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-05.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-05.html new file mode 100644 index 0000000000..77649f0d92 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-05.html @@ -0,0 +1,4 @@ +<html><body>Blacksmith Pinter:<br> +Well, I like your can-do attitude! We'll gladly accept your help. We were supposed to received some construction materials, but they are long overdue. Something must have happened. We must find out what's happened, but I can't spare anyone to investigate. Most importantly, we need to resolve this problem quickly. Can you obtain the materials we need for our work? Then find out what happened to the materials that were supposed to arrive from Gludin.<br> +We need 100 pieces of leather, 100 polishers, 100 iron ores and 50 cokes. Will you help us? There's no time to waste! +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-06.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-06.html new file mode 100644 index 0000000000..9739e93874 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-06.html @@ -0,0 +1,4 @@ +<html><body>Blacksmith Pinter:<br> +I like your can-do attitude! But do you really think your lord will allow this?<br> +(You can proceed only if the lord is in the game.) +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-07.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-07.html new file mode 100644 index 0000000000..e0e981a01a --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-07.html @@ -0,0 +1,4 @@ +<html><body>Blacksmith Pinter:<br> +What are you doing? Unless you supply us with materials, the reconstruction work will have to stop. We are relying on you. Don't let us down!<br> +You do know what's needed, right? The materials that we need now are <font color="LEVEL">100 pieces of animal skin, 100 varnish, 100 iron ore, and 50 cokes</font>. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-08.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-08.html new file mode 100644 index 0000000000..49998bc9d8 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-08.html @@ -0,0 +1,4 @@ +<html><body>Blacksmith Pinter:<br> +Were you able to obtain the materials that I requested? If so, please give them to me. Our work cannot be halted even for a single day.<br> +<a action="bypass -h Quest Q00708_PathToBecomingALordGludio 30298-09.html">Give him the materials.</a> +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-09.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-09.html new file mode 100644 index 0000000000..0a5bf64e6c --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-09.html @@ -0,0 +1,4 @@ +<html><body>Blacksmith Pinter:<br> +These materials will last us for a while. Thank you! We will never forget what you have done for us here. You have the makings of a wise ruler, in fact. Are you perhaps interested in working for our territory?<br> +No? Well then, I must return to my work and let you go back to yours. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-10.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-10.html new file mode 100644 index 0000000000..3869e84d98 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-10.html @@ -0,0 +1,3 @@ +<html><body>Blacksmith Pinter:<br> +Where are the materials I asked you for? Please obtain them quickly! +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-11.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-11.html new file mode 100644 index 0000000000..3e03637696 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-11.html @@ -0,0 +1,4 @@ +<html><body>Blacksmith Pinter:<br> +Did you get permission from your lord for this mission? Sorry to doubt you, but I need to be sure for both our sakes.<br> +(You can proceed only if the lord is in the game.) +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-12.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-12.html new file mode 100644 index 0000000000..4d36251578 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-12.html @@ -0,0 +1,3 @@ +<html><body>Blacksmith Pinter:<br> +Thanks to you, our reconstruction work went smoothly. Thank you, my friend! +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-13.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-13.html new file mode 100644 index 0000000000..1275b0146e --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30298-13.html @@ -0,0 +1,4 @@ +<html><body>Blacksmith Pinter:<br> +Why has someone like you come looking for someone like me?<br> +(Only stewards designated by the lord may undertake this quest.) +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-01.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-01.html new file mode 100644 index 0000000000..5d388b9d8b --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-01.html @@ -0,0 +1,5 @@ +<html><body>Captain Bathis:<br> +Welcome, my lord. At the chamberlain's behest, we investigated the caravan's disappearance. We discovered that it went missing somewhere in the Relics of Sorrow.<br> +We also heard rumors of a headless knight attacking passing merchants...<br> +<a action="bypass -h Quest Q00708_PathToBecomingALordGludio 30332-02.html">"A headless knight in Gludio?! How can that be?"</a> +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-02.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-02.html new file mode 100644 index 0000000000..58e3f0df00 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-02.html @@ -0,0 +1,5 @@ +<html><body>Captain Bathis:<br> +I agree, my lord, but I spoke to several merchants who survived the attack. Their testimony all agreed: it was a headless knight. Perhaps the spirits of restless noblemen who perished in the war with Gracia now haunt that area.<br> +You must confirm this phenomenon for yourself. I learned that the <font color="LEVEL">headless knight appeared after the Skulls appeared in the Relics</font>. They must be connected!<br> +If you go and slay the Skulls, perhaps the knight will appear... +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-03.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-03.html new file mode 100644 index 0000000000..2cc8e37714 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-03.html @@ -0,0 +1,3 @@ +<html><body>Captain Bathis:<br> +Once you have confirmed that the streets of Gludin Village and the Town of Gludio are safe, I am sure our subjects will breathe a sigh of relief. As our lord, it is your duty to do this for us! +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-04.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-04.html new file mode 100644 index 0000000000..a7987e6d6e --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-04.html @@ -0,0 +1,5 @@ +<html><body>Captain Bathis:<br> +Lord, has a headless knight appeared?<br> +But that armor...<br> +<a action="bypass -h Quest Q00708_PathToBecomingALordGludio 30332-05.html">>"It was a little difficult, but I took care of it. Our territory is safe now."</a> +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-05.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-05.html new file mode 100644 index 0000000000..61f1fd8d86 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-05.html @@ -0,0 +1,3 @@ +<html><body>Captain Bathis:<br> +I expected no less from you, my lord! I will inform your subjects of your victory! They will not soon forget your bravery in this matter. It is my honor to serve so noble a ruler. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-06.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-06.html new file mode 100644 index 0000000000..84b2ba4d1a --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/30332-06.html @@ -0,0 +1,3 @@ +<html><body>Captain Bathis:<br> +I will not forget your noble actions, my lord. My sword will always be at your service! +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-01.htm b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-01.htm new file mode 100644 index 0000000000..ece7b04bb8 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-01.htm @@ -0,0 +1,4 @@ +<html><body>Chamberlain Saius:<br> +My lord, Gludio may be a barren land, but it deserves a noble ruler. Its people want only a wise lord who will govern well.<br> +<a action="bypass -h Quest Q00708_PathToBecomingALordGludio 35100-02.htm">"Do you think I can be that ruler?"</a> +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-02.htm b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-02.htm new file mode 100644 index 0000000000..dcfabdaaab --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-02.htm @@ -0,0 +1,4 @@ +<html><body>Chamberlain Saius:<br> +I believe you have the necessary character, my lord. But despite your good character, remember that you asserted your claim by force. To become the true lord of this territory, recognized by all, there is still something you must do.<br> +<a action="bypass -h Quest Q00708_PathToBecomingALordGludio ACCEPT">"What is it?"</a> +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-03.htm b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-03.htm new file mode 100644 index 0000000000..0492b23fe1 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-03.htm @@ -0,0 +1,3 @@ +<html><body>Chamberlain Saius:<br> +Congratulations on your ascension to the lordship. I trust you will rule wisely and well. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-04.htm b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-04.htm new file mode 100644 index 0000000000..fd0184ed46 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-04.htm @@ -0,0 +1,3 @@ +<html><body>Chamberlain Saius:<br> +You must win the support of the local forces in this land. If you can do so, the stability of your reign will be assured. I will arrange a meeting with them. There you must do your best to impress them. Please wait while I make the preparations, my lord. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-05.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-05.html new file mode 100644 index 0000000000..863e0ef7bb --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-05.html @@ -0,0 +1,3 @@ +<html><body>Chamberlain Saius:<br> +I have been unable to confirm a meeting time. Please be patient, my lord. I will redouble my efforts! +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-06.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-06.html new file mode 100644 index 0000000000..f447e02222 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-06.html @@ -0,0 +1,4 @@ +<html><body>Chamberlain Saius:<br> +Our efforts to repair the devastation caused by the war with Gracia depend on the Dwarven builders who belong to Grey Column Guild. They have become quite influential here in Gludio as a result. If you can win their support, you will be able to rule the territory with an easy conscience. As luck would have it, I hear the Grey Column Dwarves have a problem...<br> +<a action="bypass -h Quest Q00708_PathToBecomingALordGludio 35100-08.html">"Perhaps I can offer my help."</a> +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-07.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-07.html new file mode 100644 index 0000000000..f447e02222 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-07.html @@ -0,0 +1,4 @@ +<html><body>Chamberlain Saius:<br> +Our efforts to repair the devastation caused by the war with Gracia depend on the Dwarven builders who belong to Grey Column Guild. They have become quite influential here in Gludio as a result. If you can win their support, you will be able to rule the territory with an easy conscience. As luck would have it, I hear the Grey Column Dwarves have a problem...<br> +<a action="bypass -h Quest Q00708_PathToBecomingALordGludio 35100-08.html">"Perhaps I can offer my help."</a> +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-08.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-08.html new file mode 100644 index 0000000000..d83bf5fa03 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-08.html @@ -0,0 +1,3 @@ +<html><body>Chamberlain Saius:<br> +An excellent idea, my lord! Their leader is <font color="LEVEL">Blacksmith Pinter of the Town of Gludio</font>. I'm sure he would be grateful for any assistance you can offer. In fact, you need not do it yourself. You can appoint a trusted agent to act on your behalf in this matter. Simply let me know <font color="LEVEL">whom you have chosen to Raffortysent you</font>. If he agrees and you verify his identity, I will tell him what he needs to know. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-09.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-09.html new file mode 100644 index 0000000000..b702785a2a --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-09.html @@ -0,0 +1,4 @@ +<html><body>Chamberlain Saius:<br> +Hey! Are you looking for trouble? How dare you covet the lord's position? Go away before I loose the dogs on you!<br> +(Only the lord of Gludio Castle may undertake this quest.) +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-10.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-10.html new file mode 100644 index 0000000000..c2c8dea7b0 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-10.html @@ -0,0 +1,4 @@ +<html><body>Chamberlain Saius:<br> +How do I know that you are the one whom the lord has selected as his agent? Bring him at once to verify your identity!<br> +(You may proceed only if the lord of Gludio Castle is next to you.) +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-11.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-11.html new file mode 100644 index 0000000000..73ae176333 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-11.html @@ -0,0 +1,4 @@ +<html><body>Chamberlain Saius:<br> +Are you the one who will meet with Blacksmith Pinter on our lord's behalf?<br> +<a action="bypass -h Quest Q00708_PathToBecomingALordGludio 35100-12.html">Say yes.</a> +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-12.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-12.html new file mode 100644 index 0000000000..fb3372e1da --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-12.html @@ -0,0 +1,3 @@ +<html><body>Chamberlain Saius:<br> +%name%, your mission is to help <font color="LEVEL">Blacksmith Pinter</font> of the Town of Gludio and win his support for our lord. We are trusting you to act wisely in this matter. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-13.htm b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-13.htm new file mode 100644 index 0000000000..fd55594c3e --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-13.htm @@ -0,0 +1,3 @@ +<html><body>Chamberlain Saius:<br> +Where did the lord go? I cannot give you the details of this mission without first verifying that you are the one whom he selected. Bring him here now. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-13a.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-13a.html new file mode 100644 index 0000000000..dbdcbc2ebc --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-13a.html @@ -0,0 +1,3 @@ +<html><body>Chamberlain Saius:<br> +What are you doing? Find <font color="LEVEL">Blacksmith Pinter</font> and help him immediately! +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-14.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-14.html new file mode 100644 index 0000000000..7243f2e6fd --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-14.html @@ -0,0 +1,3 @@ +<html><body>Chamberlain Saius:<br> +My lord, who will be your agent in this matter, acting on your behalf? Please send him to me. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-15.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-15.html new file mode 100644 index 0000000000..70f95bf739 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-15.html @@ -0,0 +1,3 @@ +<html><body>Chamberlain Saius:<br> +Your agent has met <font color="LEVEL">Blacksmith Pinter</font> and appears to have things well in hand, my lord. We must trust him and await his report. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-16.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-16.html new file mode 100644 index 0000000000..71ddaec514 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-16.html @@ -0,0 +1,4 @@ +<html><body>Chamberlain Saius:<br> +I have been contacted by your representative, my lord. He says that we must determine the whereabouts of some freight Pinter and his men require for their reconstruction work, and then deliver it to them.<br> +I have already asked <font color="LEVEL">Captain Bathis</font> to look into the matter -- may I suggest that you and your followers locate alternate materials? Your personal involvement will make a powerful statement. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-17.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-17.html new file mode 100644 index 0000000000..dc885c29d9 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-17.html @@ -0,0 +1,3 @@ +<html><body>Chamberlain Saius:<br> +I heard that you sent the material requested by Pinter. Well done, my lord! But unless we resolve the problem of transportation, I fear it will only be a stop-gap measure. <font color="LEVEL">Captain Bathis</font> is investigating the missing freight. I suggest you ask him what he has learned. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-18.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-18.html new file mode 100644 index 0000000000..64d1e0a6e5 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-18.html @@ -0,0 +1,3 @@ +<html><body>Chamberlain Saius:<br> +<font color="LEVEL">Captain Bathis</font> is investigating the matter of the missing freight. I suggest you ask him what he has learned. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-19.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-19.html new file mode 100644 index 0000000000..3b52417a23 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-19.html @@ -0,0 +1,4 @@ +<html><body>Chamberlain Saius:<br> +I heard that you sent the commodities requested by Pinter. Well done, my lord! But unless we resolve the problem of the freight, I fear it will only be a stop-gap measure.<br> +This headless knight mentioned by <font color="LEVEL">Captain Bathis</font> bothers me. Might I suggest that you personally confirm his existence? Only then will we be able to guarantee the safety of the road from Gludin Village to the Town of Gludio. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-20.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-20.html new file mode 100644 index 0000000000..1860f704e2 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-20.html @@ -0,0 +1,3 @@ +<html><body>Chamberlain Saius:<br> +This headless knight mentioned by <font color="LEVEL">Captain Bathis</font> bothers me. Might I suggest that you personally confirm his existence? Only then will we be able guarantee the safety of the road from Gludin Village to the Town of Gludio. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-21.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-21.html new file mode 100644 index 0000000000..508bec381e --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-21.html @@ -0,0 +1,3 @@ +<html><body>Chamberlain Saius:<br> +Now that you have defeated the headless knights, we will not have any problems transporting the freight. Well done, my lord! The only thing remaining is to quickly provide <font color="LEVEL">Pinter with the supplies he requested</font>. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-22.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-22.html new file mode 100644 index 0000000000..e3c39e88c1 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-22.html @@ -0,0 +1,4 @@ +<html><body>Chamberlain Saius:<br> +Now that Pinter and his men have the supplies they needed and the headless knight and his gang have been vanquished, I doubt we will have any further problems. Well done, my lord! Your popularity is soaring among the people of Gludio! Will you accept their wishes and formally become their lord?<br> +<a action="bypass -h Quest Q00708_PathToBecomingALordGludio 35100-23.html">"I will do so, since it is the will of the people."</a> +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-22a.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-22a.html new file mode 100644 index 0000000000..9c0201da6f --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-22a.html @@ -0,0 +1,4 @@ +<html><body>Chamberlain Saius:<br> +I believe you should temporarily delay your plans to become lord. There are more immediate concerns you must attend to.<br> +(The quest cannot be completed during a territory war or castle siege.) +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-22b.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-22b.html new file mode 100644 index 0000000000..9ecc70a609 --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-22b.html @@ -0,0 +1,4 @@ +<html><body>Chamberlain Saius:<br> +This territory must be stable before you can become lord. I urge you to conclude alliances with nearby fortresses.<br> +(You cannot become lord when a fortress is in an independent status.) +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-23.html b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-23.html new file mode 100644 index 0000000000..24ee0668aa --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/35100-23.html @@ -0,0 +1,4 @@ +<html><body>Chamberlain Saius:<br> +Understood, my lord!<br> +I look forward to your wise and benevolent rule. +</body></html> \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/Q00708_PathToBecomingALordGludio.java b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/Q00708_PathToBecomingALordGludio.java new file mode 100644 index 0000000000..f500b7065f --- /dev/null +++ b/src/main/java/com/l2jserver/datapack/quests/Q00708_PathToBecomingALordGludio/Q00708_PathToBecomingALordGludio.java @@ -0,0 +1,453 @@ +/* + * Copyright © 2004-2020 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 com.l2jserver.datapack.quests.Q00708_PathToBecomingALordGludio; + +import static com.l2jserver.gameserver.ai.CtrlIntention.AI_INTENTION_ATTACK; +import static com.l2jserver.gameserver.enums.audio.Sound.ITEMSOUND_QUEST_FINISH; +import static com.l2jserver.gameserver.enums.audio.Sound.ITEMSOUND_QUEST_MIDDLE; +import static com.l2jserver.gameserver.network.NpcStringId.DOES_MY_MISSION_TO_BLOCK_THE_SUPPLIES_END_HERE; +import static com.l2jserver.gameserver.network.NpcStringId.GO_FIND_SAIUS; +import static com.l2jserver.gameserver.network.NpcStringId.HAVE_YOU_COMPLETED_YOUR_PREPARATIONS_TO_BECOME_A_LORD; +import static com.l2jserver.gameserver.network.NpcStringId.LISTEN_YOU_VILLAGERS_OUR_LIEGE_WHO_WILL_SOON_BECOME_A_LORD_HAS_DEFEATED_THE_HEADLESS_KNIGHT_YOU_CAN_NOW_REST_EASY; +import static com.l2jserver.gameserver.network.NpcStringId.S1_DO_YOU_DARE_DEFY_MY_SUBORDINATES; +import static com.l2jserver.gameserver.network.NpcStringId.S1_HAS_BECOME_LORD_OF_THE_TOWN_OF_GLUDIO_LONG_MAY_HE_REIGN; +import static com.l2jserver.gameserver.network.NpcStringId.S1_NOW_DEPART; +import static com.l2jserver.gameserver.network.clientpackets.Say2.NPC_ALL; +import static com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage.NORMAL_SIZE; +import static com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage.TOP_CENTER; + +import com.l2jserver.gameserver.instancemanager.FortManager; +import com.l2jserver.gameserver.instancemanager.TerritoryWarManager; +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.network.serverpackets.NpcSay; +import com.l2jserver.gameserver.util.Util; + +/** + * Path To Becoming A Lord - Gludio (708) + * @author IvanTotov + * @author Zoey76 + */ +public final class Q00708_PathToBecomingALordGludio extends Quest { + + // NPCs + private static final int PINTER = 30298; + private static final int BATHIS = 30332; + private static final int SAYRES = 35100; + // Items + private static final int VARNISH = 1865; + private static final int ANIMAL_SKIN = 1867; + private static final int IRON_ORE = 1869; + private static final int COKES = 1879; + private static final int HEADLESS_ARMOR = 13848; + // Monsters + private static final int HEADLESS_KNIGHT = 27393; + private static final int[] CASTLE_RUINS = { + 20035, // Skeleton Tracker + 20042, // Skeleton Tracker Leader + 20045, // Skeleton Scout + 20051, // Skeleton Bowman + 20054, // Ruin Spartoi + 20060, // Raging Spartoi + 20514, // Shield Skeleton + 20515, // Skeleton Infantryman + HEADLESS_KNIGHT + }; + // Dominion + private static final int GLUDIO_ID = 81; + private static final int SHANTY = 101; + private static final int SOUTHERN = 102; + // Misc + private static final int MIN_TIME = 60000; + + public Q00708_PathToBecomingALordGludio() { + super(708, Q00708_PathToBecomingALordGludio.class.getSimpleName(), "Path To Becoming A Lord - Gludio"); + addStartNpc(SAYRES); + addTalkId(SAYRES, PINTER, BATHIS); + registerQuestItems(HEADLESS_ARMOR); + addKillId(CASTLE_RUINS); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { + final QuestState qs = getQuestState(player, false); + if (qs == null) { + return null; + } + + String htmltext = null; + switch (event) { + case "ACCEPT": { + if (qs.isCreated() && npc.isMyLord(player) && (npc.getCastle().getResidenceId() == GLUDIO_ID)) { + qs.startQuest(); + playSound(player, ITEMSOUND_QUEST_MIDDLE); + qs.setMemoState(1); + qs.setMemoStateEx(1, System.currentTimeMillis()); + qs.setFlagJournal(1); + startQuestTimer("70801", 60000, npc, player); + htmltext = "35100-04.htm"; + } + break; + } + case "70801": { + npc.broadcastPacket(new NpcSay(npc, NPC_ALL, HAVE_YOU_COMPLETED_YOUR_PREPARATIONS_TO_BECOME_A_LORD)); + break; + } + case "35100-02.htm": { + if (qs.hasMemoState() && npc.isMyLord(player) && !npc.isDominionOfLord(GLUDIO_ID)) { + htmltext = event; + } + break; + } + case "35100-08.html": { + if (qs.hasMemoState() && (qs.getMemoState() == 2) && !npc.isDominionOfLord(GLUDIO_ID)) { + qs.setMemoState(3); + qs.setFlagJournal(2); + qs.playSound(ITEMSOUND_QUEST_MIDDLE); + htmltext = event; + } + break; + } + case "35100-12.html": { + final var qsLeader = getClanLeaderQuestState(player); + if ((qsLeader != null) && (npc.calculateDistance(qsLeader.getPlayer(), false, false) <= 1500) && qsLeader.hasMemoState() && // + qsLeader.isMemoState(3) && (npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0)) { + npc.broadcastPacket(new NpcSay(npc, NPC_ALL, S1_NOW_DEPART).addStringParameter(player.getName())); + qsLeader.setMemoState(4); + qsLeader.setFlagJournal(3); + qsLeader.showQuestionMark(getId()); + qsLeader.playSound(ITEMSOUND_QUEST_MIDDLE); + qsLeader.setMemoStateEx(1, player.getObjectId()); + htmltext = getHtm(player.getHtmlPrefix(), event).replace("%name%", player.getName()); + } else { + htmltext = "35100-13.html"; + } + break; + } + case "35100-23.html": { + if (qs.hasMemoState() && qs.isMemoState(49)) { + if ((qs.getDominionWarState(GLUDIO_ID) != 5) && npc.isMyLord(player)) { + npc.broadcastPacket(new NpcSay(npc, NPC_ALL, S1_HAS_BECOME_LORD_OF_THE_TOWN_OF_GLUDIO_LONG_MAY_HE_REIGN).addStringParameter(player.getName())); + TerritoryWarManager.getInstance().declareLord(GLUDIO_ID, player); + qs.removeMemo(); + qs.playSound(ITEMSOUND_QUEST_FINISH); + htmltext = event; + } + } + break; + } + case "30298-04.html": { + final var qsLeader = getClanLeaderQuestState(player); + if (qsLeader != null) { + if (qsLeader.hasMemoState() && (qsLeader.getMemoState() == 4)) { + htmltext = event; + } + } + break; + } + case "30298-05.html": { + final var qsLeader = getClanLeaderQuestState(player); + if (qsLeader != null) { + if (qsLeader.hasMemoState() && (qsLeader.getMemoState() == 4)) { + showOnScreenMsgFStr(player, TOP_CENTER, 0, NORMAL_SIZE, 0, 1, false, 5000, false, GO_FIND_SAIUS); + qs.setMemoState(5); + qs.setMemoStateEx(1, 0); + qs.setFlagJournal(4); + qs.playSound(ITEMSOUND_QUEST_MIDDLE); + htmltext = event; + } + } else { + htmltext = "30298-06.html"; + } + break; + } + case "30298-09.html": { + final var qsLeader = getClanLeaderQuestState(player); + if (qsLeader != null) { + if (qsLeader.hasMemoState() && ((qsLeader.getMemoState() % 10) == 5)) { + final int i0 = (qs.getMemoState() / 10); + if ((getQuestItemsCount(player, ANIMAL_SKIN) >= 100) && (getQuestItemsCount(player, VARNISH) >= 100) && // + (getQuestItemsCount(player, IRON_ORE) >= 100) && (getQuestItemsCount(player, COKES) >= 50)) { + takeItems(player, ANIMAL_SKIN, -100); + takeItems(player, VARNISH, -100); + takeItems(player, IRON_ORE, -100); + takeItems(player, COKES, -50); + qs.setMemoState(9 + i0 * 10); + htmltext = event; + } else { + htmltext = "30298-10.html"; + } + } + } else { + htmltext = "30298-11.html"; + } + break; + } + case "30332-02.html": { + if ((qs.getMemoState() / 10) == 1) { + final int i0 = qs.getMemoState(); + qs.setMemoState(i0 + 10); + qs.setFlagJournal(6); + qs.playSound(ITEMSOUND_QUEST_MIDDLE); + htmltext = event; + } + break; + } + case "30332-05.html": { + if ((qs.getMemoState() / 10) == 3) { + if ((qs.getMemoState() % 10) == 9) { + takeItems(player, HEADLESS_ARMOR, -1); + final int i0 = qs.getMemoState(); + qs.setMemoState(i0 + 10); + qs.setFlagJournal(9); + qs.playSound(ITEMSOUND_QUEST_MIDDLE); + htmltext = event; + } else { + takeItems(player, HEADLESS_ARMOR, -1); + final int i0 = qs.getMemoState(); + qs.setMemoState(i0 + 10); + qs.setFlagJournal(8); + qs.playSound(ITEMSOUND_QUEST_MIDDLE); + htmltext = "30332-05.html"; + } + npc.broadcastPacket(new NpcSay(npc, NPC_ALL, LISTEN_YOU_VILLAGERS_OUR_LIEGE_WHO_WILL_SOON_BECOME_A_LORD_HAS_DEFEATED_THE_HEADLESS_KNIGHT_YOU_CAN_NOW_REST_EASY)); + } + break; + } + } + return htmltext; + } + + @Override + public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon) { + final var target = killer.isInParty() ? killer.getParty().getRandomPlayer() : killer; + final var qs = target.getQuestState(getName()); + if ((qs != null) && Util.checkIfInRange(1500, npc, target, true)) { + final var clan = target.getClan(); + if (clan != null) { + final var clanLeader = clan.getLeader(); + if (clanLeader != null) { + final var leader = clanLeader.getPlayerInstance(); + if (leader != null) { + final var questStateLeader = leader.getQuestState(getName()); + if ((questStateLeader != null) && ((questStateLeader.getMemoState() / 10) == 2)) { + if (npc.getId() == HEADLESS_KNIGHT) { + if (Util.checkIfInRange(1500, npc, leader, true)) { + giveItems(leader, HEADLESS_ARMOR, 1); + questStateLeader.setMemoState(questStateLeader.getMemoState() + 10); + questStateLeader.setFlagJournal(7); + questStateLeader.showQuestionMark(getId()); + playSound(leader, ITEMSOUND_QUEST_MIDDLE); + npc.broadcastPacket(new NpcSay(npc, NPC_ALL, DOES_MY_MISSION_TO_BLOCK_THE_SUPPLIES_END_HERE)); + } + } else { + if (getRandom(100) < questStateLeader.getMemoStateEx(1)) { + final L2Npc headlessKnight = addSpawn(HEADLESS_KNIGHT, npc.getLocation(), false, 0); + headlessKnight.setScriptValue(target.getObjectId()); + headlessKnight.getAI().setIntention(AI_INTENTION_ATTACK, target); + } else { + questStateLeader.setMemoStateEx(1, questStateLeader.getMemoStateEx(1) + 1); + } + } + } + } + } + } + } + return super.onKill(npc, killer, isSummon); + } + + @Override + public String onSpawn(L2Npc npc) { + if (npc.getId() == HEADLESS_KNIGHT) { + final var target = L2World.getInstance().getPlayer(npc.getScriptValue()); + if (target != null) { + final var message = new NpcSay(npc, NPC_ALL, S1_DO_YOU_DARE_DEFY_MY_SUBORDINATES); + message.addStringParameter(target.getName()); + npc.broadcastPacket(message); + } + } + return super.onSpawn(npc); + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) { + final QuestState qs = getQuestState(player, true); + String htmltext = getNoQuestMsg(player); + switch (qs.getState()) { + case State.CREATED: { + switch (npc.getId()) { + case SAYRES: { + if (npc.isMyLord(player)) { + if (!npc.isDominionOfLord(GLUDIO_ID)) { + htmltext = "35100-01.htm"; + } else { + htmltext = "35100-03.htm"; + } + } + break; + } + } + break; + } + case State.STARTED: { + switch (npc.getId()) { + case SAYRES: { + if ((qs.hasMemoState() && (qs.getMemoState() == 1) && npc.isMyLord(player))) { + if (System.currentTimeMillis() - qs.getMemoStateEx(1) < MIN_TIME) { + htmltext = "35100-05.html"; + } else { + qs.setMemoState(2); + qs.setMemoStateEx(1, 0); + htmltext = "35100-06.html"; + } + } else if (qs.hasMemoState() && (qs.getMemoState() == 2)) { + htmltext = "35100-07.html"; + } else if (!npc.isMyLord(player)) { + if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0)) { + final var leader = player.getClan().getLeader().getPlayerInstance(); + final var qsLeader = getQuestState(leader, false); + if (qsLeader != null) { + if (qsLeader.hasMemoState() && (qsLeader.getMemoState() == 3)) { + if (npc.calculateDistance(leader, false, false) <= 1500) { + htmltext = "35100-11.html"; + } else { + htmltext = "35100-10.html"; + } + } else if (qsLeader.hasMemoState() && (qsLeader.getMemoState() == 4)) { + htmltext = "35100-13a.html"; + } else { + htmltext = "35100-09.html"; + } + } else { + htmltext = "35100-09.html"; + } + } else if (npc.getCastle().getOwnerId() != player.getClanId()) { + htmltext = "35100-09.html"; + } + } else if (qs.hasMemoState() && (qs.getMemoState() == 3)) { + htmltext = "35100-14.html"; + } else if (qs.hasMemoState() && (qs.getMemoState() == 4)) { + htmltext = "35100-15.html"; + } else if (qs.hasMemoState() && (qs.getMemoState() == 5)) { + final int i0 = qs.getMemoState(); + qs.setMemoState(i0 + 10); + qs.setFlagJournal(5); + qs.playSound(ITEMSOUND_QUEST_MIDDLE); + htmltext = "35100-16.html"; + } else if (qs.hasMemoState() && ((qs.getMemoState() / 10) <= 1) && ((qs.getMemoState() % 10) == 9)) { + final int i0 = qs.getMemoState() / 10; + final int i1 = qs.getMemoState(); + if (i0 == 0) { + qs.setMemoState(i1 + 10); + qs.setFlagJournal(5); + qs.playSound(ITEMSOUND_QUEST_MIDDLE); + } + htmltext = "35100-17.html"; + } else if (qs.hasMemoState() && ((qs.getMemoState() / 10) == 1) && ((qs.getMemoState() % 10) != 9)) { + htmltext = "35100-18.html"; + } else if (qs.hasMemoState() && ((qs.getMemoState() / 10) == 2) || ((qs.getMemoState() / 10) == 3) && ((qs.getMemoState() % 10) == 9)) { + htmltext = "35100-19.html"; + } else if (qs.hasMemoState() && ((qs.getMemoState() / 10) == 2) || ((qs.getMemoState() / 10) == 3) && ((qs.getMemoState() % 10) == 9)) { + htmltext = "35100-20.html"; + } else if (qs.hasMemoState() && ((qs.getMemoState() / 10) == 4) && ((qs.getMemoState() % 10) != 9)) { + htmltext = "35100-21.html"; + } else if (qs.hasMemoState() && ((qs.getMemoState() / 10) == 4) && ((qs.getMemoState() % 10) == 9) && npc.isMyLord(player)) { + if (TerritoryWarManager.getInstance().isTWInProgress() || npc.getCastle().getSiege().isInProgress()) { + htmltext = "35100-22a.html"; + } else if ((FortManager.getInstance().getFortById(SHANTY).getFortState() == 0) || FortManager.getInstance().getFortById(SOUTHERN).getFortState() == 0) { + htmltext = "35100-22b.html"; + } else { + htmltext = "35100-22.html"; + } + } + break; + } + case PINTER: { + if (!npc.isMyLord(player)) { + final var leader = player.getClan().getLeader().getPlayerInstance(); + final var qsLeader = getQuestState(leader, false); + if (qsLeader != null) { + if (qsLeader.hasMemoState() && (qsLeader.getMemoState() <= 3)) { + htmltext = "30298-02.html"; + } else if (qsLeader.getMemoState() == 4) { + if (player.getObjectId() == qs.getMemoStateEx(1)) { + htmltext = "30298-03.html"; + } else { + htmltext = "30298-03a.html"; + } + } else if ((qsLeader.getMemoState() % 10) == 5) { + if ((getQuestItemsCount(player, ANIMAL_SKIN) >= 100) && (getQuestItemsCount(player, VARNISH) >= 100) && // + (getQuestItemsCount(player, IRON_ORE) >= 100) && (getQuestItemsCount(player, COKES) >= 50)) { + htmltext = "30298-08.html"; + } else { + htmltext = "30298-07.html"; + } + } else if ((qsLeader.getMemoState() % 10) == 9) { + htmltext = "30298-12.html"; + } + } else { + htmltext = "30298-01.html"; + } + } else if (npc.isMyLord(player)) { + htmltext = "30298-13.html"; + } + break; + } + case BATHIS: { + if (qs.hasMemoState() && ((qs.getMemoState() / 10) == 1)) { + htmltext = "30332-01.html"; + } else if (qs.hasMemoState() && ((qs.getMemoState() / 10) == 2)) { + htmltext = "30332-03.html"; + } else if (qs.hasMemoState() && ((qs.getMemoState() / 10) == 3)) { + htmltext = "30332-04.html"; + } else if (qs.hasMemoState() && ((qs.getMemoState() / 10) == 4)) { + htmltext = "30332-06.html"; + } + break; + } + } + break; + } + case State.COMPLETED: { + // TODO(Zoey76): Review this in the future. + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + private QuestState getClanLeaderQuestState(L2PcInstance player) { + final var clan = player.getClan(); + if (clan == null) { + return null; + } + + final var leader = player.getClan().getLeader().getPlayerInstance(); + if (leader == null) { + return null; + } + return getQuestState(leader, false); + } +} \ No newline at end of file diff --git a/src/main/java/com/l2jserver/datapack/quests/QuestLoader.java b/src/main/java/com/l2jserver/datapack/quests/QuestLoader.java index c38c36b9eb..40f134f0e2 100644 --- a/src/main/java/com/l2jserver/datapack/quests/QuestLoader.java +++ b/src/main/java/com/l2jserver/datapack/quests/QuestLoader.java @@ -479,6 +479,7 @@ import com.l2jserver.datapack.quests.Q00699_GuardianOfTheSkies.Q00699_GuardianOf import com.l2jserver.datapack.quests.Q00700_CursedLife.Q00700_CursedLife; import com.l2jserver.datapack.quests.Q00701_ProofOfExistence.Q00701_ProofOfExistence; import com.l2jserver.datapack.quests.Q00702_ATrapForRevenge.Q00702_ATrapForRevenge; +import com.l2jserver.datapack.quests.Q00708_PathToBecomingALordGludio.Q00708_PathToBecomingALordGludio; import com.l2jserver.datapack.quests.Q00901_HowLavasaurusesAreMade.Q00901_HowLavasaurusesAreMade; import com.l2jserver.datapack.quests.Q00902_ReclaimOurEra.Q00902_ReclaimOurEra; import com.l2jserver.datapack.quests.Q00903_TheCallOfAntharas.Q00903_TheCallOfAntharas; @@ -989,6 +990,7 @@ public class QuestLoader { Q00700_CursedLife.class, Q00701_ProofOfExistence.class, Q00702_ATrapForRevenge.class, + Q00708_PathToBecomingALordGludio.class, Q00728_TerritoryWar.class, Q00901_HowLavasaurusesAreMade.class, Q00902_ReclaimOurEra.class, -- GitLab