From 00b05bcee5e12491975c9cfdeb7c5809c079eef8 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Mon, 29 Jul 2019 07:32:54 +0000 Subject: [PATCH] Addition of quests 508, 509 and 510. Source: aCis --- .../quests/508_TheClansReputation/30868-0.htm | 9 - .../quests/508_TheClansReputation/30868-1.htm | 4 - .../508_TheClansReputation/30868-1a.htm | 6 - .../508_TheClansReputation/30868-1b.htm | 5 - .../508_TheClansReputation/30868-2a.htm | 6 - .../508_TheClansReputation/30868-2b.htm | 5 - .../quests/508_TheClansReputation/30868-3.htm | 4 - .../508_TheClansReputation/30868-3a.htm | 6 - .../508_TheClansReputation/30868-3b.htm | 5 - .../quests/508_TheClansReputation/30868-4.htm | 4 - .../508_TheClansReputation/30868-4a.htm | 6 - .../508_TheClansReputation/30868-4b.htm | 5 - .../508_TheClansReputation/30868-5a.htm | 6 - .../508_TheClansReputation/30868-5b.htm | 5 - .../quests/508_TheClansReputation/30868-6.htm | 4 - .../508_TheClansReputation/30868-6a.htm | 6 - .../508_TheClansReputation/30868-6b.htm | 5 - .../quests/508_TheClansReputation/__init__.py | 157 ---------- .../quests/509_TheClansPrestige/31331-0.htm | 8 - .../quests/509_TheClansPrestige/31331-1b.htm | 5 - .../quests/509_TheClansPrestige/31331-2b.htm | 5 - .../quests/509_TheClansPrestige/31331-3b.htm | 5 - .../quests/509_TheClansPrestige/31331-4a.htm | 6 - .../quests/509_TheClansPrestige/31331-4b.htm | 5 - .../quests/509_TheClansPrestige/31331-5b.htm | 5 - .../quests/509_TheClansPrestige/__init__.py | 136 --------- .../quests/510_AClansReputation/31331-3.htm | 4 - .../quests/510_AClansReputation/31331-4.htm | 5 - .../quests/510_AClansReputation/31331-7.htm | 5 - .../quests/510_AClansReputation/__init__.py | 99 ------- .../Q501_ProofOfClanAlliance.java | 1 + .../quests/Q508_AClansReputation/30868-0.htm | 9 + .../30868-0a.htm | 4 +- .../30868-0b.htm | 4 +- .../30868-0c.htm | 6 +- .../quests/Q508_AClansReputation/30868-1.htm | 4 + .../quests/Q508_AClansReputation/30868-1a.htm | 6 + .../quests/Q508_AClansReputation/30868-1b.htm | 5 + .../30868-2.htm | 4 +- .../quests/Q508_AClansReputation/30868-2a.htm | 6 + .../quests/Q508_AClansReputation/30868-2b.htm | 5 + .../quests/Q508_AClansReputation/30868-3.htm | 4 + .../quests/Q508_AClansReputation/30868-3a.htm | 6 + .../quests/Q508_AClansReputation/30868-3b.htm | 5 + .../quests/Q508_AClansReputation/30868-4.htm | 4 + .../quests/Q508_AClansReputation/30868-4a.htm | 6 + .../quests/Q508_AClansReputation/30868-4b.htm | 5 + .../30868-5.htm | 4 +- .../quests/Q508_AClansReputation/30868-5a.htm | 6 + .../quests/Q508_AClansReputation/30868-5b.htm | 5 + .../quests/Q508_AClansReputation/30868-6.htm | 4 + .../quests/Q508_AClansReputation/30868-6a.htm | 6 + .../quests/Q508_AClansReputation/30868-6b.htm | 5 + .../30868-7.htm | 2 +- .../Q508_AClansReputation.java | 267 ++++++++++++++++++ .../quests/Q509_TheClansPrestige/31331-0.htm | 8 + .../31331-0a.htm | 4 +- .../31331-0b.htm | 4 +- .../31331-0c.htm | 6 +- .../31331-1.htm | 0 .../31331-1a.htm | 4 +- .../quests/Q509_TheClansPrestige/31331-1b.htm | 5 + .../31331-2.htm | 0 .../31331-2a.htm | 4 +- .../quests/Q509_TheClansPrestige/31331-2b.htm | 5 + .../31331-3.htm | 0 .../31331-3a.htm | 4 +- .../quests/Q509_TheClansPrestige/31331-3b.htm | 5 + .../31331-4.htm | 2 +- .../quests/Q509_TheClansPrestige/31331-4a.htm | 6 + .../quests/Q509_TheClansPrestige/31331-4b.htm | 5 + .../31331-5.htm | 0 .../31331-5a.htm | 4 +- .../quests/Q509_TheClansPrestige/31331-5b.htm | 5 + .../31331-6.htm | 2 +- .../Q509_TheClansPrestige.java | 254 +++++++++++++++++ .../31331-0.htm | 10 +- .../31331-1.htm | 8 +- .../31331-2.htm | 11 +- .../quests/Q510_AClansReputation/31331-3.htm | 5 + .../quests/Q510_AClansReputation/31331-4.htm | 5 + .../31331-5.htm | 6 +- .../31331-6.htm | 6 +- .../quests/Q510_AClansReputation/31331-7.htm | 5 + .../Q510_AClansReputation.java | 154 ++++++++++ .../scripts/quests/QuestMasterHandler.java | 9 +- .../gameserver/model/quest/Quest.java | 31 ++ 87 files changed, 908 insertions(+), 588 deletions(-) delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-0.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-1.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-1a.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-1b.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-2a.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-2b.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-3.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-3a.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-3b.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-4.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-4a.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-4b.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-5a.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-5b.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-6.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-6a.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-6b.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/__init__.py delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-0.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-1b.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-2b.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-3b.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-4a.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-4b.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-5b.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/__init__.py delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-3.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-4.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-7.htm delete mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/__init__.py create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-0.htm rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{508_TheClansReputation => Q508_AClansReputation}/30868-0a.htm (83%) rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{508_TheClansReputation => Q508_AClansReputation}/30868-0b.htm (84%) rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{508_TheClansReputation => Q508_AClansReputation}/30868-0c.htm (75%) create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1a.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1b.htm rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{508_TheClansReputation => Q508_AClansReputation}/30868-2.htm (51%) create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-2a.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-2b.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3a.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3b.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4a.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4b.htm rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{508_TheClansReputation => Q508_AClansReputation}/30868-5.htm (51%) create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-5a.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-5b.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6a.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6b.htm rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{508_TheClansReputation => Q508_AClansReputation}/30868-7.htm (90%) create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/Q508_AClansReputation.java create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-0.htm rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{509_TheClansPrestige => Q509_TheClansPrestige}/31331-0a.htm (83%) rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{509_TheClansPrestige => Q509_TheClansPrestige}/31331-0b.htm (84%) rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{509_TheClansPrestige => Q509_TheClansPrestige}/31331-0c.htm (75%) rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{509_TheClansPrestige => Q509_TheClansPrestige}/31331-1.htm (100%) rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{509_TheClansPrestige => Q509_TheClansPrestige}/31331-1a.htm (58%) create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-1b.htm rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{509_TheClansPrestige => Q509_TheClansPrestige}/31331-2.htm (100%) rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{509_TheClansPrestige => Q509_TheClansPrestige}/31331-2a.htm (60%) create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-2b.htm rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{509_TheClansPrestige => Q509_TheClansPrestige}/31331-3.htm (100%) rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{509_TheClansPrestige => Q509_TheClansPrestige}/31331-3a.htm (58%) create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-3b.htm rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{509_TheClansPrestige => Q509_TheClansPrestige}/31331-4.htm (64%) create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-4a.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-4b.htm rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{509_TheClansPrestige => Q509_TheClansPrestige}/31331-5.htm (100%) rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{509_TheClansPrestige => Q509_TheClansPrestige}/31331-5a.htm (57%) create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-5b.htm rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{509_TheClansPrestige => Q509_TheClansPrestige}/31331-6.htm (90%) create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/Q509_TheClansPrestige.java rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{510_AClansReputation => Q510_AClansReputation}/31331-0.htm (78%) rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{510_AClansReputation => Q510_AClansReputation}/31331-1.htm (56%) rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{510_AClansReputation => Q510_AClansReputation}/31331-2.htm (58%) create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-3.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-4.htm rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{510_AClansReputation => Q510_AClansReputation}/31331-5.htm (95%) rename L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/{510_AClansReputation => Q510_AClansReputation}/31331-6.htm (90%) create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-7.htm create mode 100644 L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/Q510_AClansReputation.java diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-0.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-0.htm deleted file mode 100644 index 94f826e7f1..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-0.htm +++ /dev/null @@ -1,9 +0,0 @@ -Sir Eric Rodemai:
-Which Raid Boss do you wish to take on?
-Palibati Queen Themis
-Hekaton Prime
-Gargoyle Lord Tiphon
-Last Lesser Giant Glaki
-Rahha
-Flamestone Giant - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-1.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-1.htm deleted file mode 100644 index 7e5c844597..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-1.htm +++ /dev/null @@ -1,4 +0,0 @@ -Sir Eric Rodemai:
-Very good! Slaughter Palibati Queen Themis and bring me her scale!
-As I told you before, you don't have to kill her yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Palibati Queen Themis and then bring her scale to me. - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-1a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-1a.htm deleted file mode 100644 index 702dcef041..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-1a.htm +++ /dev/null @@ -1,6 +0,0 @@ -Sir Eric Rodemai:
-Too bad! I need you to slaughter Palibati Queen Themis and bring me her scale!
-As I told you before, you don't have to kill her yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Palibati Queen Themis and then bring her scale to me.
-"I want to try another Raid Boss."
-Quit - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-1b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-1b.htm deleted file mode 100644 index 4f2a988b7f..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-1b.htm +++ /dev/null @@ -1,5 +0,0 @@ -Sir Eric Rodemai:
-Well done! I'll spread the news that your brave Clan hat defeated Palibati Queen Themis.
-"I want to continue killing Raid Bosses."
-Quit - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-2a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-2a.htm deleted file mode 100644 index a2cbb5c7ef..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-2a.htm +++ /dev/null @@ -1,6 +0,0 @@ -Sir Eric Rodemai:
-Too bad! I need you to slaughter Hekaton Prime and bring me his Nucleus!
-As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Hekaton Prime and then bring his Nucleus to me.
-"I want to try another Raid Boss."
-Quit - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-2b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-2b.htm deleted file mode 100644 index 73a0ef39ee..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-2b.htm +++ /dev/null @@ -1,5 +0,0 @@ -Sir Eric Rodemai:
-Well done! I'll spread the news that your brave Clan hat defeated Hekaton Prime.
-"I want to continue killing Raid Bosses."
-Quit - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-3.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-3.htm deleted file mode 100644 index 4969b101eb..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-3.htm +++ /dev/null @@ -1,4 +0,0 @@ -Sir Eric Rodemai:
-Very good! Slaughter Gargoyle Lord Tiphon and bring me his Shard!
-As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Gargoyle Lord Tiphon and then bring his Shard to me. - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-3a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-3a.htm deleted file mode 100644 index a8c41608f8..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-3a.htm +++ /dev/null @@ -1,6 +0,0 @@ -Sir Eric Rodemai:
-Too bad! I need you to slaughter Gargoyle Lord Tiphon and bring me his Shard!
-As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Gargoyle Lord Tiphon and then bring his Shard to me.
-"I want to try another Raid Boss."
-Quit - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-3b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-3b.htm deleted file mode 100644 index 9ae52c6223..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-3b.htm +++ /dev/null @@ -1,5 +0,0 @@ -Sir Eric Rodemai:
-Well done! I'll spread the news that your brave Clan hat defeated Gargoyle Lord Tiphon.
-"I want to continue killing Raid Bosses."
-Quit - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-4.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-4.htm deleted file mode 100644 index 9c63a7e0c9..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-4.htm +++ /dev/null @@ -1,4 +0,0 @@ -Sir Eric Rodemai:
-Very good! Slaughter Last Lesser Giant Glaki and bring me his Nucleus!
-As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Last Lesser Giant Glaki and then bring his Nucleus to me. - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-4a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-4a.htm deleted file mode 100644 index 6494c1f8d6..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-4a.htm +++ /dev/null @@ -1,6 +0,0 @@ -Sir Eric Rodemai:
-Too bad! I need you to slaughter Last Lesser Giant Glaki and bring me his Nucleus!
-As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Last Lesser Giant Glaki and then bring his Nucleus to me.
-"I want to try another Raid Boss."
-Quit - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-4b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-4b.htm deleted file mode 100644 index 2ce311941c..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-4b.htm +++ /dev/null @@ -1,5 +0,0 @@ -Sir Eric Rodemai:
-Well done! I'll spread the news that your brave Clan hat defeated Last Lesser Giant Glaki.
-"I want to continue killing Raid Bosses."
-Quit - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-5a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-5a.htm deleted file mode 100644 index 4663bb89b2..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-5a.htm +++ /dev/null @@ -1,6 +0,0 @@ -Sir Eric Rodemai:
-Too bad! I need you to slaughter Rahha and bring me her fang!
-As I told you before, you don't have to kill her yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Rahha and then bring her fang to me.
-"I want to try another Raid Boss."
-Quit - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-5b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-5b.htm deleted file mode 100644 index 90e635b6f7..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-5b.htm +++ /dev/null @@ -1,5 +0,0 @@ -Sir Eric Rodemai:
-Well done! I'll spread the news that your brave Clan hat defeated Rahha.
-"I want to continue killing Raid Bosses."
-Quit - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-6.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-6.htm deleted file mode 100644 index fc833c057e..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-6.htm +++ /dev/null @@ -1,4 +0,0 @@ -Sir Eric Rodemai:
-Very good! Slaughter Flamestone Giant and bring me his Nucleus!
-As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Flamestone Giant and then bring his Nucleus to me. - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-6a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-6a.htm deleted file mode 100644 index 5e18dbfbb8..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-6a.htm +++ /dev/null @@ -1,6 +0,0 @@ -Sir Eric Rodemai:
-Too bad! I need you to slaughter Flamestone Giant and bring me his Nucleus!
-As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Flamestone Giant and then bring his Nucleus to me.
-"I want to try another Raid Boss."
-Quit - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-6b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-6b.htm deleted file mode 100644 index 23acbe9a6d..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-6b.htm +++ /dev/null @@ -1,5 +0,0 @@ -Sir Eric Rodemai:
-Well done! I'll spread the news that your brave Clan hat defeated Flamestone Giant.
-"I want to continue killing Raid Bosses."
-Quit - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/__init__.py b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/__init__.py deleted file mode 100644 index cf52a395b2..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/__init__.py +++ /dev/null @@ -1,157 +0,0 @@ -##################################################################### -# # -# "The Clan's Reputation" # -# "Raise the Clan's Reputation" # -# "Sir Eric Rodemai in Aden Castle Town is looking # -# for a brave adventurer to raise the clan's reputation." # -# "Clan Leader, Clan Level 5 and above" # -# # -# Start NPC: Sir Eric Rodemai[30868] # -# # -# fixed and completed by chris_00 @katmai and DrLecter # -# # -##################################################################### -import sys -from org.l2jmobius.gameserver.model.quest import State -from org.l2jmobius.gameserver.model.quest import QuestState -from org.l2jmobius.gameserver.model.quest.jython import QuestJython as JQuest -from org.l2jmobius.gameserver.network.serverpackets import PledgeShowInfoUpdate -from org.l2jmobius.gameserver.network.serverpackets import RadarControl -from org.l2jmobius.gameserver.network.serverpackets import SystemMessage - -qn="508_TheClansReputation" -qd="The Clans Reputation" - -# Quest NPC -SIR_ERIC_RODEMAI = 30868 - -# Quest Items -NUCLEUS_OF_FLAMESTONE_GIANT = 8494 # Nucleus of Flamestone Giant : Nucleus obtained by defeating Flamestone Giant -THEMIS_SCALE = 8277 # Themis' Scale : Obtain this scale by defeating Palibati Queen Themis. -NUCLEUS_OF_HEKATON_PRIME = 8279 # Nucleus of Hekaton Prime : Nucleus obtained by defeating Hekaton Prime -TIPHON_SHARD = 8280 # Tiphon Shard : Debris obtained by defeating Tiphon, Gargoyle Lord. -GLAKIS_NUCLEUS = 8281 # Glaki's Necleus : Nucleus obtained by defeating Glaki, the last lesser Giant. -RAHHAS_FANG = 8282 # Rahha's Fang : Fangs obtained by defeating Rahha. - -#Quest Raid Bosses -FLAMESTONE_GIANT = 25524 -PALIBATI_QUEEN_THEMIS = 25252 -HEKATON_PRIME = 25140 -GARGOYLE_LORD_TIPHON = 25255 -LAST_LESSER_GIANT_GLAKI = 25245 -RAHHA = 25051 - -# Reward -CLAN_POINTS_REWARD = 1000 # 1000 Point Per Boss - -# id:[RaidBossNpcId,questItemId] -REWARDS_LIST={ - 1:[PALIBATI_QUEEN_THEMIS, THEMIS_SCALE], - 2:[HEKATON_PRIME, NUCLEUS_OF_HEKATON_PRIME], - 3:[GARGOYLE_LORD_TIPHON, TIPHON_SHARD], - 4:[LAST_LESSER_GIANT_GLAKI,GLAKIS_NUCLEUS], - 5:[RAHHA, RAHHAS_FANG], - 6:[FLAMESTONE_GIANT, NUCLEUS_OF_FLAMESTONE_GIANT] - } - -RADAR={ - 1:[192346,21528,-3648], - 2:[191979,54902,-7658], - 3:[170038,-26236,-3824], - 4:[171762,55028,-5992], - 5:[117232,-9476,-3320], - 6:[144218,-5816,-4722], - } - -class Quest (JQuest) : - - def __init__(self,id,name,descr) : - JQuest.__init__(self,id,name,descr) - self.questItemIds = [THEMIS_SCALE, NUCLEUS_OF_HEKATON_PRIME, TIPHON_SHARD, GLAKIS_NUCLEUS, RAHHAS_FANG, NUCLEUS_OF_FLAMESTONE_GIANT] - - def onAdvEvent (self,event,npc,player) : - st = player.getQuestState(qn) - if not st: return - cond = st.getInt("cond") - htmltext=event - if event == "30868-0.htm" : - if cond == 0 : - st.set("cond","1") - st.setState(State.STARTED) - elif event.isdigit() : - if int(event) in REWARDS_LIST.keys(): - st.set("raid",event) - htmltext="30868-"+event+".htm" - x,y,z=RADAR[int(event)] - if x+y+z: - player.sendPacket(RadarControl(2, 2, x, y, z)) - player.sendPacket(RadarControl(0, 1, x, y, z)) - st.playSound("ItemSound.quest_accept") - elif event == "30868-7.htm" : - st.playSound("ItemSound.quest_finish") - st.exitQuest(1) - return htmltext - - def onTalk (self,npc,player) : - htmltext = "You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements." - st = player.getQuestState(qn) - if not st : return htmltext - clan = player.getClan() - npcId = npc.getNpcId() - if player.getClan() == None or player.isClanLeader() == 0 : - st.exitQuest(1) - htmltext = "30868-0a.htm" - elif player.getClan().getLevel() < 5 : - st.exitQuest(1) - htmltext = "30868-0b.htm" - else : - cond = st.getInt("cond") - raid = st.getInt("raid") - id = st.getState() - if id == State.CREATED and cond == 0 : - htmltext = "30868-0c.htm" - elif id == State.STARTED and cond == 1 and raid in REWARDS_LIST.keys() : - npc,item=REWARDS_LIST[raid] - count = st.getQuestItemsCount(item) - if not count : - htmltext = "30868-"+str(raid)+"a.htm" - elif count == 1 : - htmltext = "30868-"+str(raid)+"b.htm" - st.takeItems(item,1) - clan.setReputationScore(clan.getReputationScore()+CLAN_POINTS_REWARD,True) - player.sendPacket(SystemMessage(1777).addNumber(CLAN_POINTS_REWARD)) - clan.broadcastToOnlineMembers(PledgeShowInfoUpdate(clan)) - return htmltext - - def onKill(self,npc,player,isPet) : - st = 0 - if player.isClanLeader() : - st = player.getQuestState(qn) - else: - clan = player.getClan() - if clan: - leader=clan.getLeader() - if leader : - pleader= leader.getPlayerInstance() - if pleader : - if player.isInsideRadius(pleader, 1600, 1, 0) : - st = pleader.getQuestState(qn) - if not st : return - option=st.getInt("raid") - if st.getInt("cond") == 1 and st.getState() == State.STARTED and option in REWARDS_LIST.keys(): - raid,item = REWARDS_LIST[option] - npcId=npc.getNpcId() - if npcId == raid and not st.getQuestItemsCount(item) : - st.giveItems(item,1) - st.playSound("ItemSound.quest_middle") - return - - -# Quest class and state definition -QUEST = Quest(508,qn,qd) - -QUEST.addStartNpc(SIR_ERIC_RODEMAI) -QUEST.addTalkId(SIR_ERIC_RODEMAI) - -for npc,item in REWARDS_LIST.values(): - QUEST.addKillId(npc) diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-0.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-0.htm deleted file mode 100644 index 5f5f4a4d8a..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-0.htm +++ /dev/null @@ -1,8 +0,0 @@ -Grand Magister Valdis:
-Take your pick!
-Daimon the White-Eyed
-Hestia, Guardian Deity of the Hot Springs
-Plague Golem
-Demon's Agent Falston
-Queen Shyeed - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-1b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-1b.htm deleted file mode 100644 index ec499386e4..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-1b.htm +++ /dev/null @@ -1,5 +0,0 @@ -Grand Magister Valdis:
-Excellent! I'll spread the word of your mighty Clan's defeat of the Daimon, the white-Eyed.
-"I want to kill some more Raid Bosses!"
-"I want to quit this mission." - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-2b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-2b.htm deleted file mode 100644 index 37571d86c9..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-2b.htm +++ /dev/null @@ -1,5 +0,0 @@ -Grand Magister Valdis:
-Excellent! I'll spread the word of your mighty Clan's defeat of the Hestia, Guardian Deity of the Hot Springs.
-"I want to kill some more Raid Bosses!"
-"I want to quit this mission." - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-3b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-3b.htm deleted file mode 100644 index a02e6f9809..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-3b.htm +++ /dev/null @@ -1,5 +0,0 @@ -Grand Magister Valdis:
-Excellent! I'll spread the word of your mighty Clan's defeat of the Plague Golem.
-"I want to kill some more Raid Bosses!"
-"I want to quit this mission." - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-4a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-4a.htm deleted file mode 100644 index bb3251fb48..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-4a.htm +++ /dev/null @@ -1,6 +0,0 @@ -Grand Magister Valdis:
-Too bad! Destroy Demon's Agent Falchion and bring me Falston's Fang.
-Remember, you don't need to do the killing yourself! Just stand back and let your Clan to do the work for you!
-"I want to try another Raid Boss."
-"I want to quit this mission." - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-4b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-4b.htm deleted file mode 100644 index 1d4692fbfe..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-4b.htm +++ /dev/null @@ -1,5 +0,0 @@ -Grand Magister Valdis:
-Excellent! I'll spread the word of your mighty Clan's defeat of the Demon's Agent Falchion.
-"I want to kill some more Raid Bosses!"
-"I want to quit this mission." - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-5b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-5b.htm deleted file mode 100644 index 0e10aa4e1c..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-5b.htm +++ /dev/null @@ -1,5 +0,0 @@ -Grand Magister Valdis:
-Excellent! I'll spread the word of your mighty Clan's defeat of the Queen Shyeed.
-"I want to kill some more Raid Bosses!"
-"I want to quit this mission." - \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/__init__.py b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/__init__.py deleted file mode 100644 index c1fb0f67a6..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/__init__.py +++ /dev/null @@ -1,136 +0,0 @@ -import sys -from org.l2jmobius.gameserver.model.quest import State -from org.l2jmobius.gameserver.model.quest import QuestState -from org.l2jmobius.gameserver.model.quest.jython import QuestJython as JQuest -from org.l2jmobius.gameserver.network.serverpackets import PledgeShowInfoUpdate -from org.l2jmobius.gameserver.network.serverpackets import SystemMessage -from org.l2jmobius.commons.util import Rnd - -qn="509_TheClansPrestige" - -# Quest NPC -VALDIS = 31331 - -# Quest Items -DAIMONS_EYES = 8489 # Daimon's Eyes: Eyes obtained by killing Daimon the White-Eyed. -HESTIAS_FAIRY_STONE = 8490 # Hestia's Fairy Stone: Fairy Stone obtained by defeating Hestia, the Guardian Deity of the Hot Springs. -NUCLEUS_OF_LESSER_GOLEM = 8491 # Nucleus of Lesser Golem: Nucleus obtained by defeating the Lesser Golem. -FALSTON_FANG = 8492 # Falston's Fang: Fangs obtained by killing Falston, the Demon's Agent. -SHAIDS_TALON = 8493 # Shaid's Talon: Talon obtained by defeating Spike Stakato Queen Shaid. - -#Quest Raid Bosses -DAIMON_THE_WHITE_EYED = 25290 -HESTIA_GUARDIAN_DEITY = 25293 -PLAGUE_GOLEM = 25523 -DEMONS_AGENT_FALSTON = 25322 -QUEEN_SHYEED = 25514 - -# id:[RaidBossNpcId,questItemId,minClanPoints,maxClanPoints] -REWARDS_LIST={ - 1:[DAIMON_THE_WHITE_EYED,DAIMONS_EYES,180,215], - 2:[HESTIA_GUARDIAN_DEITY,HESTIAS_FAIRY_STONE,430,465], - 3:[PLAGUE_GOLEM,NUCLEUS_OF_LESSER_GOLEM,380,415], - 4:[DEMONS_AGENT_FALSTON,FALSTON_FANG,220,255], - 5:[QUEEN_SHYEED,SHAIDS_TALON,130,165] - } - -RADAR={ - 1:[186320,-43904,-3175], - 2:[134672,-115600,-1216], - 3:[0,0,0], # not spawned yet - 4:[93296,-75104,-1824], - 5:[79635,-55612,-5980] - } - -class Quest (JQuest) : - - def __init__(self,id,name,descr) : - JQuest.__init__(self,id,name,descr) - self.questItemIds = [DAIMONS_EYES,HESTIAS_FAIRY_STONE,NUCLEUS_OF_LESSER_GOLEM,FALSTON_FANG,SHAIDS_TALON] - - def onAdvEvent (self,event,npc,player) : - st = player.getQuestState(qn) - if not st: return - cond = st.getInt("cond") - htmltext=event - if event == "31331-0.htm" : - if cond == 0 : - st.set("cond","1") - st.setState(State.STARTED) - elif event.isdigit() : - if int(event) in REWARDS_LIST.keys(): - st.set("raid",event) - htmltext="31331-"+event+".htm" - x,y,z=RADAR[int(event)] - if x+y+z: - st.addRadar(x, y, z) - st.playSound("ItemSound.quest_accept") - elif event == "31331-6.htm" : - st.playSound("ItemSound.quest_finish") - st.exitQuest(1) - return htmltext - - def onTalk (self,npc,player) : - htmltext = "You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements." - st = player.getQuestState(qn) - if not st : return htmltext - clan = player.getClan() - npcId = npc.getNpcId() - if player.getClan() == None or player.isClanLeader() == 0 : - st.exitQuest(1) - htmltext = "31331-0a.htm" - elif player.getClan().getLevel() < 6 : - st.exitQuest(1) - htmltext = "31331-0b.htm" - else : - cond = st.getInt("cond") - raid = st.getInt("raid") - id = st.getState() - if id == State.CREATED and cond == 0 : - htmltext = "31331-0c.htm" - elif id == State.STARTED and cond == 1 and raid in REWARDS_LIST.keys() : - npc,item,min,max=REWARDS_LIST[raid] - count = st.getQuestItemsCount(item) - CLAN_POINTS_REWARD = Rnd.get(min, max) - if not count : - htmltext = "31331-"+str(raid)+"a.htm" - elif count == 1 : - htmltext = "31331-"+str(raid)+"b.htm" - st.takeItems(item,1) - clan.setReputationScore(clan.getReputationScore()+CLAN_POINTS_REWARD,True) - player.sendPacket(SystemMessage(1777).addNumber(CLAN_POINTS_REWARD)) - clan.broadcastToOnlineMembers(PledgeShowInfoUpdate(clan)) - return htmltext - - def onKill(self,npc,player,isPet) : - st = 0 - if player.isClanLeader() : - st = player.getQuestState(qn) - else: - clan = player.getClan() - if clan: - leader=clan.getLeader() - if leader : - pleader= leader.getPlayerInstance() - if pleader : - if player.isInsideRadius(pleader, 1600, 1, 0) : - st = pleader.getQuestState(qn) - if not st : return - option=st.getInt("raid") - if st.getInt("cond") == 1 and st.getState() == State.STARTED and option in REWARDS_LIST.keys(): - raid,item,min,max = REWARDS_LIST[option] - npcId=npc.getNpcId() - if npcId == raid and not st.getQuestItemsCount(item) : - st.giveItems(item,1) - st.playSound("ItemSound.quest_middle") - return - - -# Quest class and state definition -QUEST = Quest(509,qn,"The Clan's Prestige") - -QUEST.addStartNpc(VALDIS) -QUEST.addTalkId(VALDIS) - -for npc,item,min,max in REWARDS_LIST.values(): - QUEST.addKillId(npc) \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-3.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-3.htm deleted file mode 100644 index 75aa5ab5f4..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-3.htm +++ /dev/null @@ -1,4 +0,0 @@ -Grand Magister Valdis:
-Thank you, thank you! Legend has it that these creatures are extremely vicious... Oh, but I'm sure they will pose no more trouble to such a powerful clan than a kitten with her claws! So, will you go to the Primeval Isle and slay a Tyrannosaurus?
Naturally, we don't expect you personally to slay the creature. There is no rule requiring a clan leader to brandish his own sword in these matters. Simply stay nearby and watch your clan members slay the Tyrannosaurus and return here with its claws.It's vital that the claw be undamaged, you understand, which means...uh, well, it's probably best that you capture the creature before slaying it. I hope that doesn't complicate the task for you!
-I'll be here anxiously awaiting your good news. - diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-4.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-4.htm deleted file mode 100644 index 4ae85f7ecf..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-4.htm +++ /dev/null @@ -1,5 +0,0 @@ -Grand Magister Valdis:
-Are you still here? Hurry to the Primeval Isle and bring back the Tyrannosaurus Claw that I requested. Do you have any other business with me?
-"No, nothing. I'll go get the material. "
-"I wish to stop now." - diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-7.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-7.htm deleted file mode 100644 index ed79c42358..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-7.htm +++ /dev/null @@ -1,5 +0,0 @@ -Sir Eric Rodemai:
-Well done! I'll spread the news that your brave Clan hat defeated Tyrannosaurus!
-"I want to continue killing Tyrannosaurus."
-"I wish to stop now." - diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/__init__.py b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/__init__.py deleted file mode 100644 index 0d1f35003c..0000000000 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/__init__.py +++ /dev/null @@ -1,99 +0,0 @@ -import sys -from org.l2jmobius.gameserver.model.quest import State -from org.l2jmobius.gameserver.model.quest import QuestState -from org.l2jmobius.gameserver.model.quest.jython import QuestJython as JQuest -from org.l2jmobius.gameserver.network.serverpackets import PledgeShowInfoUpdate -from org.l2jmobius.gameserver.network.serverpackets import SystemMessage - -qn="510_AClansReputation" - -# Quest NPC -Valdis = 31331 - -# Quest Items -Claw = 8767 - -# Reward -CLAN_POINTS_REWARD = 50 # Rep Points Per Tyrannosaurus Item - need to be confirmed - -class Quest (JQuest) : - - def __init__(self,id,name,descr) : - JQuest.__init__(self,id,name,descr) - self.questItemIds = [Claw] - - def onAdvEvent (self,event,npc,player) : - st = player.getQuestState(qn) - if not st: return - cond = st.getInt("cond") - htmltext=event - if event == "31331-3.htm" : - if cond == 0 : - st.set("cond","1") - st.setState(State.STARTED) - st.playSound("ItemSound.quest_accept") - elif event == "31331-6.htm" : - st.playSound("ItemSound.quest_finish") - st.exitQuest(1) - return htmltext - - def onTalk (self,npc,player) : - htmltext = "You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements." - st = player.getQuestState(qn) - if not st : return htmltext - clan = player.getClan() - npcId = npc.getNpcId() - if player.getClan() == None or player.isClanLeader() == 0 : - st.exitQuest(1) - htmltext = "31331-0.htm" - elif player.getClan().getLevel() < 5 : - st.exitQuest(1) - htmltext = "31331-0.htm" - else : - cond = st.getInt("cond") - id = st.getState() - if id == State.CREATED and cond == 0 : - htmltext = "31331-1.htm" - elif id == State.STARTED and cond == 1 : - count = st.getQuestItemsCount(Claw) - if not count : - htmltext = "31331-4.htm" - elif count >= 1 : - htmltext = "31331-7.htm" # custom html - st.takeItems(Claw,-1) - reward = int(CLAN_POINTS_REWARD * count) - clan.setReputationScore(clan.getReputationScore()+reward,True) - player.sendPacket(SystemMessage(1777).addNumber(reward)) - clan.broadcastToOnlineMembers(PledgeShowInfoUpdate(clan)) - return htmltext - - def onKill(self,npc,player,isPet) : - st = 0 - if player.isClanLeader() : - st = player.getQuestState(qn) - else: - clan = player.getClan() - if clan: - leader=clan.getLeader() - if leader : - pleader= leader.getPlayerInstance() - if pleader : - if player.isInsideRadius(pleader, 1600, 1, 0) : - st = pleader.getQuestState(qn) - if not st : return - if st.getState() == State.STARTED : - npcId=npc.getNpcId() - if npcId in range(22215,22218) : - st.giveItems(Claw,1) - st.playSound("ItemSound.quest_itemget") - return - - -# Quest class and state definition -QUEST = Quest(510,qn,"A Clan's Reputation") - -QUEST.addStartNpc(Valdis) -QUEST.addTalkId(Valdis) - -for npc in range(22215,22218): - QUEST.addKillId(npc) \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q501_ProofOfClanAlliance/Q501_ProofOfClanAlliance.java b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q501_ProofOfClanAlliance/Q501_ProofOfClanAlliance.java index c4f931f04c..83e0f1d118 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q501_ProofOfClanAlliance/Q501_ProofOfClanAlliance.java +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q501_ProofOfClanAlliance/Q501_ProofOfClanAlliance.java @@ -572,6 +572,7 @@ public class Q501_ProofOfClanAlliance extends Quest return false; } + @Override public QuestState getClanLeaderQuestState(PlayerInstance player, NpcInstance npc) { final Clan clan = player.getClan(); diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-0.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-0.htm new file mode 100644 index 0000000000..78e5100368 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-0.htm @@ -0,0 +1,9 @@ +Sir Eric Rodemai:
+Which Raid Boss do you wish to take on?
+Palibati Queen Themis
+Hekaton Prime
+Gargoyle Lord Tiphon
+Last Lesser Giant Glaki
+Rahha
+Flamestone Giant
+ \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-0a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-0a.htm similarity index 83% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-0a.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-0a.htm index 7e34e53e95..7d5c060d11 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-0a.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-0a.htm @@ -1,7 +1,7 @@ Sir Eric Rodemai:
Hearing this, you may think that the place has the bustling atmosphere of a metropolitan area. But due to its proximity to the border with Elmore, it always tends to maintain a somewhat tense atmosphere. The two types of atmosphere were always co-mingling and created a unique balance for years.
But an increasing number of powerful monsters started to be a major menace to this balance. Of course we, the honorable citizens of Aden can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.
-However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and Reputation it is.
+However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and Reputation it is.
I can see you're not the kind of people with the vein of a leader, so we have nothing to talk about.
-(Only the leader of a clan level 5 or above may undertake this quest) +(This quest may only be undertaken by a leader of a clan level 5 and above.) \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-0b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-0b.htm similarity index 84% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-0b.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-0b.htm index c603b7fd58..77c95dfa6a 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-0b.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-0b.htm @@ -1,7 +1,7 @@ Sir Eric Rodemai:
Hearing this, you may think that the place has the bustling atmosphere of a metropolitan area. But due to its proximity to the border with Elmore, it always tends to maintain a somewhat tense atmosphere. The two types of atmosphere were always co-mingling and created a unique balance for years.
But an increasing number of powerful monsters started to be a major menace to this balance. Of course we, the honorable citizens of Aden can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.
-However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and Reputation it is.
+However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and Reputation it is.
I've been told you lead a personal army, but i'm afraid your fellows may lack the strenght required for we to engage in a business.
-(This quest may only be undertaken by clans of level 5 and above) +(This quest may only be undertaken by a leader of a clan level 5 and above.) \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-0c.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-0c.htm similarity index 75% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-0c.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-0c.htm index 55809d6344..b39d7677d7 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-0c.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-0c.htm @@ -1,7 +1,7 @@ Sir Eric Rodemai:
Hearing this, you may think that the place has the bustling atmosphere of a metropolitan area. But due to its proximity to the border with Elmore, it always tends to maintain a somewhat tense atmosphere. The two types of atmosphere were always co-mingling and created a unique balance for years.
-But an increasing number of powerful monsters known as Raid Bosses started to terrorize town's people and are a major menace to this balance. Of course we, the honorable citizens of Aden can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.
-However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and Reputation it is.
+But an increasing number of powerful monsters known as Raid Bosses started to terrorize town's people and are a major menace to this balance. Of course we, the honorable citizens of Aden can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.
+However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and Reputation it is.
I've been told you lead a personal army. Of course we know a leader like you won't have to risk his life on the task, so if you can grant your subordinates will accomplish our requests i can give you further details, what you say?
-Yes, my clan will help you +Yes, my clan will help you
\ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1.htm new file mode 100644 index 0000000000..41b2c1dca5 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1.htm @@ -0,0 +1,4 @@ +Sir Eric Rodemai:
+Very good! Slaughter Palibati Queen Themis and bring me her scale!
+As I told you before, you don't have to kill her yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Palibati Queen Themis and then bring her scale to me. + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1a.htm new file mode 100644 index 0000000000..39cd93bcf2 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1a.htm @@ -0,0 +1,6 @@ +Sir Eric Rodemai:
+Too bad! I need you to slaughter Palibati Queen Themis and bring me her scale!
+As I told you before, you don't have to kill her yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Palibati Queen Themis and then bring her scale to me.
+"I want to try another Raid Boss."
+Quit + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1b.htm new file mode 100644 index 0000000000..3dad56d528 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1b.htm @@ -0,0 +1,5 @@ +Sir Eric Rodemai:
+Well done! I'll spread the news that your brave Clan hat defeated Palibati Queen Themis.
+"I want to continue killing Raid Bosses."
+Quit + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-2.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-2.htm similarity index 51% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-2.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-2.htm index 8bf36c3b24..3178ef9181 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-2.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-2.htm @@ -1,4 +1,4 @@ Sir Eric Rodemai:
-Very good! Slaughter Hekaton Prime and bring me his Nucleus!
-As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Hekaton Prime and then bring his Nucleus to me. +Very good! Slaughter Hekaton Prime and bring me his Nucleus!
+As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Hekaton Prime and then bring his Nucleus to me. \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-2a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-2a.htm new file mode 100644 index 0000000000..44d4c11bde --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-2a.htm @@ -0,0 +1,6 @@ +Sir Eric Rodemai:
+Too bad! I need you to slaughter Hekaton Prime and bring me his Nucleus!
+As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Hekaton Prime and then bring his Nucleus to me.
+"I want to try another Raid Boss."
+Quit + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-2b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-2b.htm new file mode 100644 index 0000000000..acc55582f1 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-2b.htm @@ -0,0 +1,5 @@ +Sir Eric Rodemai:
+Well done! I'll spread the news that your brave Clan hat defeated Hekaton Prime.
+"I want to continue killing Raid Bosses."
+Quit + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3.htm new file mode 100644 index 0000000000..e5307950f1 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3.htm @@ -0,0 +1,4 @@ +Sir Eric Rodemai:
+Very good! Slaughter Gargoyle Lord Tiphon and bring me his Shard!
+As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Gargoyle Lord Tiphon and then bring his Shard to me. + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3a.htm new file mode 100644 index 0000000000..4c596479be --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3a.htm @@ -0,0 +1,6 @@ +Sir Eric Rodemai:
+Too bad! I need you to slaughter Gargoyle Lord Tiphon and bring me his Shard!
+As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Gargoyle Lord Tiphon and then bring his Shard to me.
+"I want to try another Raid Boss."
+Quit + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3b.htm new file mode 100644 index 0000000000..82c446780e --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3b.htm @@ -0,0 +1,5 @@ +Sir Eric Rodemai:
+Well done! I'll spread the news that your brave Clan hat defeated Gargoyle Lord Tiphon.
+"I want to continue killing Raid Bosses."
+Quit + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4.htm new file mode 100644 index 0000000000..a9308c4c0c --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4.htm @@ -0,0 +1,4 @@ +Sir Eric Rodemai:
+Very good! Slaughter Last Lesser Giant Glaki and bring me his Nucleus!
+As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Last Lesser Giant Glaki and then bring his Nucleus to me. + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4a.htm new file mode 100644 index 0000000000..fe1a8840cc --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4a.htm @@ -0,0 +1,6 @@ +Sir Eric Rodemai:
+Too bad! I need you to slaughter Last Lesser Giant Glaki and bring me his Nucleus!
+As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Last Lesser Giant Glaki and then bring his Nucleus to me.
+"I want to try another Raid Boss."
+Quit + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4b.htm new file mode 100644 index 0000000000..0e3d0405b8 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4b.htm @@ -0,0 +1,5 @@ +Sir Eric Rodemai:
+Well done! I'll spread the news that your brave Clan hat defeated Last Lesser Giant Glaki.
+"I want to continue killing Raid Bosses."
+Quit + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-5.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-5.htm similarity index 51% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-5.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-5.htm index d6d790c13b..1d9d326ba0 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-5.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-5.htm @@ -1,4 +1,4 @@ Sir Eric Rodemai:
-Very good! Slaughter Rahha and bring me her fang!
-As I told you before, you don't have to kill her yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Rahha and then bring her fang to me. +Very good! Slaughter Rahha and bring me her fang!
+As I told you before, you don't have to kill her yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Rahha and then bring her fang to me. \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-5a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-5a.htm new file mode 100644 index 0000000000..e92a6040ba --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-5a.htm @@ -0,0 +1,6 @@ +Sir Eric Rodemai:
+Too bad! I need you to slaughter Rahha and bring me her fang!
+As I told you before, you don't have to kill her yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Rahha and then bring her fang to me.
+"I want to try another Raid Boss."
+Quit + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-5b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-5b.htm new file mode 100644 index 0000000000..6849ae588d --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-5b.htm @@ -0,0 +1,5 @@ +Sir Eric Rodemai:
+Well done! I'll spread the news that your brave Clan hat defeated Rahha.
+"I want to continue killing Raid Bosses."
+Quit + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6.htm new file mode 100644 index 0000000000..1bdcb63d81 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6.htm @@ -0,0 +1,4 @@ +Sir Eric Rodemai:
+Very good! Slaughter Flamestone Giant and bring me his Nucleus!
+As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Flamestone Giant and then bring his Nucleus to me. + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6a.htm new file mode 100644 index 0000000000..6824c7eb52 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6a.htm @@ -0,0 +1,6 @@ +Sir Eric Rodemai:
+Too bad! I need you to slaughter Flamestone Giant and bring me his Nucleus!
+As I told you before, you don't have to kill him yourself! There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Flamestone Giant and then bring his Nucleus to me.
+"I want to try another Raid Boss."
+Quit + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6b.htm new file mode 100644 index 0000000000..50aa9f7aee --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6b.htm @@ -0,0 +1,5 @@ +Sir Eric Rodemai:
+Well done! I'll spread the news that your brave Clan hat defeated Flamestone Giant.
+"I want to continue killing Raid Bosses."
+Quit + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-7.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-7.htm similarity index 90% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-7.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-7.htm index 51245c2ae6..07fea017a5 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/508_TheClansReputation/30868-7.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-7.htm @@ -3,5 +3,5 @@ I believe that leaders are expected to supply two things most of all.
One is a compelling vision or sense of purpose for the group. And you bear a special responsibility to articulate that vision, and in a very compelling fashion.
And the second thing is to provide clear decisions. Doing that requires data collection and consultation, but ultimately leaders must set a direction.
Anyway you're welcome whenever you change your mind and decide we'd need to discuss the reputation of your clan again.
-Farewell, and may we meet again in happier times. +Farewell, and may we meet again in happier times.
\ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/Q508_AClansReputation.java b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/Q508_AClansReputation.java new file mode 100644 index 0000000000..dac5f36d00 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/Q508_AClansReputation.java @@ -0,0 +1,267 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program 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. + * + * This program 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 . + */ +package quests.Q508_AClansReputation; + +import org.l2jmobius.commons.util.Rnd; +import org.l2jmobius.gameserver.model.actor.instance.NpcInstance; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.model.clan.Clan; +import org.l2jmobius.gameserver.model.quest.Quest; +import org.l2jmobius.gameserver.model.quest.QuestState; +import org.l2jmobius.gameserver.model.quest.State; +import org.l2jmobius.gameserver.network.SystemMessageId; +import org.l2jmobius.gameserver.network.serverpackets.PledgeShowInfoUpdate; +import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; +import org.l2jmobius.gameserver.util.Util; + +public class Q508_AClansReputation extends Quest +{ + private static final String qn = "Q508_AClansReputation"; + + // NPC + private static final int SIR_ERIC_RODEMAI = 30868; + + // Items + private static final int NUCLEUS_OF_FLAMESTONE_GIANT = 8494; + private static final int THEMIS_SCALE = 8277; + private static final int NUCLEUS_OF_HEKATON_PRIME = 8279; + private static final int TIPHON_SHARD = 8280; + private static final int GLAKIS_NUCLEUS = 8281; + private static final int RAHHAS_FANG = 8282; + + // Raidbosses + private static final int FLAMESTONE_GIANT = 25524; + private static final int PALIBATI_QUEEN_THEMIS = 25252; + private static final int HEKATON_PRIME = 25140; + private static final int GARGOYLE_LORD_TIPHON = 25255; + private static final int LAST_LESSER_GIANT_GLAKI = 25245; + private static final int RAHHA = 25051; + + // Reward list (itemId, minClanPoints, maxClanPoints) + private static final int reward_list[][] = + { + { + PALIBATI_QUEEN_THEMIS, + THEMIS_SCALE, + 65, + 100 + }, + { + HEKATON_PRIME, + NUCLEUS_OF_HEKATON_PRIME, + 40, + 75 + }, + { + GARGOYLE_LORD_TIPHON, + TIPHON_SHARD, + 30, + 65 + }, + { + LAST_LESSER_GIANT_GLAKI, + GLAKIS_NUCLEUS, + 105, + 140 + }, + { + RAHHA, + RAHHAS_FANG, + 40, + 75 + }, + { + FLAMESTONE_GIANT, + NUCLEUS_OF_FLAMESTONE_GIANT, + 60, + 95 + } + }; + + // Radar + private static final int radar[][] = + { + { + 192346, + 21528, + -3648 + }, + { + 191979, + 54902, + -7658 + }, + { + 170038, + -26236, + -3824 + }, + { + 171762, + 55028, + -5992 + }, + { + 117232, + -9476, + -3320 + }, + { + 144218, + -5816, + -4722 + } + }; + + public Q508_AClansReputation() + { + super(508, qn, "A Clan's Reputation"); + + registerQuestItems(THEMIS_SCALE, NUCLEUS_OF_HEKATON_PRIME, TIPHON_SHARD, GLAKIS_NUCLEUS, RAHHAS_FANG, NUCLEUS_OF_FLAMESTONE_GIANT); + + addStartNpc(SIR_ERIC_RODEMAI); + addTalkId(SIR_ERIC_RODEMAI); + + addKillId(FLAMESTONE_GIANT, PALIBATI_QUEEN_THEMIS, HEKATON_PRIME, GARGOYLE_LORD_TIPHON, LAST_LESSER_GIANT_GLAKI, RAHHA); + } + + @Override + public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player) + { + String htmltext = event; + QuestState st = player.getQuestState(qn); + if (st == null) + { + return htmltext; + } + + if (Util.isDigit(event)) + { + int evt = Integer.parseInt(event); + st.set("raid", event); + htmltext = "30868-" + event + ".htm"; + + int x = radar[evt - 1][0]; + int y = radar[evt - 1][1]; + int z = radar[evt - 1][2]; + + if ((x + y + z) > 0) + { + st.addRadar(x, y, z); + } + + st.set("cond", "1"); + st.setState(State.STARTED); + st.playSound(QuestState.SOUND_ACCEPT); + } + else if (event.equalsIgnoreCase("30868-7.htm")) + { + st.playSound(QuestState.SOUND_FINISH); + st.exitQuest(true); + } + + return htmltext; + } + + @Override + public String onTalk(NpcInstance npc, PlayerInstance player) + { + QuestState st = player.getQuestState(qn); + String htmltext = getNoQuestMsg(); + if (st == null) + { + return htmltext; + } + + Clan clan = player.getClan(); + + switch (st.getState()) + { + case State.CREATED: + if (!player.isClanLeader()) + { + st.exitQuest(true); + htmltext = "30868-0a.htm"; + } + else if (clan.getLevel() < 5) + { + st.exitQuest(true); + htmltext = "30868-0b.htm"; + } + else + { + htmltext = "30868-0c.htm"; + } + break; + + case State.STARTED: + int raid = st.getInt("raid"); + if (st.getInt("cond") == 1) + { + int item = reward_list[raid - 1][1]; + int count = st.getQuestItemsCount(item); + int reward = Rnd.get(reward_list[raid - 1][2], reward_list[raid - 1][3]); + + if (count == 0) + { + htmltext = "30868-" + raid + "a.htm"; + } + else if (count == 1) + { + htmltext = "30868-" + raid + "b.htm"; + st.takeItems(item, 1); + clan.setReputationScore(clan.getReputationScore() + reward, true); + player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.CLAN_QUEST_COMPLETED_AND_S1_POINTS_GAINED).addNumber(reward)); + clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan)); + } + } + break; + } + + return htmltext; + } + + @Override + public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet) + { + // Retrieve the qS of the clan leader. + QuestState st = getClanLeaderQuestState(player, npc); + if ((st == null) || !st.isStarted()) + { + return null; + } + + // Reward only if quest is setup on good index. + int raid = st.getInt("raid"); + if (reward_list[raid - 1][0] == npc.getNpcId()) + { + int item = reward_list[raid - 1][1]; + if (!st.hasQuestItems(item)) + { + st.giveItems(item, 1); + st.playSound(QuestState.SOUND_MIDDLE); + } + } + + return null; + } + + public static void main(String[] args) + { + new Q508_AClansReputation(); + } +} \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-0.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-0.htm new file mode 100644 index 0000000000..1707850530 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-0.htm @@ -0,0 +1,8 @@ +Grand Magister Valdis:
+Take your pick!
+Daimon the White-Eyed
+Hestia, Guardian Deity of the Hot Springs
+Plague Golem
+Demon's Agent Falston
+Queen Shyeed
+ \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-0a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-0a.htm similarity index 83% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-0a.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-0a.htm index a8420fba4b..2075dabd73 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-0a.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-0a.htm @@ -1,7 +1,7 @@ Grand Magister Valdis:
Hearing this, you may think that the place has the bustling atmosphere of a metropolitan area. But due to its proximity to the border with Elmore, it always tends to maintain a somewhat tense atmosphere. The two types of atmosphere were always co-mingling and created a unique balance for years.
But an increasing number of powerful monsters started to be a major menace to this balance. Of course we, the honorable citizens of Rune can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.
-However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and Reputation it is.
+However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and Reputation it is.
I can see you're not the kind of people with the vein of a leader, so we have nothing to talk about.
-(Only the leader of a clan level 6 or above may undertake this quest) +(This quest may only be undertaken by a leader of a clan level 6 and above.) \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-0b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-0b.htm similarity index 84% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-0b.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-0b.htm index 44678cb3a0..9e15df302f 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-0b.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-0b.htm @@ -1,7 +1,7 @@ Grand Magister Valdis:
Hearing this, you may think that the place has the bustling atmosphere of a metropolitan area. But due to its proximity to the border with Elmore, it always tends to maintain a somewhat tense atmosphere. The two types of atmosphere were always co-mingling and created a unique balance for years.
But an increasing number of powerful monsters started to be a major menace to this balance. Of course we, the honorable citizens of Rune can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.
-However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and Reputation it is.
+However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and Reputation it is.
I've been told you lead a personal army, but i'm afraid your fellows may lack the strenght required for we to engage in a business.
-(This quest may only be undertaken by clans of level 6 and above) +(This quest may only be undertaken by a leader of a clan level 6 and above.) \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-0c.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-0c.htm similarity index 75% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-0c.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-0c.htm index 19b673f903..1da26dabd7 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-0c.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-0c.htm @@ -1,7 +1,7 @@ Grand Magister Valdis:
Hearing this, you may think that the place has the bustling atmosphere of a metropolitan area. But due to its proximity to the border with Elmore, it always tends to maintain a somewhat tense atmosphere. The two types of atmosphere were always co-mingling and created a unique balance for years.
-But an increasing number of powerful monsters known as Raid Bosses started to terrorize town's people and are a major menace to this balance. Of course we, the honorable citizens of Rune can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.
-However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and Reputation it is.
+But an increasing number of powerful monsters known as Raid Bosses started to terrorize town's people and are a major menace to this balance. Of course we, the honorable citizens of Rune can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.
+However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and Reputation it is.
I've been told you lead a personal army. Of course we know a leader like you won't have to risk his life on the task, so if you can grant your subordinates will accomplish our requests i can give you further details, what you say?
-Yes, my clan will help you +Yes, my clan will help you
\ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-1.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-1.htm similarity index 100% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-1.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-1.htm diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-1a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-1a.htm similarity index 58% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-1a.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-1a.htm index d8bc409ca2..1e28d5cb27 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-1a.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-1a.htm @@ -1,6 +1,6 @@ Grand Magister Valdis:
Too bad! Destroy Daimon, the white-Eyed and bring me Daimon's Eyes.
Remember, you don't need to do the killing yourself! Just stand back and let your Clan to do the work for you!
-"I want to try another Raid Boss."
-"I want to quit this mission." +"I want to try another Raid Boss."
+"I want to quit this mission." \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-1b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-1b.htm new file mode 100644 index 0000000000..4cfa3757f1 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-1b.htm @@ -0,0 +1,5 @@ +Grand Magister Valdis:
+Excellent! I'll spread the word of your mighty Clan's defeat of the Daimon, the white-Eyed.
+"I want to kill some more Raid Bosses!"
+"I want to quit this mission." + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-2.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-2.htm similarity index 100% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-2.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-2.htm diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-2a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-2a.htm similarity index 60% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-2a.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-2a.htm index 0ea496628e..141492139f 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-2a.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-2a.htm @@ -1,6 +1,6 @@ Grand Magister Valdis:
Too bad! Destroy Hestia, Guardian Deity of the Hot Springs and bring me Hestia's Fairy Stone.
Remember, you don't need to do the killing yourself! Just stand back and let your Clan to do the work for you!
-"I want to quit this mission." -Quit +"I want to try another Raid Boss."
+"I want to quit this mission." \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-2b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-2b.htm new file mode 100644 index 0000000000..04e2eca0db --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-2b.htm @@ -0,0 +1,5 @@ +Grand Magister Valdis:
+Excellent! I'll spread the word of your mighty Clan's defeat of the Hestia, Guardian Deity of the Hot Springs.
+"I want to kill some more Raid Bosses!"
+"I want to quit this mission." + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-3.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-3.htm similarity index 100% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-3.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-3.htm diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-3a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-3a.htm similarity index 58% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-3a.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-3a.htm index c64549f15c..29cc64e7d5 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-3a.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-3a.htm @@ -1,6 +1,6 @@ Grand Magister Valdis:
Too bad! Destroy Plague Golem and bring me Nucleus of Lesser Golem.
Remember, you don't need to do the killing yourself! Just stand back and let your Clan to do the work for you!
-"I want to try another Raid Boss."
-"I want to quit this mission." +"I want to try another Raid Boss."
+"I want to quit this mission." \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-3b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-3b.htm new file mode 100644 index 0000000000..33cf77c4d2 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-3b.htm @@ -0,0 +1,5 @@ +Grand Magister Valdis:
+Excellent! I'll spread the word of your mighty Clan's defeat of the Plague Golem.
+"I want to kill some more Raid Bosses!"
+"I want to quit this mission." + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-4.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-4.htm similarity index 64% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-4.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-4.htm index 3354eba0cf..f70ca25a23 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-4.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-4.htm @@ -1,4 +1,4 @@ Grand Magister Valdis:
-Very good! Destroy Demon's Agent Falchion and bring me Falston's Fang.
+Very good! Destroy Demon's Agent Falston and bring me Falston's Fang.
Remember, you don't need to do the killing yourself! Just stand back and let your Clan to do the work for you! \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-4a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-4a.htm new file mode 100644 index 0000000000..60c2583d97 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-4a.htm @@ -0,0 +1,6 @@ +Grand Magister Valdis:
+Too bad! Destroy Demon's Agent Falston and bring me Falston's Fang.
+Remember, you don't need to do the killing yourself! Just stand back and let your Clan to do the work for you!
+"I want to try another Raid Boss."
+"I want to quit this mission." + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-4b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-4b.htm new file mode 100644 index 0000000000..880adc7a0b --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-4b.htm @@ -0,0 +1,5 @@ +Grand Magister Valdis:
+Excellent! I'll spread the word of your mighty Clan's defeat of the Demon's Agent Falston.
+"I want to kill some more Raid Bosses!"
+"I want to quit this mission." + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-5.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-5.htm similarity index 100% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-5.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-5.htm diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-5a.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-5a.htm similarity index 57% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-5a.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-5a.htm index 26eb1b375b..39188a5980 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-5a.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-5a.htm @@ -1,6 +1,6 @@ Grand Magister Valdis:
Too bad! Destroy Queen Shyeed and bring me Shaid's Talon.
Remember, you don't need to do the killing yourself! Just stand back and let your Clan to do the work for you!
-"I want to try another Raid Boss."
-"I want to quit this mission." +"I want to try another Raid Boss."
+"I want to quit this mission." \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-5b.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-5b.htm new file mode 100644 index 0000000000..08253799ec --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-5b.htm @@ -0,0 +1,5 @@ +Grand Magister Valdis:
+Excellent! I'll spread the word of your mighty Clan's defeat of the Queen Shyeed.
+"I want to kill some more Raid Bosses!"
+"I want to quit this mission." + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-6.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-6.htm similarity index 90% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-6.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-6.htm index b6fc44a8b1..e7b8433e63 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/509_TheClansPrestige/31331-6.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-6.htm @@ -3,5 +3,5 @@ I believe that leaders are expected to supply two things most of all.
One is a compelling vision or sense of purpose for the group. And you bear a special responsibility to articulate that vision, and in a very compelling fashion.
And the second thing is to provide clear decisions. Doing that requires data collection and consultation, but ultimately leaders must set a direction.
Anyway you're welcome whenever you change your mind and decide we'd need to discuss the reputation of your clan again.
-Farewell, and may we meet again in happier times. +Farewell, and may we meet again in happier times.
\ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/Q509_TheClansPrestige.java b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/Q509_TheClansPrestige.java new file mode 100644 index 0000000000..85b4ccb92d --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/Q509_TheClansPrestige.java @@ -0,0 +1,254 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program 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. + * + * This program 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 . + */ +package quests.Q509_TheClansPrestige; + +import org.l2jmobius.commons.util.Rnd; +import org.l2jmobius.gameserver.model.actor.instance.NpcInstance; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.model.clan.Clan; +import org.l2jmobius.gameserver.model.quest.Quest; +import org.l2jmobius.gameserver.model.quest.QuestState; +import org.l2jmobius.gameserver.model.quest.State; +import org.l2jmobius.gameserver.network.SystemMessageId; +import org.l2jmobius.gameserver.network.serverpackets.PledgeShowInfoUpdate; +import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; +import org.l2jmobius.gameserver.util.Util; + +public class Q509_TheClansPrestige extends Quest +{ + private static final String qn = "Q509_TheClansPrestige"; + + // NPCs + private static final int VALDIS = 31331; + + // Items + private static final int DAIMONS_EYES = 8489; + private static final int HESTIAS_FAIRY_STONE = 8490; + private static final int NUCLEUS_OF_LESSER_GOLEM = 8491; + private static final int FALSTON_FANG = 8492; + private static final int SHAIDS_TALON = 8493; + + // Raid Bosses + private static final int DAIMON_THE_WHITE_EYED = 25290; + private static final int HESTIA_GUARDIAN_DEITY = 25293; + private static final int PLAGUE_GOLEM = 25523; + private static final int DEMONS_AGENT_FALSTON = 25322; + private static final int QUEEN_SHYEED = 25514; + + // Reward list (itemId, minClanPoints, maxClanPoints) + private static final int reward_list[][] = + { + { + DAIMON_THE_WHITE_EYED, + DAIMONS_EYES, + 180, + 215 + }, + { + HESTIA_GUARDIAN_DEITY, + HESTIAS_FAIRY_STONE, + 430, + 465 + }, + { + PLAGUE_GOLEM, + NUCLEUS_OF_LESSER_GOLEM, + 380, + 415 + }, + { + DEMONS_AGENT_FALSTON, + FALSTON_FANG, + 220, + 255 + }, + { + QUEEN_SHYEED, + SHAIDS_TALON, + 130, + 165 + } + }; + + // Radar + private static final int radar[][] = + { + { + 186320, + -43904, + -3175 + }, + { + 134672, + -115600, + -1216 + }, + { + 170000, + -59900, + -3848 + }, + { + 93296, + -75104, + -1824 + }, + { + 79635, + -55612, + -5980 + } + }; + + public Q509_TheClansPrestige() + { + super(509, qn, "The Clan's Prestige"); + + registerQuestItems(DAIMONS_EYES, HESTIAS_FAIRY_STONE, NUCLEUS_OF_LESSER_GOLEM, FALSTON_FANG, SHAIDS_TALON); + + addStartNpc(VALDIS); + addTalkId(VALDIS); + + addKillId(DAIMON_THE_WHITE_EYED, HESTIA_GUARDIAN_DEITY, PLAGUE_GOLEM, DEMONS_AGENT_FALSTON, QUEEN_SHYEED); + } + + @Override + public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player) + { + String htmltext = event; + QuestState st = player.getQuestState(qn); + if (st == null) + { + return htmltext; + } + + if (Util.isDigit(event)) + { + int evt = Integer.parseInt(event); + st.set("raid", event); + htmltext = "31331-" + event + ".htm"; + + int x = radar[evt - 1][0]; + int y = radar[evt - 1][1]; + int z = radar[evt - 1][2]; + + if ((x + y + z) > 0) + { + st.addRadar(x, y, z); + } + + st.set("cond", "1"); + st.setState(State.STARTED); + st.playSound(QuestState.SOUND_ACCEPT); + } + else if (event.equalsIgnoreCase("31331-6.htm")) + { + st.playSound(QuestState.SOUND_FINISH); + st.exitQuest(true); + } + + return htmltext; + } + + @Override + public String onTalk(NpcInstance npc, PlayerInstance player) + { + QuestState st = player.getQuestState(qn); + String htmltext = getNoQuestMsg(); + if (st == null) + { + return htmltext; + } + + Clan clan = player.getClan(); + + switch (st.getState()) + { + case State.CREATED: + if (!player.isClanLeader()) + { + st.exitQuest(true); + htmltext = "31331-0a.htm"; + } + else if (clan.getLevel() < 6) + { + st.exitQuest(true); + htmltext = "31331-0b.htm"; + } + else + { + htmltext = "31331-0c.htm"; + } + break; + + case State.STARTED: + int raid = st.getInt("raid"); + if (st.getInt("cond") == 1) + { + int item = reward_list[raid - 1][1]; + int count = st.getQuestItemsCount(item); + int reward = Rnd.get(reward_list[raid - 1][2], reward_list[raid - 1][3]); + + if (count == 0) + { + htmltext = "31331-" + raid + "a.htm"; + } + else if (count == 1) + { + htmltext = "31331-" + raid + "b.htm"; + st.takeItems(item, 1); + clan.setReputationScore(clan.getReputationScore() + reward, true); + player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.CLAN_QUEST_COMPLETED_AND_S1_POINTS_GAINED).addNumber(reward)); + clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan)); + } + } + break; + } + + return htmltext; + } + + @Override + public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet) + { + // Retrieve the qs of the clan leader. + QuestState st = getClanLeaderQuestState(player, npc); + if ((st == null) || !st.isStarted()) + { + return null; + } + + // Reward only if quest is setup on good index. + int raid = st.getInt("raid"); + if (reward_list[raid - 1][0] == npc.getNpcId()) + { + int item = reward_list[raid - 1][1]; + if (!st.hasQuestItems(item)) + { + st.giveItems(item, 1); + st.playSound(QuestState.SOUND_MIDDLE); + } + } + + return null; + } + + public static void main(String[] args) + { + new Q509_TheClansPrestige(); + } +} \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-0.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-0.htm similarity index 78% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-0.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-0.htm index bc6bfe3488..ba0b0f9584 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-0.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-0.htm @@ -1,5 +1,5 @@ -Grand Magister Valdis:
-The townspeople live in constant fear because of the Raid Bosses in this area. We must manufacture better arms and equipment for our guards to defeat this menace, but the materials are difficult to obtain...
-If there were a strong clan nearby, I would ask its clan leader. Do you know of anyone in the area?
-(Only clan leaders of clans level 5 and above can take on this quest.) - +Grand Magister Valdis:
+The townspeople live in constant fear because of the Raid Bosses in this area. We must manufacture better arms and equipment for our guards to defeat this menace, but the materials are difficult to obtain...
+If there were a strong clan nearby, I would ask its clan leader. Do you know of anyone in the area?
+(This quest may only be undertaken by a leader of a clan level 5 and above.) + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-1.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-1.htm similarity index 56% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-1.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-1.htm index 9f10b9c720..abb2f9bd58 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-1.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-1.htm @@ -1,4 +1,4 @@ -Grand Magister Valdis:
-I have heard of your clan's exploits. Would you and your members desire to come together and enhance your clan's prestige? Any assistance you can provide us, be it large or small, would be greatly appreciated.
-"What kind of assistance do you need?" - +Grand Magister Valdis:
+I have heard of your clan's exploits. Would you and your members desire to come together and enhance your clan's prestige? Any assistance you can provide us, be it large or small, would be greatly appreciated.
+"What kind of assistance do you need?" + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-2.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-2.htm similarity index 58% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-2.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-2.htm index b120308c1e..0b8c055151 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-2.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-2.htm @@ -1,5 +1,6 @@ -Grand Magister Valdis:
-We lack sufficient weapons and armor to properly equip the guards who safeguard us here. The local blacksmiths have agreed to manufacture what we need, but lack the necessary raw materials to do so. We have been searching for those materials, but without much success. I recently heard that the claws of the ferocious Tyrannosaurus, a creature that inhabits the Primeval Isle, would be ideal for our purposes.
-Would you consider using the power of your clan to collect those materials for us?
If you help us, I will help you enhance your clan's prestige throughout this land by spreading word of the great feat you have accomplished for us. Well? What say you?
-Say yes. - +Grand Magister Valdis:
+We lack sufficient weapons and armor to properly equip the guards who safeguard us here. The local blacksmiths have agreed to manufacture what we need, but lack the necessary raw materials to do so. We have been searching for those materials, but without much success. I recently heard that the claws of the ferocious Tyrannosaurus, a creature that inhabits the Primeval Isle, would be ideal for our purposes.
+Would you consider using the power of your clan to collect those materials for us?
+If you help us, I will help you enhance your clan's prestige throughout this land by spreading word of the great feat you have accomplished for us. Well? What say you? +
Say yes. + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-3.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-3.htm new file mode 100644 index 0000000000..bebac355f8 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-3.htm @@ -0,0 +1,5 @@ +Grand Magister Valdis:
+Thank you, thank you! Legend has it that these creatures are extremely vicious... Oh, but I'm sure they will pose no more trouble to such a powerful clan than a kitten with her claws! So, will you go to the Primeval Isle and slay a Tyrannosaurus?
+Naturally, we don't expect you personally to slay the creature. There is no rule requiring a clan leader to brandish his own sword in these matters. Simply stay nearby and watch your clan members slay the Tyrannosaurus and return here with its claws.It's vital that the claw be undamaged, you understand, which means...uh, well, it's probably best that you capture the creature before slaying it. I hope that doesn't complicate the task for you!
+I'll be here anxiously awaiting your good news. + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-4.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-4.htm new file mode 100644 index 0000000000..2de6d61387 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-4.htm @@ -0,0 +1,5 @@ +Grand Magister Valdis:
+Are you still here? Hurry to the Primeval Isle and bring back the Tyrannosaurus Claw that I requested. Do you have any other business with me?
+"No, nothing. I'll go get the material. "
+"I wish to stop now." + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-5.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-5.htm similarity index 95% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-5.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-5.htm index a5d534bc29..b00769a54d 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-5.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-5.htm @@ -1,3 +1,3 @@ -Grand Magister Valdis:
-Then I'll leave it to you. The Tyrannosaurus of the Primeval Isle is ferocious, but I will trust in you and your clan and wait. Be sure to capture it and bring back a usable claw. Well, you know the way out. Thank you! - +Grand Magister Valdis:
+Then I'll leave it to you. The Tyrannosaurus of the Primeval Isle is ferocious, but I will trust in you and your clan and wait. Be sure to capture it and bring back a usable claw. Well, you know the way out. Thank you! + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-6.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-6.htm similarity index 90% rename from L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-6.htm rename to L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-6.htm index 0371c66b47..934c410389 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/510_AClansReputation/31331-6.htm +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-6.htm @@ -1,3 +1,3 @@ -Grand Magister Valdis:
-You wish to quit? That's too bad, but I suppose it cannot be helped. Your clan must have concerns of its own... - +Grand Magister Valdis:
+You wish to quit? That's too bad, but I suppose it cannot be helped. Your clan must have concerns of its own... + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-7.htm b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-7.htm new file mode 100644 index 0000000000..7575b1265d --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-7.htm @@ -0,0 +1,5 @@ +Grand Magister Valdis:
+Well done! I'll spread the news that your brave Clan hat defeated Tyrannosaurus!
+"I want to continue killing Tyrannosaurus."
+"I wish to stop now." + \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/Q510_AClansReputation.java b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/Q510_AClansReputation.java new file mode 100644 index 0000000000..1ffaf4c0ba --- /dev/null +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/Q510_AClansReputation.java @@ -0,0 +1,154 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program 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. + * + * This program 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 . + */ +package quests.Q510_AClansReputation; + +import org.l2jmobius.gameserver.model.actor.instance.NpcInstance; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.model.clan.Clan; +import org.l2jmobius.gameserver.model.quest.Quest; +import org.l2jmobius.gameserver.model.quest.QuestState; +import org.l2jmobius.gameserver.model.quest.State; +import org.l2jmobius.gameserver.network.SystemMessageId; +import org.l2jmobius.gameserver.network.serverpackets.PledgeShowInfoUpdate; +import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; + +public class Q510_AClansReputation extends Quest +{ + private static final String qn = "Q510_AClansReputation"; + + // NPC + private static final int Valdis = 31331; + + // Quest Item + private static final int Claw = 8767; + + // Reward + private static final int CLAN_POINTS_REWARD = 50; // Quantity of points + + public Q510_AClansReputation() + { + super(510, qn, "A Clan's Reputation"); + + registerQuestItems(Claw); + + addStartNpc(Valdis); + addTalkId(Valdis); + + addKillId(22215, 22216, 22217); + } + + @Override + public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player) + { + String htmltext = event; + QuestState st = player.getQuestState(qn); + if (st == null) + { + return htmltext; + } + + if (event.equalsIgnoreCase("31331-3.htm")) + { + st.set("cond", "1"); + st.setState(State.STARTED); + st.playSound(QuestState.SOUND_ACCEPT); + } + else if (event.equalsIgnoreCase("31331-6.htm")) + { + st.playSound(QuestState.SOUND_FINISH); + st.exitQuest(true); + } + + return htmltext; + } + + @Override + public String onTalk(NpcInstance npc, PlayerInstance player) + { + QuestState st = player.getQuestState(qn); + String htmltext = getNoQuestMsg(); + if (st == null) + { + return htmltext; + } + + switch (st.getState()) + { + case State.CREATED: + if (!player.isClanLeader()) + { + st.exitQuest(true); + htmltext = "31331-0.htm"; + } + else if (player.getClan().getLevel() < 5) + { + st.exitQuest(true); + htmltext = "31331-0.htm"; + } + else + { + htmltext = "31331-1.htm"; + } + break; + + case State.STARTED: + if (st.getInt("cond") == 1) + { + int count = st.getQuestItemsCount(Claw); + if (count > 0) + { + int reward = (CLAN_POINTS_REWARD * count); + st.takeItems(Claw, -1); + Clan clan = player.getClan(); + clan.setReputationScore(clan.getReputationScore() + reward, true); + player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.CLAN_QUEST_COMPLETED_AND_S1_POINTS_GAINED).addNumber(reward)); + clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan)); + + htmltext = "31331-7.htm"; + } + else + { + htmltext = "31331-4.htm"; + } + } + break; + } + + return htmltext; + } + + @Override + public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet) + { + // Retrieve the qs of the clan leader. + QuestState st = getClanLeaderQuestState(player, npc); + if ((st == null) || !st.isStarted()) + { + return null; + } + + st.giveItems(Claw, 1); + st.playSound(QuestState.SOUND_MIDDLE); + + return null; + } + + public static void main(String[] args) + { + new Q510_AClansReputation(); + } +} \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/QuestMasterHandler.java index 9d921c39c4..9aedd7d67e 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -292,6 +292,9 @@ import quests.Q432_BirthdayPartySong.Q432_BirthdayPartySong; import quests.Q501_ProofOfClanAlliance.Q501_ProofOfClanAlliance; import quests.Q504_CompetitionForTheBanditStronghold.Q504_CompetitionForTheBanditStronghold; import quests.Q505_BloodOffering.Q505_BloodOffering; +import quests.Q508_AClansReputation.Q508_AClansReputation; +import quests.Q509_TheClansPrestige.Q509_TheClansPrestige; +import quests.Q510_AClansReputation.Q510_AClansReputation; import quests.Q601_WatchingEyes.Q601_WatchingEyes; import quests.Q602_ShadowOfLight.Q602_ShadowOfLight; import quests.Q603_DaimonTheWhiteEyed_Part1.Q603_DaimonTheWhiteEyed_Part1; @@ -641,9 +644,9 @@ public class QuestMasterHandler // TODO: Q503_PursuitClanAmbition.class, Q504_CompetitionForTheBanditStronghold.class, Q505_BloodOffering.class, - // TODO: Q508_TheClansReputation.class, - // TODO: Q509_TheClansPrestige.class, - // TODO: Q510_AClansReputation.class, + Q508_AClansReputation.class, + Q509_TheClansPrestige.class, + Q510_AClansReputation.class, Q601_WatchingEyes.class, Q602_ShadowOfLight.class, Q603_DaimonTheWhiteEyed_Part1.class, diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/quest/Quest.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/quest/Quest.java index 9d75f33e1f..3c79205f16 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/quest/Quest.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/quest/Quest.java @@ -1935,4 +1935,35 @@ public class Quest extends ManagedScript { return ScriptEngineManager.getInstance().getCurrentLoadingScript(); } + + public QuestState getClanLeaderQuestState(PlayerInstance player, NpcInstance npc) + { + // If player is the leader, retrieves directly the qS and bypass others checks + if (player.isClanLeader() && player.isInsideRadius(npc, Config.ALT_PARTY_RANGE, true, false)) + { + return player.getQuestState(getName()); + } + + // Verify if the player got a clan + Clan clan = player.getClan(); + if (clan == null) + { + return null; + } + + // Verify if the leader is online + PlayerInstance leader = clan.getLeader().getPlayerInstance(); + if (leader == null) + { + return null; + } + + // Verify if the player is on the radius of the leader. If true, send leader's quest state. + if (leader.isInsideRadius(npc, Config.ALT_PARTY_RANGE, true, false)) + { + return leader.getQuestState(getName()); + } + + return null; + } }