summaryrefslogtreecommitdiff
path: root/npc/015-1_Woodland/sword.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/015-1_Woodland/sword.txt')
-rw-r--r--npc/015-1_Woodland/sword.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/npc/015-1_Woodland/sword.txt b/npc/015-1_Woodland/sword.txt
index 1536fb52..5c154e46 100644
--- a/npc/015-1_Woodland/sword.txt
+++ b/npc/015-1_Woodland/sword.txt
@@ -8,6 +8,10 @@ L_message:
set @Q_SHIFT, NIBBLE_6_SHIFT;
set @Q_status, (QUEST_MAGIC & @Q_MASK) >> @Q_SHIFT;
+ // Set up SkillUp function
+ set @SUP_id, SKILL_MAGIC_WAR;
+ set @SUP_name$, "War Magic";
+
set @STATUS_INITIAL, 0;
set @STATUS_LEARNED_FLAREDART, 1;
set @STATUS_LEARNED_MAGICBLADE, 2;
@@ -218,14 +222,13 @@ L_Levelup2_yes:
mes "[Mystic Sword]";
mes "The sensation and the noises vanish as quickly as they came.";
- mes "[5000 experience points]";
- mes "[Level 2 in War Magic]";
set @Q_status, @STATUS_LEVEL2;
callsub S_update_var;
- getexp 5000, 0;
- if (getskilllv(SKILL_MAGIC_WAR) < 2)
- setskill SKILL_MAGIC_WAR, 2;
+
+ set @SUP_xp, 5000;
+ set @SUP_lvl, 2;
+ callfunc "SkillUp";
next;
mes "[Mystic Sword]";