summaryrefslogtreecommitdiff
path: root/npc/001-1_Tulimshar
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-06-16 19:07:28 +0000
committerFate <fate-tmw@googlemail.com>2009-06-16 19:07:28 +0000
commit14bce66d32c572f69718f3bfe25eb16213705e50 (patch)
tree96e7256cbbf73b4cf79473ee0775fa72b4b77b3c /npc/001-1_Tulimshar
parent019faa40cd140261846320d1741f3872b8d36e81 (diff)
downloadserverdata-14bce66d32c572f69718f3bfe25eb16213705e50.tar.gz
serverdata-14bce66d32c572f69718f3bfe25eb16213705e50.tar.bz2
serverdata-14bce66d32c572f69718f3bfe25eb16213705e50.tar.xz
serverdata-14bce66d32c572f69718f3bfe25eb16213705e50.zip
Added SkillUp function and used it whenever we magic-skill-up
Diffstat (limited to 'npc/001-1_Tulimshar')
-rw-r--r--npc/001-1_Tulimshar/elanore.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/npc/001-1_Tulimshar/elanore.txt b/npc/001-1_Tulimshar/elanore.txt
index 2157a8dd..0b0b9c92 100644
--- a/npc/001-1_Tulimshar/elanore.txt
+++ b/npc/001-1_Tulimshar/elanore.txt
@@ -28,6 +28,10 @@ function script ElanoreFix {
set @Q_status, (QUEST_MAGIC2 & @Q_MASK) >> @Q_SHIFT;
set @Q_heal_exp, MAGIC_EXPERIENCE >> 24;
+ // Set up SkillUp function
+ set @SUP_id, SKILL_MAGIC_LIFE;
+ set @SUP_name$, "Life Magic";
+
set @STATUS_INITIAL, 0;
set @STATUS_LEARNED_LIGHT_HEAL, 1;
set @STATUS_MASTERED_LIGHT_HEAL, 2;
@@ -336,14 +340,12 @@ L_Teach_AdvanceTo2_skip:
mes "[Elanore the Healer]";
mes "You feel a strange, tingling kind of warmth spread through your body.";
- mes "[5000 experience points]";
- mes "[Level 2 in Life Magic]";
set @Q_status, @STATUS_MASTERED_LIGHT_HEAL;
callsub S_update_var;
- getexp 5000, 0;
- if (getskilllv(SKILL_MAGIC_LIFE) < 2)
- setskill SKILL_MAGIC_LIFE, 2;
+ set @SUP_xp, 5000;
+ set @SUP_lvl, 2;
+ callfunc "SkillUp";
close;
L_Teach_CheckAdvanceTo2_fail:
@@ -628,8 +630,8 @@ L_CurePoison:
mes "She performs a complicated gesture.";
sc_end(sc_poison);
sc_end(sc_slowpoison);
- misceffect 3, strcharinfo(0);
- misceffect 3;
+ misceffect sfx_magic_life, strcharinfo(0);
+ misceffect sfx_magic_life;
next;