summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2012-11-01 09:29:44 +0100
committerJessica Tölke <jtoelke@mail.upb.de>2012-11-01 09:29:44 +0100
commited9b67e60ae0e3b4d067db8a0f5409cbc16a3895 (patch)
treeec39cb8ddc5f570a8c7d9eefba01182f3515d2c6
parent2cd092f34715dfc3eb8a8294df11e85dfb46e5e7 (diff)
downloadclassic-serverdata-ed9b67e60ae0e3b4d067db8a0f5409cbc16a3895.tar.gz
classic-serverdata-ed9b67e60ae0e3b4d067db8a0f5409cbc16a3895.tar.bz2
classic-serverdata-ed9b67e60ae0e3b4d067db8a0f5409cbc16a3895.tar.xz
classic-serverdata-ed9b67e60ae0e3b4d067db8a0f5409cbc16a3895.zip
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.
-rw-r--r--world/map/npc/011-1/auldsbel.txt10
1 files changed, 5 insertions, 5 deletions
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
+}