From 1ec2e085f3d245567777f36d3e15297644189916 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Wed, 20 Nov 2019 22:53:46 +0000 Subject: [PATCH] Addition of quest Where Fates Intersect (10589). Contributed by Dmitri. --- .../data/scripts/quests/MissingQuests.txt | 1 - .../Q10589_WhereFatesIntersect/30137-01.html | 4 + .../Q10589_WhereFatesIntersect/30137-02.html | 4 + .../Q10589_WhereFatesIntersect/30137-03.html | 3 + .../Q10589_WhereFatesIntersect/30137-04.html | 3 + .../Q10589_WhereFatesIntersect/30137-05.html | 3 + .../Q10589_WhereFatesIntersect/34362-01.html | 4 + .../Q10589_WhereFatesIntersect/34362-02.html | 4 + .../Q10589_WhereFatesIntersect/34362-03.html | 4 + .../Q10589_WhereFatesIntersect/34362-04.html | 4 + .../Q10589_WhereFatesIntersect/34362-05.html | 3 + .../Q10589_WhereFatesIntersect/34362-06.html | 3 + .../Q10589_WhereFatesIntersect/34505-01.html | 4 + .../Q10589_WhereFatesIntersect/34505-02.html | 4 + .../Q10589_WhereFatesIntersect/34505-03.html | 4 + .../Q10589_WhereFatesIntersect/34505-04.html | 4 + .../Q10589_WhereFatesIntersect/34505-05.html | 3 + .../Q10589_WhereFatesIntersect/34505-06.html | 4 + .../Q10589_WhereFatesIntersect/34513-01.html | 4 + .../Q10589_WhereFatesIntersect/34513-02.html | 3 + .../Q10589_WhereFatesIntersect/34513-03.html | 3 + .../Q10589_WhereFatesIntersect/34513-04.html | 3 + .../Q10589_WhereFatesIntersect/34513-05.html | 3 + .../Q10589_WhereFatesIntersect.java | 270 ++++++++++++++++++ .../scripts/quests/QuestMasterHandler.java | 2 + 25 files changed, 350 insertions(+), 1 deletion(-) create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-01.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-02.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-03.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-04.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-05.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-01.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-02.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-03.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-04.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-05.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-06.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-01.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-02.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-03.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-04.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-05.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-06.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-01.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-02.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-03.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-04.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-05.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/Q10589_WhereFatesIntersect.java diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/MissingQuests.txt index 8ba32ae7eb..446adba138 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/MissingQuests.txt @@ -190,7 +190,6 @@ 10572 To Expel the Embryo's Forces 10577 Temper a Rusting Blade 10578 The Soul of a Sword -10589 Where Fates Intersect 10590 Reawakened Fate 10591 Noble Material 10594 Fergason's Scheme diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-01.html new file mode 100644 index 0000000000..1113c2ae1e --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-01.html @@ -0,0 +1,4 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-02.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-02.html new file mode 100644 index 0000000000..1936da53a5 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-02.html @@ -0,0 +1,4 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-03.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-03.html new file mode 100644 index 0000000000..b5530f8177 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-03.html @@ -0,0 +1,3 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-04.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-04.html new file mode 100644 index 0000000000..b5530f8177 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-04.html @@ -0,0 +1,3 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-05.html new file mode 100644 index 0000000000..b5530f8177 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/30137-05.html @@ -0,0 +1,3 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-01.html new file mode 100644 index 0000000000..2251b5b88b --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-01.html @@ -0,0 +1,4 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-02.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-02.html new file mode 100644 index 0000000000..dabe28ccef --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-02.html @@ -0,0 +1,4 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-03.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-03.html new file mode 100644 index 0000000000..0bd687f759 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-03.html @@ -0,0 +1,4 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-04.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-04.html new file mode 100644 index 0000000000..4166ece518 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-04.html @@ -0,0 +1,4 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue? + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-05.html new file mode 100644 index 0000000000..b5530f8177 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-05.html @@ -0,0 +1,3 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-06.html new file mode 100644 index 0000000000..b5530f8177 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34362-06.html @@ -0,0 +1,3 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-01.html new file mode 100644 index 0000000000..6deaeffe62 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-01.html @@ -0,0 +1,4 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-02.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-02.html new file mode 100644 index 0000000000..8aee26d6ee --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-02.html @@ -0,0 +1,4 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-03.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-03.html new file mode 100644 index 0000000000..01a3bfdc3a --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-03.html @@ -0,0 +1,4 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-04.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-04.html new file mode 100644 index 0000000000..421fdddd14 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-04.html @@ -0,0 +1,4 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-05.html new file mode 100644 index 0000000000..d8b49ec7a4 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-05.html @@ -0,0 +1,3 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue? + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-06.html new file mode 100644 index 0000000000..1f3fb779d3 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34505-06.html @@ -0,0 +1,4 @@ +Penny:
+I don't understand why someone like you is interested in this mission?
+(Only characters above Lv.85.) + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-01.html new file mode 100644 index 0000000000..e5ed9f012e --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-01.html @@ -0,0 +1,4 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-02.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-02.html new file mode 100644 index 0000000000..d8b49ec7a4 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-02.html @@ -0,0 +1,3 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue? + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-03.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-03.html new file mode 100644 index 0000000000..d8b49ec7a4 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-03.html @@ -0,0 +1,3 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue? + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-04.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-04.html new file mode 100644 index 0000000000..d8b49ec7a4 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-04.html @@ -0,0 +1,3 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue? + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-05.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-05.html new file mode 100644 index 0000000000..d8b49ec7a4 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/34513-05.html @@ -0,0 +1,3 @@ +Tarti:
+Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue? + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/Q10589_WhereFatesIntersect.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/Q10589_WhereFatesIntersect.java new file mode 100644 index 0000000000..a2d3e37bf8 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/Q10589_WhereFatesIntersect/Q10589_WhereFatesIntersect.java @@ -0,0 +1,270 @@ +/* + * 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.Q10589_WhereFatesIntersect; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.enums.QuestSound; +import org.l2jmobius.gameserver.model.Location; +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +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.serverpackets.ExTutorialShowId; +import org.l2jmobius.gameserver.util.Util; + +/** + * Where Fates Intersect (10589) + * @URL https://l2wiki.com/Where_Fates_Intersect + * @author Dmitri + */ +public class Q10589_WhereFatesIntersect extends Quest +{ + // NPCs + private static final int TARTI = 34505; + private static final int HERPA = 34362; + private static final int WALLODOS = 30137; + private static final int JOACHIM = 34513; + private static final int[] MONSTERS = + { + 24452, // Doom Soldier + 24453, // Doom Servant + 24454, // Doom Berserker + 24455, // Doom Seer + }; + // Item + private static final int MONSTER_DROP = 80853; // Traces of Evil Spirit + // Rewards + private static final long EXP = 1; + private static final int SP = 1; + private static final int ADENA_AMOUNT = 5050; + private static final int ACHIEVEMENT_BOX = 80908; + // Misc + private static final int MIN_LEVEL = 95; + // Location + private static final Location ALTAR_OF_EVIL = new Location(-13982, 22124, -3611); + private static final Location TOWN_OF_ADEN = new Location(146632, 26760, -2213); + + public Q10589_WhereFatesIntersect() + { + super(10589); + addStartNpc(TARTI); + addTalkId(TARTI, HERPA, WALLODOS, JOACHIM); + addKillId(MONSTERS); + registerQuestItems(MONSTER_DROP); + addCondMinLevel(85, "34505-06.html"); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + final QuestState qs = getQuestState(player, false); + + if (qs == null) + { + return null; + } + + String htmltext = null; + switch (event) + { + case "34505-04.html": + case "34505-02.html": + case "30137-03.html": + case "30137-02.html": + case "34362-03.html": + case "34362-05.html": + { + htmltext = event; + break; + } + case "34505-03.html": + { + qs.startQuest(); + htmltext = event; + break; + } + case "teleport": + { + if (qs.isCond(1)) + { + player.teleToLocation(TOWN_OF_ADEN); + } + break; + } + case "34362-02.html": + { + qs.setCond(2, true); + player.sendPacket(new ExTutorialShowId(37)); // Adventurers Guide + htmltext = event; + break; + } + case "teleport_d": + { + if (qs.isCond(2)) + { + player.teleToLocation(ALTAR_OF_EVIL); + } + break; + } + case "34513-02.html": + { + if (qs.isCond(5)) + { + if (player.getLevel() >= MIN_LEVEL) + { + // Reward. + addExpAndSp(player, EXP, SP); + giveAdena(player, ADENA_AMOUNT, false); + giveItems(player, ACHIEVEMENT_BOX, 1); + qs.exitQuest(false, true); + htmltext = event; + } + break; + } + } + } + return htmltext; + } + + @Override + public String onTalk(Npc npc, PlayerInstance player) + { + final QuestState qs = getQuestState(player, true); + String htmltext = getNoQuestMsg(player); + + switch (qs.getState()) + { + case State.CREATED: + { + if (npc.getId() == TARTI) + { + htmltext = "34505-01.html"; + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case TARTI: + { + if (qs.isCond(1)) + { + htmltext = "34505-03.html"; + } + else if (qs.isCond(5)) + { + htmltext = "34505-05.html"; + } + break; + } + case HERPA: + { + if (qs.isCond(1)) + { + htmltext = "34362-01.html"; + } + else if (qs.isCond(2)) + { + htmltext = "34362-03.html"; + } + else if (qs.isCond(4)) + { + qs.setCond(5, true); + htmltext = "34362-04.html"; + } + else if (qs.isCond(5)) + { + htmltext = "34362-06.html"; + } + break; + } + case WALLODOS: + { + if (qs.isCond(2)) + { + qs.setCond(3, true); + htmltext = "30137-01.html"; + } + else if (qs.isCond(3)) + { + htmltext = "30137-04.html"; + } + else if (qs.isCond(4)) + { + htmltext = "30137-05.html"; + } + break; + } + case JOACHIM: + { + if (qs.isCond(2)) + { + htmltext = "34513-03.html"; + } + else if (qs.isCond(3)) + { + htmltext = "34513-04.html"; + } + else if (qs.isCond(4)) + { + htmltext = "34513-05.html"; + } + else if (qs.isCond(5)) + { + htmltext = "34513-01.html"; + } + break; + } + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) + { + final QuestState qs = getQuestState(player, false); + if ((qs != null) && qs.isCond(3) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, player, false)) + { + if ((getQuestItemsCount(player, MONSTER_DROP) < 200) && (getRandom(100) < 90)) + { + giveItems(player, MONSTER_DROP, 1); + playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET); + } + if ((getQuestItemsCount(player, MONSTER_DROP) >= 200) && (player.getLevel() >= MIN_LEVEL)) + { + qs.setCond(4, true); + } + } + } + + @Override + public String onKill(Npc npc, PlayerInstance killer, boolean isSummon) + { + executeForEachPlayer(killer, npc, isSummon, true, false); + return super.onKill(npc, killer, isSummon); + } +} diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/QuestMasterHandler.java index c9d1c90112..34db998fe5 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -127,6 +127,7 @@ import quests.Q10576_GlitteringWeapons.Q10576_GlitteringWeapons; import quests.Q10577_TemperARustingBlade.Q10577_TemperARustingBlade; import quests.Q10578_TheSoulOfASword.Q10578_TheSoulOfASword; import quests.Q10579_ContainingTheAttributePower.Q10579_ContainingTheAttributePower; +import quests.Q10589_WhereFatesIntersect.Q10589_WhereFatesIntersect; import quests.Q10658_MakkumInTheDimension.Q10658_MakkumInTheDimension; import quests.Q10701_TheRoadToDestruction.Q10701_TheRoadToDestruction; import quests.Q10702_TheRoadToInfinity.Q10702_TheRoadToInfinity; @@ -415,6 +416,7 @@ public class QuestMasterHandler Q10577_TemperARustingBlade.class, Q10578_TheSoulOfASword.class, Q10579_ContainingTheAttributePower.class, + Q10589_WhereFatesIntersect.class, Q10590_ReawakenedFate.class, // TODO: Not done. Q10591_NobleMaterial.class, // TODO: Not done. Q10594_FergasonsScheme.class, // TODO: Not done.