summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-06-06 10:10:59 +0000
committerFate <fate-tmw@googlemail.com>2009-06-06 10:10:59 +0000
commitb7d7037a19a598b909ab7d2cb7f27d85eaed5369 (patch)
tree89672529dc4a9e9501a18ae8170c405a4b7c10c7 /npc
parent758ebdb5abb2cb6e4c6a7f9054d84b7cf2fd50d6 (diff)
downloadclassic-serverdata-b7d7037a19a598b909ab7d2cb7f27d85eaed5369.tar.gz
classic-serverdata-b7d7037a19a598b909ab7d2cb7f27d85eaed5369.tar.bz2
classic-serverdata-b7d7037a19a598b909ab7d2cb7f27d85eaed5369.tar.xz
classic-serverdata-b7d7037a19a598b909ab7d2cb7f27d85eaed5369.zip
Catch players who fell through the cracks wrt learning nature or life magic due to the most recent bug
Diffstat (limited to 'npc')
-rw-r--r--npc/001-1_Tulimshar/elanore.txt2
-rw-r--r--npc/009-2_Hurnscald/wyara.txt2
2 files changed, 4 insertions, 0 deletions
diff --git a/npc/001-1_Tulimshar/elanore.txt b/npc/001-1_Tulimshar/elanore.txt
index d8c17be0..dcec99e4 100644
--- a/npc/001-1_Tulimshar/elanore.txt
+++ b/npc/001-1_Tulimshar/elanore.txt
@@ -9,6 +9,8 @@ function script ElanoreFix {
set @Q_status, (QUEST_MAGIC2 & @Q_MASK) >> @Q_SHIFT;
if (@Q_status > @Q_STATUS_MAX)
set @Q_status, @STATUS_INITIAL;
+ if (@Q_status > 1 && (getskilllv(SKILL_MAGIC_LIFE) < 2))
+ set @Q_status, @STATUS_INITIAL;
set QUEST_MAGIC2,
(QUEST_MAGIC2 & ~(@Q_MASK)
diff --git a/npc/009-2_Hurnscald/wyara.txt b/npc/009-2_Hurnscald/wyara.txt
index 114f569b..2f69fc0c 100644
--- a/npc/009-2_Hurnscald/wyara.txt
+++ b/npc/009-2_Hurnscald/wyara.txt
@@ -16,6 +16,8 @@
// This operation works around an earlier possible corruption of this state
if (@Q_status > @Q_STATUS_MAX)
set @Q_status, @STATUS_INITIAL;
+ if (@Q_status == @STATUS_PURIFY_OVER && (getskilllv(SKILL_MAGIC_NATURE) < 2))
+ set @Q_status, @STATUS_INITIAL;
callsub S_update_var;
set @has_magic, getskilllv(SKILL_MAGIC);