diff options
author | Fate <fate-tmw@googlemail.com> | 2009-06-16 19:07:28 +0000 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2009-06-16 19:07:28 +0000 |
commit | 14bce66d32c572f69718f3bfe25eb16213705e50 (patch) | |
tree | 96e7256cbbf73b4cf79473ee0775fa72b4b77b3c /npc/015-1_Woodland | |
parent | 019faa40cd140261846320d1741f3872b8d36e81 (diff) | |
download | serverdata-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/015-1_Woodland')
-rw-r--r-- | npc/015-1_Woodland/sword.txt | 13 |
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]"; |