diff options
author | mekolat <mekolat@gmail.com> | 2014-10-23 16:21:08 -0400 |
---|---|---|
committer | mekolat <mekolat@gmail.com> | 2014-10-23 16:21:08 -0400 |
commit | 22bd75e621078fd98176b5d2cc1f2873ae35b305 (patch) | |
tree | 1d65f94e13776bbca0df59ebcf4a2bed7690432f /world/map/npc/functions/headstyles.txt | |
parent | 20e268cd6b8179c5f2a7ac772e533013764e65f4 (diff) | |
download | serverdata-22bd75e621078fd98176b5d2cc1f2873ae35b305.tar.gz serverdata-22bd75e621078fd98176b5d2cc1f2873ae35b305.tar.bz2 serverdata-22bd75e621078fd98176b5d2cc1f2873ae35b305.tar.xz serverdata-22bd75e621078fd98176b5d2cc1f2873ae35b305.zip |
allow to change base class
Diffstat (limited to 'world/map/npc/functions/headstyles.txt')
-rw-r--r-- | world/map/npc/functions/headstyles.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/world/map/npc/functions/headstyles.txt b/world/map/npc/functions/headstyles.txt index 072a9fbf..989bef83 100644 --- a/world/map/npc/functions/headstyles.txt +++ b/world/map/npc/functions/headstyles.txt @@ -5,13 +5,13 @@ function|script|getHeadStyles|, { set @HairStyles$, 0; set @HairColors$, 0; + set @BaseClass, 0; // this is the default class cleararray @HairStyles$, "", getarraysize(@HairStyles$); cleararray @HairColors$, "", getarraysize(@HairColors$); cleararray @ValidClasses, "", getarraysize(@ValidClasses); setarray @ValidClasses, 0; // add new classes here set @loop, 0; - if(Class != 0) goto L_LoopValid; - goto L_ValidClass; + goto L_LoopValid; L_LoopValid: if(@ValidClasses[@loop] == Class) goto L_ValidClass; @@ -20,7 +20,7 @@ function|script|getHeadStyles|, goto L_LoopValid; L_FixClass: - set Class, 0; + set Class, @BaseClass; goto L_ValidClass; L_ValidClass: |