From 14bce66d32c572f69718f3bfe25eb16213705e50 Mon Sep 17 00:00:00 2001 From: Fate Date: Tue, 16 Jun 2009 19:07:28 +0000 Subject: Added SkillUp function and used it whenever we magic-skill-up --- npc/005-1_Snake_desert/spirit.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'npc/005-1_Snake_desert/spirit.txt') diff --git a/npc/005-1_Snake_desert/spirit.txt b/npc/005-1_Snake_desert/spirit.txt index a7f8dd04..1af21869 100644 --- a/npc/005-1_Snake_desert/spirit.txt +++ b/npc/005-1_Snake_desert/spirit.txt @@ -8,6 +8,10 @@ L_message: set @Q_SHIFT, NIBBLE_0_SHIFT; set @Q_status, (QUEST_MAGIC2 & @Q_MASK) >> @Q_SHIFT; + // Set up SkillUp function + set @SUP_id, SKILL_MAGIC_NATURE; + set @SUP_name$, "Nature Magic"; + set @Q_STATUS_INITIAL, 0; set @Q_STATUS_ONQUEST, 1; set @Q_STATUS_STUDENT0, 2; @@ -158,12 +162,9 @@ L_Q_magic_1: mes "[Earth Spirit]"; mes "\"Well done, very well done! Consider yourself my student now.\""; - mes "[5000 experience points]"; - if (getskilllv(SKILL_MAGIC_NATURE) < 2) - mes "[Level 2 in Nature Magic]"; - getexp 5000, 0; - if (getskilllv(SKILL_MAGIC_NATURE) < 2) - setskill SKILL_MAGIC_NATURE, 2; + set @SUP_xp, 5000; + set @SUP_lvl, 2; + callfunc "SkillUp"; next; set @Q_status, @Q_STATUS_STUDENT0; -- cgit v1.2.3-60-g2f50