summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/class.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/npc/functions/class.txt b/npc/functions/class.txt
index 02354ed1d..85a28fb0e 100644
--- a/npc/functions/class.txt
+++ b/npc/functions/class.txt
@@ -9,7 +9,7 @@
function script ClassMaster {
.@CLASS=getarg(0);
.@CNAME$=getarg(1);
- .@OTHER$=getarg(2);
+ .@OTHER=getarg(2);
//.name$=strnpcinfo(1);
// Skills
@@ -18,6 +18,7 @@ function script ClassMaster {
mesq l("I am the @@ master.", .@CNAME);
if (!MAGIC_LVL) goto L_NoMagic;
if (getskilllv(.@OTHER) && !is_admin()) close;
+ if (getskilllv(.@CLASS) == 0) goto L_SignUp;
if (getskilllv(.@CLASS) == 1 && MAGIC_LVL >= 2 && ST_TIER == 0) goto L_Tier2;
if (getskilllv(.@CLASS) == 1 && MAGIC_LVL >= 2 && ST_TIER == 1) mes col("...Where is the recipe for the potion? Ah, I lost it...", 9);
@@ -25,8 +26,6 @@ function script ClassMaster {
// Sanity check
if (getskilllv(.@SK_T1) >= 1) mesq l("Are you using my skill?");
if (getskilllv(.@SK_T1) >= 1) close;
-
- if (getskilllv(.@CLASS) == 0) goto L_SignUp;
close;
L_SignUp: