From ed9b67e60ae0e3b4d067db8a0f5409cbc16a3895 Mon Sep 17 00:00:00 2001 From: Jessica Tölke Date: Thu, 1 Nov 2012 09:29:44 +0100 Subject: Auldsbel: Set the variables needed for the SkillUp function directly before calling it. Since there's also the possibility to get the Astral Soul skill in the script, it's possible to overwrite the variables @SUP_id and @SUP_name$. If the player gets the Astral Soul and Transmution magic without ending the NPC dialogue in between, getting Transmution Magic doesn't work. --- world/map/npc/011-1/auldsbel.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'world/map/npc/011-1/auldsbel.txt') diff --git a/world/map/npc/011-1/auldsbel.txt b/world/map/npc/011-1/auldsbel.txt index c6816eec..78f7dc75 100644 --- a/world/map/npc/011-1/auldsbel.txt +++ b/world/map/npc/011-1/auldsbel.txt @@ -5,10 +5,6 @@ set @mexp, MAGIC_EXPERIENCE & 65535; - // Set up SkillUp function - set @SUP_id, SKILL_MAGIC_TRANSMUTE; - set @SUP_name$, "Transmutation Magic"; - set @Q_STATUS_INITIAL, 0; set @Q_STATUS_POSTINTRO, 1; set @Q_STATUS_INITIATION, 2; // quest for being able to cast `create mouboo figurine' @@ -1060,6 +1056,8 @@ LL_initiation_check: mes "You feel new powers flowing into your body!"; set @Q_main_status, @Q_STATUS_STUDENT; callsub S_update_var; + set @SUP_id, SKILL_MAGIC_TRANSMUTE; + set @SUP_name$, "Transmutation Magic"; set @SUP_xp, 5000; set @SUP_lvl, 2; callfunc "SkillUp"; @@ -1234,6 +1232,8 @@ LL_student_4: callsub S_update_var; mes "[Auldsbel the Wizard]"; mes "You feel new powers flowing into your body!"; + set @SUP_id, SKILL_MAGIC_TRANSMUTE; + set @SUP_name$, "Transmutation Magic"; set @SUP_xp, 30000; set @SUP_lvl, 3; callfunc "SkillUp"; @@ -1271,4 +1271,4 @@ S_update_var: (QUEST_MAGIC & ~(@Q_MASK) | (@Q_status << @Q_SHIFT)); return; -} \ No newline at end of file +} -- cgit v1.2.3-60-g2f50