From 301255cb25937a643a83784759337ca275bb3aa6 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sun, 20 May 2018 18:51:45 +0000 Subject: [PATCH] Updated quest Obtaining Ferin's Trust. Contributed by gigilo1968. --- .../Q00790_ObtainingFerinsTrust/34055-00.htm | 5 +- .../Q00790_ObtainingFerinsTrust/34055-01.htm | 7 +- .../Q00790_ObtainingFerinsTrust/34055-02.htm | 4 +- .../Q00790_ObtainingFerinsTrust/34055-03.htm | 8 +- .../Q00790_ObtainingFerinsTrust/34055-04.htm | 9 + .../Q00790_ObtainingFerinsTrust/34055-04a.htm | 9 + .../Q00790_ObtainingFerinsTrust/34055-04b.htm | 9 + .../Q00790_ObtainingFerinsTrust/34055-05.html | 3 + .../34055-05a.html | 3 + .../Q00790_ObtainingFerinsTrust/34055-06.html | 5 +- .../34055-06a.html | 6 + .../34055-06b.html | 6 + .../Q00790_ObtainingFerinsTrust/34055-07.html | 5 +- .../34055-07a.html | 5 +- .../34055-07b.html | 7 +- .../Q00790_ObtainingFerinsTrust/34055-08.html | 2 +- .../34055-08a.html | 3 + .../34055-08b.html | 3 + .../Q00790_ObtainingFerinsTrust/34055-09.html | 5 +- .../Q00790_ObtainingFerinsTrust/34055-10.html | 4 + .../Q00790_ObtainingFerinsTrust.java | 453 +++++++++--------- 21 files changed, 308 insertions(+), 253 deletions(-) create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-04.htm create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-04a.htm create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-04b.htm create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-05.html create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-05a.html create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-06a.html create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-06b.html create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-08a.html create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-08b.html create mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-10.html diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-00.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-00.htm index 4ac0ca0cc7..8198c3e20a 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-00.htm +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-00.htm @@ -1,4 +1,5 @@ Master Cyphona:
-I don't think you'll be able to complete this mission. You seem passionate, but you don't have enough experience. Please come back when you've become stronger.
-(Only characters above Lv. 100.) +I don't think you'll be able to complete this. You seem passionate, but you don't have enough experience.
+Please come back when you've become stronger.
+(Only characters above Lv. 102.) \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-01.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-01.htm index 9223fc5718..8e8e63df83 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-01.htm +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-01.htm @@ -1,5 +1,6 @@ Master Cyphona:
-Are you an adventurer? I don't think we've met, but can you help us? I'll make sure to reward you for your efforts!
- - +Ah, adventurer! There you are again. How about helping us some more? if you do, you can deepen the mutual trust with us and Ferin.
+What do you say? if you don't remember what to do, I can tell you again. + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-02.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-02.htm index 2b2ede3296..a7f8ce5b71 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-02.htm +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-02.htm @@ -1,4 +1,4 @@ Master Cyphona:
-We're investigating the area around the Garden of Spirits. However, we are being threatened by the spirits there. That's why we must do something.
- +We've begun an investigation in the Garden of Spirits starting from here. However, we are being threatened by the spirits there, so something must be done.
+ \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-03.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-03.htm index 33f812995b..ff4a76b8c6 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-03.htm +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-03.htm @@ -1,6 +1,6 @@ Master Cyphona:
-We know of a way to defeat those spirits, at least temporarily.
-I'll make sure to reward you if you do this mission. And each time you complete the mission, I'll give you an item that will prove our trust.
-You can prove the level of trust between us. The higher the level, the better the rewards. Also, I'll be able to give you top secret missions. However, these marks do disappear with time, so in order to keep our trust, you must continue doing missions from time to time.
- +We know of a way to defeat those spirits, at least temporarily. This way, we'll be able to put the spirits at rest, even if it's just for a little while.
+Of course, we will give you a reward for your help. And there is one more thing. While you are helping us, you'll build trust with us. The more we trust you, the more rewards we will give you, and there are some secret missions that we only give to those we trust.
+That's about it.
+ \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-04.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-04.htm new file mode 100644 index 0000000000..21726286e8 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-04.htm @@ -0,0 +1,9 @@ +Master Cyphona:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 200 Mutated Spirit's Souls. +Intermediate Mission - Collect 400 Mutated Spirit's Souls. +Advanced Mission - Collect 600 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-04a.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-04a.htm new file mode 100644 index 0000000000..6cdf46af5b --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-04a.htm @@ -0,0 +1,9 @@ +Master Cyphona:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 200 Mutated Spirit's Souls. +Intermediate Mission - Collect 400 Mutated Spirit's Souls. +Advanced Mission - Collect 600 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-04b.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-04b.htm new file mode 100644 index 0000000000..3bd334b9ed --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-04b.htm @@ -0,0 +1,9 @@ +Master Cyphona:
+Good. Let me tell you what to do. Just choose the mission that you are capable of doing.
+Basic Mission - Collect 150 Mutated Spirit's Souls. +Intermediate Mission - Collect 300 Mutated Spirit's Souls. +Advanced Mission - Collect 450 Mutated Spirit's Souls.
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-05.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-05.html new file mode 100644 index 0000000000..f42c41b57c --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-05.html @@ -0,0 +1,3 @@ +Master Cyphona:
+Your Unworldly Visitors Faction Level Must be 1 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-05a.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-05a.html new file mode 100644 index 0000000000..d906d828ac --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-05a.html @@ -0,0 +1,3 @@ +Master Cyphona:
+Your Unworldly Visitors Faction Level Must be 2 or above may undertake this mission. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-06.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-06.html index 63ec06f0ac..2f75285a17 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-06.html +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-06.html @@ -1,3 +1,6 @@ Master Cyphona:
-Like I said, you need to bring back at least 200 Mutated Spirit's Souls. Of course, it would be better if you can bring more. +You have chosen the basic mission to collect 200 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-06a.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-06a.html new file mode 100644 index 0000000000..b8594ea699 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-06a.html @@ -0,0 +1,6 @@ +Master Cyphona:
+You have chosen the intermediate mission to collect 400 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-06b.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-06b.html new file mode 100644 index 0000000000..614cf162ff --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-06b.html @@ -0,0 +1,6 @@ +Master Cyphona:
+You have chosen the advanced mission to collect 450 Mutated Spirit's Souls. Once you have selected the difficulty of the mission, you must meet the requirements in order to complete it. Choose wisely.
+Are you sure you want to proceed with this mission?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-07.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-07.html index 7ac46af962..76cd4c2418 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-07.html +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-07.html @@ -1,5 +1,4 @@ Master Cyphona:
-You want to finish already? Well, I can still give you a reward... But it won't be something good. Of course I'll give you a Mark of Trust since you helped us... Are you sure?
- - +Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 200 Mutated Spirit's Souls. It should be manageable. \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-07a.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-07a.html index f47f9160de..349c04b27d 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-07a.html +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-07a.html @@ -1,5 +1,4 @@ Master Cyphona:
-You want to finish already? Well, I can still give you a reward... But it won't be something good. Are you sure?
- - +Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 400 Mutated Spirit's Souls. It should be manageable. \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-07b.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-07b.html index 678582bc00..28496580f0 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-07b.html +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-07b.html @@ -1,5 +1,4 @@ Master Cyphona:
-You want to finish already? Well, I can still give you a reward... But it won't be something good. Are you sure?
- - - \ No newline at end of file +Good. Left me explain the details. Go to the Garden of Spirits, defeat the Kerberos Lager, Kerberos Fort, Kerberos Nero, Fury Sylph Barrena, Fury Sylph Labido, Fury Sylph Purka, Fury Kerberos Leger, and Fury Kerberos Nero, and put them to rest.
+As evidence, please bring back 600 Mutated Spirit's Souls. It should be manageable. +y> \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-08.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-08.html index 7c4cd092c0..038165ac20 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-08.html +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-08.html @@ -1,3 +1,3 @@ Master Cyphona:
-Good idea. The more Mutated Spirit's Souls you bring, the more safely we can investigate, and the better reward you will get. +Go to the Garden of Spirits and defeat all type monsters until you collect 200 Mutated Spirit's Souls. \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-08a.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-08a.html new file mode 100644 index 0000000000..7ea73a66a6 --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-08a.html @@ -0,0 +1,3 @@ +Master Cyphona:
+Go to the Garden of Spirits and defeat all type monsters until you collect 400 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-08b.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-08b.html new file mode 100644 index 0000000000..f7b616df5a --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-08b.html @@ -0,0 +1,3 @@ +Master Cyphona:
+Go to the Garden of Spirits and defeat all type monsters until you collect 600 Mutated Spirit's Souls. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-09.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-09.html index bac31c2bf7..b97e4ccf3f 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-09.html +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-09.html @@ -1,3 +1,6 @@ Master Cyphona:
-Since it's your first time, I'll give you a reward and an item that will prove the trust between us. Here you go. We'll exchange this Mark of Trust (Low-grade) for a higher level one if you keep helping us. If you don't help us for a long time, it will disappear. Please keep that in mind. +Toy have collected all of the Mutated Spirit's Souls. You have completed the mission successfully.
+I would like to congratulate you on completing the mission. Here's your reward. If you have a Faction Amity Token, I can give You more rewards.
+ + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-10.html b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-10.html new file mode 100644 index 0000000000..ec3450a5fc --- /dev/null +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/34055-10.html @@ -0,0 +1,4 @@ +Master Cyphona:
+Here is your reward. This will also help to improve the trust between you and us at the Unworldly Visitors.
+As long as you don't forget us, that is. We thank you for your hard work. + \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/Q00790_ObtainingFerinsTrust.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/Q00790_ObtainingFerinsTrust.java index 4ca908afef..4ccabe609f 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/Q00790_ObtainingFerinsTrust.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/quests/Q00790_ObtainingFerinsTrust/Q00790_ObtainingFerinsTrust.java @@ -17,7 +17,7 @@ package quests.Q00790_ObtainingFerinsTrust; import com.l2jmobius.Config; -import com.l2jmobius.gameserver.enums.QuestSound; +import com.l2jmobius.gameserver.enums.Faction; import com.l2jmobius.gameserver.enums.QuestType; import com.l2jmobius.gameserver.model.actor.L2Npc; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; @@ -26,7 +26,7 @@ import com.l2jmobius.gameserver.model.quest.QuestState; import com.l2jmobius.gameserver.model.quest.State; /** - * Obtaining Ferin's Trust (00790) + * Obtaining Ferin's Trust (790) * @URL https://l2wiki.com/Obtaining_Ferin%27s_Trust * @author Gigi */ @@ -37,28 +37,30 @@ public class Q00790_ObtainingFerinsTrust extends Quest // Monsters private static final int[] MONSTERS = { - 23550, // Kerberos Lager - 23551, // Kerberos Fort - 23552, // Kerberos Nero - 23553, // Fury Sylph Barrena - 23555, // Fury Sylph Temptress - 23556, // Fury Sylph Purka - 23557, // Fury Kerberos Leger - 23558 // Fury Kerberos Nero + 23541, // Kerberos Lager + 23550, // Kerberos Lager (night) + 23542, // Kerberos Fort + 23551, // Kerberos Fort (night) + 23543, // Kerberos Nero + 23552, // Kerberos Nero (night) + 23544, // Fury Sylph Barrena + 23553, // Fury Sylph Barrena (night) + 23546, // Fury Sylph Temptress + 23555, // Fury Sylph Temptress (night) + 23547, // Fury Sylph Purka + 23556, // Fury Sylph Purka (night) + 23545, // Fury Kerberos Leger + 23557, // Fury Kerberos Leger (night) + 23549, // Fury Kerberos Nero + 23558 // Fury Kerberos Nero (night) }; // Misc - private static final int MIN_LEVEL = 100; + private static final int MIN_LEVEL = 102; // Item's - private static final int MARK_OF_TRUST_LOW_GRADE = 45840; - private static final int MARK_OF_TRUST_MID_GRADE = 45843; - private static final int MARK_OF_TRUST_HIGH_GRADE = 45848; - private static final int MUTATAED_SPIRITS_SOUL = 45849; - private static final int BSOE = 1538; - private static final int ELEXIR_OF_LIFE_R = 30357; - private static final int ELEXIR_OF_MIND_R = 30358; - private static final int ELEXIR_OF_CP_R = 30359; - private static final int FERINS_REWARD_BOX = 46165; - private static final int SUPERIOR_GIANTS_CODEX = 46150; + private static final int MUTATED_SPIRITS_SOUL = 45849; + private static final int UNWORLDLY_VISITORS_BASIC_SUPPLY_BOX = 47181; + private static final int UNWORLDLY_VISITORS_INTERMEDIATE_SUPPLY_BOX = 47182; + private static final int UNWORLDLY_VISITORS_ADVANCED_SUPPLY_BOX = 47183; public Q00790_ObtainingFerinsTrust() { @@ -66,7 +68,7 @@ public class Q00790_ObtainingFerinsTrust extends Quest addStartNpc(CYPHONA); addTalkId(CYPHONA); addKillId(MONSTERS); - registerQuestItems(MUTATAED_SPIRITS_SOUL); + registerQuestItems(MUTATED_SPIRITS_SOUL); addCondMinLevel(MIN_LEVEL, "34055-00.htm"); } @@ -82,186 +84,154 @@ public class Q00790_ObtainingFerinsTrust extends Quest switch (event) { - case "34055-01.htm": case "34055-02.htm": case "34055-03.htm": - case "34055-04.html": - case "34055-08.html": - case "34055-09a.html": - case "34055-09b.html": - case "34055-09c.html": + case "34055-04.htm": + case "34055-04a.htm": + case "34055-04b.htm": + case "34055-06.html": + case "34055-06a.html": + case "34055-06b.html": { htmltext = event; break; } - case "34055-05.htm": + case "select_mission": { qs.startQuest(); + if ((player.getFactionLevel(Faction.UNWORLDLY_VISITORS) >= 1) && (player.getFactionLevel(Faction.UNWORLDLY_VISITORS) < 2)) + { + htmltext = "34055-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.UNWORLDLY_VISITORS) >= 2) + { + htmltext = "34055-04b.htm"; + break; + } + htmltext = "34055-04.htm"; + break; + } + case "return": + { + if ((player.getFactionLevel(Faction.UNWORLDLY_VISITORS) >= 1) && (player.getFactionLevel(Faction.UNWORLDLY_VISITORS) < 2)) + { + htmltext = "34055-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.UNWORLDLY_VISITORS) >= 2) + { + htmltext = "34055-04b.htm"; + break; + } + htmltext = "34055-04.htm"; + break; + } + case "34055-07.html": + { + qs.setCond(2, true); htmltext = event; break; } - case "34055-09.html": + case "34055-07a.html": { - giveItems(player, MARK_OF_TRUST_LOW_GRADE, 1); - qs.exitQuest(QuestType.REPEATABLE, true); + qs.setCond(3, true); htmltext = event; break; } - case "34055-10a.html": + case "34055-07b.html": { - if ((getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) >= 200) && (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) < 400)) - { - giveAdena(player, 119773, true); - addExpAndSp(player, 5932440000L, 14237820); - if (getRandom(100) < 20) - { - giveItems(player, FERINS_REWARD_BOX, 1); - } - } - else if ((getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) >= 400) && (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) < 600)) - { - giveAdena(player, 239546, true); - addExpAndSp(player, 11864880000L, 28475640); - if (getRandom(100) < 40) - { - giveItems(player, FERINS_REWARD_BOX, 1); - } - } - else if ((getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) >= 600) && (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) < 800)) - { - giveAdena(player, 359319, true); - addExpAndSp(player, 17797320000L, 42713460); - if (getRandom(100) < 60) - { - giveItems(player, FERINS_REWARD_BOX, 1); - } - } - else if ((getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) >= 800) && (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) < 1000)) - { - giveAdena(player, 479091, true); - addExpAndSp(player, 23729760000L, 56951280); - if (getRandom(100) < 80) - { - giveItems(player, FERINS_REWARD_BOX, 1); - } - } - else if (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) >= 1000) - { - giveAdena(player, 598864, true); - addExpAndSp(player, 29662200000L, 71189100); - giveItems(player, FERINS_REWARD_BOX, 1); - } - giveItems(player, MARK_OF_TRUST_MID_GRADE, 1); - giveItems(player, BSOE, 1); - giveItems(player, ELEXIR_OF_LIFE_R, 5); - giveItems(player, ELEXIR_OF_MIND_R, 5); - giveItems(player, ELEXIR_OF_CP_R, 5); - qs.exitQuest(QuestType.REPEATABLE, true); + qs.setCond(4, true); htmltext = event; break; } - case "34055-10b.html": + case "34055-10.html": { - if ((getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) >= 200) && (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) < 400)) + final int chance = getRandom(100); + switch (qs.getCond()) { - giveAdena(player, 119773, true); - addExpAndSp(player, 5932440000L, 14237820); - if (getRandom(100) < 20) + case 5: { - giveItems(player, FERINS_REWARD_BOX, 1); + if ((getQuestItemsCount(player, MUTATED_SPIRITS_SOUL) == 200) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, UNWORLDLY_VISITORS_ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, UNWORLDLY_VISITORS_INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, UNWORLDLY_VISITORS_BASIC_SUPPLY_BOX, 1); + } + addExpAndSp(player, 22_221_427_950L, 22_221_360); + addFactionPoints(player, Faction.UNWORLDLY_VISITORS, 100); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 6: + { + if ((getQuestItemsCount(player, MUTATED_SPIRITS_SOUL) == 400) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, UNWORLDLY_VISITORS_ADVANCED_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, UNWORLDLY_VISITORS_BASIC_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, UNWORLDLY_VISITORS_INTERMEDIATE_SUPPLY_BOX, 1); + } + addExpAndSp(player, 44_442_855_900L, 44_442_720); + addFactionPoints(player, Faction.UNWORLDLY_VISITORS, 200); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; + } + case 7: + { + if ((getQuestItemsCount(player, MUTATED_SPIRITS_SOUL) == 600) && (player.getLevel() >= MIN_LEVEL)) + { + if (chance < 2) + { + giveItems(player, UNWORLDLY_VISITORS_BASIC_SUPPLY_BOX, 1); + } + else if (chance < 20) + { + giveItems(player, UNWORLDLY_VISITORS_INTERMEDIATE_SUPPLY_BOX, 1); + } + else if (chance < 100) + { + giveItems(player, UNWORLDLY_VISITORS_ADVANCED_SUPPLY_BOX, 1); + } + addExpAndSp(player, 66_664_283_850L, 66_664_080); + addFactionPoints(player, Faction.UNWORLDLY_VISITORS, 300); + qs.exitQuest(QuestType.DAILY, true); + htmltext = event; + } + else + { + htmltext = getNoQuestLevelRewardMsg(player); + } + break; } } - else if ((getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) >= 400) && (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) < 600)) - { - giveAdena(player, 239546, true); - addExpAndSp(player, 11864880000L, 28475640); - if (getRandom(100) < 40) - { - giveItems(player, FERINS_REWARD_BOX, 1); - } - } - else if ((getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) >= 600) && (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) < 800)) - { - giveAdena(player, 359319, true); - addExpAndSp(player, 17797320000L, 42713460); - if (getRandom(100) < 60) - { - giveItems(player, FERINS_REWARD_BOX, 1); - } - } - else if ((getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) >= 800) && (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) < 1000)) - { - giveAdena(player, 479091, true); - addExpAndSp(player, 23729760000L, 56951280); - if (getRandom(100) < 80) - { - giveItems(player, FERINS_REWARD_BOX, 1); - } - } - else if (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) >= 1000) - { - giveAdena(player, 598864, true); - addExpAndSp(player, 29662200000L, 71189100); - giveItems(player, FERINS_REWARD_BOX, 1); - } - giveItems(player, MARK_OF_TRUST_HIGH_GRADE, 1); - giveItems(player, BSOE, 1); - giveItems(player, ELEXIR_OF_LIFE_R, 5); - giveItems(player, ELEXIR_OF_MIND_R, 5); - giveItems(player, ELEXIR_OF_CP_R, 5); - qs.exitQuest(QuestType.REPEATABLE, true); - htmltext = event; - break; - } - case "34055-10c.html": - { - if ((getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) >= 200) && (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) < 400)) - { - addExpAndSp(player, 5932440000L, 14237820); - giveItems(player, FERINS_REWARD_BOX, 1); - if (getRandom(100) < 1) - { - giveItems(player, SUPERIOR_GIANTS_CODEX, 1); - } - } - else if ((getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) >= 400) && (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) < 600)) - { - addExpAndSp(player, 11864880000L, 28475640); - giveItems(player, FERINS_REWARD_BOX, getRandom(1, 2)); - if (getRandom(100) < 9) - { - giveItems(player, SUPERIOR_GIANTS_CODEX, 1); - } - } - else if ((getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) >= 600) && (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) < 800)) - { - addExpAndSp(player, 17797320000L, 42713460); - giveItems(player, FERINS_REWARD_BOX, 2); - if (getRandom(100) < 20) - { - giveItems(player, SUPERIOR_GIANTS_CODEX, 1); - } - } - else if ((getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) >= 800) && (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) < 1000)) - { - addExpAndSp(player, 23729760000L, 56951280); - giveItems(player, FERINS_REWARD_BOX, getRandom(2, 3)); - if (getRandom(100) < 25) - { - giveItems(player, SUPERIOR_GIANTS_CODEX, 1); - } - } - else if (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) >= 1000) - { - addExpAndSp(player, 29662200000L, 71189100); - giveItems(player, FERINS_REWARD_BOX, 3); - if (getRandom(100) < 33) - { - giveItems(player, SUPERIOR_GIANTS_CODEX, 1); - } - } - qs.exitQuest(QuestType.REPEATABLE, true); - htmltext = event; break; } } @@ -278,55 +248,62 @@ public class Q00790_ObtainingFerinsTrust extends Quest { case State.CREATED: { - if (!hasQuestItems(player, MARK_OF_TRUST_LOW_GRADE) && !hasQuestItems(player, MARK_OF_TRUST_MID_GRADE) && !hasQuestItems(player, MARK_OF_TRUST_HIGH_GRADE)) - { - htmltext = "34055-01.htm"; - break; - } - else if (hasQuestItems(player, MARK_OF_TRUST_LOW_GRADE) && !hasQuestItems(player, MARK_OF_TRUST_MID_GRADE) && !hasQuestItems(player, MARK_OF_TRUST_HIGH_GRADE)) - { - htmltext = "34055-01a.htm"; - break; - } - else if (hasQuestItems(player, MARK_OF_TRUST_MID_GRADE) && hasQuestItems(player, MARK_OF_TRUST_MID_GRADE) && !hasQuestItems(player, MARK_OF_TRUST_HIGH_GRADE)) - { - htmltext = "34055-01b.htm"; - break; - } - else if (hasQuestItems(player, MARK_OF_TRUST_HIGH_GRADE) && hasQuestItems(player, MARK_OF_TRUST_MID_GRADE) && hasQuestItems(player, MARK_OF_TRUST_HIGH_GRADE)) - { - htmltext = "34055-01c.htm"; - break; - } + htmltext = "34055-01.htm"; } case State.STARTED: { - if (qs.isCond(1)) + switch (qs.getCond()) { - htmltext = "34055-06.html"; + case 1: + { + if ((player.getFactionLevel(Faction.UNWORLDLY_VISITORS) >= 1) && (player.getFactionLevel(Faction.UNWORLDLY_VISITORS) < 2)) + { + htmltext = "34055-04a.htm"; + break; + } + else if (player.getFactionLevel(Faction.UNWORLDLY_VISITORS) >= 2) + { + htmltext = "34055-04b.htm"; + break; + } + htmltext = "34055-04.htm"; + break; + } + case 2: + { + htmltext = "34055-08.html"; + break; + } + case 3: + { + htmltext = "34055-08a.html"; + break; + } + case 4: + { + htmltext = "34055-08b.html"; + break; + } + case 5: + case 6: + case 7: + { + htmltext = "34055-09.html"; + break; + } } - else if (qs.isCond(2)) + break; + } + case State.COMPLETED: + { + if (!qs.isNowAvailable()) { - if (!hasQuestItems(player, MARK_OF_TRUST_LOW_GRADE) && !hasQuestItems(player, MARK_OF_TRUST_MID_GRADE) && !hasQuestItems(player, MARK_OF_TRUST_HIGH_GRADE)) - { - htmltext = "34055-07.html"; - break; - } - else if (hasQuestItems(player, MARK_OF_TRUST_LOW_GRADE) && !hasQuestItems(player, MARK_OF_TRUST_MID_GRADE) && !hasQuestItems(player, MARK_OF_TRUST_HIGH_GRADE)) - { - htmltext = "34055-07a.html"; - break; - } - else if (hasQuestItems(player, MARK_OF_TRUST_MID_GRADE) && hasQuestItems(player, MARK_OF_TRUST_MID_GRADE) && !hasQuestItems(player, MARK_OF_TRUST_HIGH_GRADE)) - { - htmltext = "34055-07b.html"; - break; - } - else if (hasQuestItems(player, MARK_OF_TRUST_HIGH_GRADE) && hasQuestItems(player, MARK_OF_TRUST_MID_GRADE) && hasQuestItems(player, MARK_OF_TRUST_HIGH_GRADE)) - { - htmltext = "34055-07c.html"; - break; - } + htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY); + } + else + { + qs.setState(State.CREATED); + htmltext = "34055-01.htm"; } break; } @@ -345,16 +322,34 @@ public class Q00790_ObtainingFerinsTrust extends Quest public void actionForEachPlayer(L2PcInstance player, L2Npc npc, boolean isSummon) { final QuestState qs = getQuestState(player, false); - if ((qs != null) && player.isInsideRadius(npc, Config.ALT_PARTY_RANGE, true, true) && (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) < 1000)) + if ((qs != null) && (qs.getCond() > 1) && player.isInsideRadius(npc, Config.ALT_PARTY_RANGE, true, true)) { - giveItems(player, MUTATAED_SPIRITS_SOUL, 1); - if (getQuestItemsCount(player, MUTATAED_SPIRITS_SOUL) == 200) + switch (qs.getCond()) { - qs.setCond(2, true); - } - else - { - playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET); + case 2: + { + if (giveItemRandomly(player, npc, MUTATED_SPIRITS_SOUL, 1, 200, 1, true)) + { + qs.setCond(5, true); + } + break; + } + case 3: + { + if (giveItemRandomly(player, npc, MUTATED_SPIRITS_SOUL, 1, 400, 1, true)) + { + qs.setCond(6, true); + } + break; + } + case 4: + { + if (giveItemRandomly(player, npc, MUTATED_SPIRITS_SOUL, 1, 600, 1, true)) + { + qs.setCond(7, true); + } + break; + } } } }