From 22bd75e621078fd98176b5d2cc1f2873ae35b305 Mon Sep 17 00:00:00 2001 From: mekolat Date: Thu, 23 Oct 2014 16:21:08 -0400 Subject: allow to change base class --- world/map/npc/functions/headstyles.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'world/map/npc/functions/headstyles.txt') 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: -- cgit v1.2.3-60-g2f50