summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHongwen Qiu <qiuhongwen@gmail.com>2012-11-30 13:59:39 +0800
committerJessica Tölke <jtoelke@mail.upb.de>2013-01-29 16:54:56 +0100
commit44fd8735aa76afa0850b8abac5dbaeec7d60fd81 (patch)
treeea721046f06e7f5bd61d0047b0ea034f0f438390
parentc24a8ff234bba35bdbf04f39068ba6866c59c284 (diff)
downloadclassic-serverdata-44fd8735aa76afa0850b8abac5dbaeec7d60fd81.tar.gz
classic-serverdata-44fd8735aa76afa0850b8abac5dbaeec7d60fd81.tar.bz2
classic-serverdata-44fd8735aa76afa0850b8abac5dbaeec7d60fd81.tar.xz
classic-serverdata-44fd8735aa76afa0850b8abac5dbaeec7d60fd81.zip
Typo fix for labels and make gain magic xp work for level 1 magic too.v2013.01.29
-rwxr-xr-xworld/map/npc/functions/debug.txt19
1 files changed, 7 insertions, 12 deletions
diff --git a/world/map/npc/functions/debug.txt b/world/map/npc/functions/debug.txt
index cbdd756c..83a41060 100755
--- a/world/map/npc/functions/debug.txt
+++ b/world/map/npc/functions/debug.txt
@@ -576,22 +576,17 @@ L_MagicExperience:
&& @nature == 0
&& @astral == 0)
goto L_NoMagicSkills;
- if (@general == 2
- || @life == 2
- || @war == 2
- || @trans == 2
- || @nature == 2
- || @astral == 2)
- goto L_ChangeMagicExperience;
+
+ goto L_ChangeMagicExperience;
L_NoMagicSkills:
mes "You can't have magic experience, since you have no magic skills yet.";
goto L_MagicSkills;
L_ChangeMagicExperience:
- mes "Set the desired magic experience (min: 100 - max: 8000).";
+ mes "Set the desired magic experience (min: 0 - max: 8000).";
input @value;
- if (@value < 100 || @value > 8000)
+ if (@value < 0 || @value > 8000)
goto L_WrongMagicExperience;
set @mexp, @value;
callsub S_Update_Mask;
@@ -606,7 +601,7 @@ L_ChangeMagicSkills:
menu
"General Magic.", L_ChangeGeneralMagicSkill,
"Life Magic.", L_ChangeLifeMagicSkill,
- "War Magic.", L_ChangeWarMagicskill,
+ "War Magic.", L_ChangeWarMagicSkill,
"Transmutation Magic.", L_ChangeTransmutationMagicSkill,
"Nature Magic.", L_ChangeNatureMagicSkill,
"Astral Magic.", L_ChangeAstralMagicSkill,
@@ -765,7 +760,7 @@ L_ChangeAstralMagicSkill1:
setskill SKILL_MAGIC_ASTRAL, 1;
mes "Astral Magic skill changed to level 1.";
next;
- goto L_Magic;
+ goto L_MagicSkills;
L_ChangeAstralMagicSkill2:
setskill SKILL_MAGIC_ASTRAL, 2;
@@ -774,7 +769,7 @@ L_ChangeAstralMagicSkill2:
callsub S_Update_Mask;
mes "Astral Magic skill changed to level 2.";
next;
- goto L_Magic;
+ goto L_MagicSkills;
S_Update_Mask:
set MAGIC_EXPERIENCE,