diff options
author | mekolat <mekolat@gmail.com> | 2014-10-24 15:39:43 -0400 |
---|---|---|
committer | mekolat <mekolat@gmail.com> | 2014-10-25 18:01:05 -0400 |
commit | 0ce5c3ab72899dea6489adff3bbd0eac8f3658ec (patch) | |
tree | bd3455db08019bca24e2312d9f9903cdb12f4158 /world/map/npc/functions/headstyles.txt | |
parent | 8867fbcc8bf39ebdb4dfa6430c60554b4efea80c (diff) | |
download | serverdata-0ce5c3ab72899dea6489adff3bbd0eac8f3658ec.tar.gz serverdata-0ce5c3ab72899dea6489adff3bbd0eac8f3658ec.tar.bz2 serverdata-0ce5c3ab72899dea6489adff3bbd0eac8f3658ec.tar.xz serverdata-0ce5c3ab72899dea6489adff3bbd0eac8f3658ec.zip |
disallow hair 0
Diffstat (limited to 'world/map/npc/functions/headstyles.txt')
-rw-r--r-- | world/map/npc/functions/headstyles.txt | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/world/map/npc/functions/headstyles.txt b/world/map/npc/functions/headstyles.txt index 989bef83..91ed2cfe 100644 --- a/world/map/npc/functions/headstyles.txt +++ b/world/map/npc/functions/headstyles.txt @@ -5,15 +5,20 @@ function|script|getHeadStyles|, { set @HairStyles$, 0; set @HairColors$, 0; - set @BaseClass, 0; // this is the default class + set @BaseClass, 1; // this is the default class cleararray @HairStyles$, "", getarraysize(@HairStyles$); cleararray @HairColors$, "", getarraysize(@HairColors$); cleararray @ValidClasses, "", getarraysize(@ValidClasses); - setarray @ValidClasses, 0; // add new classes here + setarray @ValidClasses, 1; // add new classes here set @loop, 0; goto L_LoopValid; - L_LoopValid: + L_Janitor: + set @BaldStyle, getarraysize(@HairStyles$); // we set it as a variable because we use it with the barber + if(getlook(LOOK_HAIR_STYLE) < 1) setlook LOOK_HAIR_STYLE, @BaldStyle; // the last head of any race has no hair/fins/whatever + return; + + L_LoopValid: // here we fix non-existant classes if(@ValidClasses[@loop] == Class) goto L_ValidClass; set @loop, (@loop + 1); if(@loop >= getarraysize(@ValidClasses)) goto L_FixClass; @@ -24,18 +29,18 @@ function|script|getHeadStyles|, goto L_ValidClass; L_ValidClass: - if(Class == 0) + if(Class == 1) setarray @HairStyles$, // TALPONIAN (human) - "Bald", "Flat ponytail", "Bowl cut", "Combed back", "Emo", "Mohawk", + "Flat ponytail", "Bowl cut", "Combed back", "Emo", "Mohawk", "Pompadour", "Center parting/Short and slick", "Long and slick", "Short and curly", "Pigtails", "Long and curly", "Parted", "Perky ponytail", "Wave", "Mane", "Bun", "Shoulder Length Flick", - "Fizzy", "Long and Clipped"; - if(Class == 0) + "Fizzy", "Long and Clipped", "Bald"; + if(Class == 1) setarray @HairColors$, // TALPONIAN (human) "Brunette", "Green", "Dark red", "Light purple", "Gray", "Blonde", "Teal", "Light red", "Blue", "Dark purple", "Black", "Pink", "Brown";//, "(free slot)", "(free slot)"; // adding a new species is as simple as adding another if(Class == X) and adding the class to @ValidClasses - return; + goto L_Janitor; } |